From 428a92e1aaaadf671a7e7dbba18405d94a8fe81e Mon Sep 17 00:00:00 2001 From: Philippe Coval Date: Thu, 21 Mar 2019 15:57:30 +0100 Subject: [PATCH] Add ColorSensor Capability I have used color sensors lately, to display it on dashboard I had to reuse a ColorController and set property as read only, even if this work this can be misleading, because nothing is controllable then. This makes me think that RO and WO caps could be generalized as: {type}Sensor and {type}Actuator Change-Id: Id64f25acdbb45cb5242e6cd0ff00b31aefe84cee Relate-to: https://www.slideshare.net/rzrfreefr/wotxr20190320rzr Forwarded: https://github.com/mozilla-iot/schemas/pull/37 Signed-off-by: Philippe Coval --- index.html | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/index.html b/index.html index 07e0a1b..700748b 100644 --- a/index.html +++ b/index.html @@ -109,6 +109,7 @@

Contents

  • BinarySensor
  • Camera
  • ColorControl
  • +
  • ColorSensor
  • DoorSensor
  • EnergyMonitor
  • LeakSensor @@ -262,6 +263,27 @@

    Actions

    Events

    None.

    +
    +

    ColorSensor

    +

    A simple sensor device that see and encode color of a sample material

    +

    Properties

    + + + + + + + + + + + +
    TypeRead-OnlyRequired
    ColorPropertyYesYes
    +

    Actions

    +

    None.

    +

    Events

    +

    None.

    +

    DoorSensor

    A device which detects whether a door or window is open or closed.