WebThingsIO / schemas

A Web of Things schema repository
https://webthings.io/schemas/
5 stars 8 forks source link

DoorSensor Capability Schema #10

Closed benfrancis closed 6 years ago

benfrancis commented 6 years ago

As a device developer I want to tell a Web of Things client that my device acts as a door (or window) sensor.

Example Thing Description:

{
  "@context": "https://iot.mozilla.org/schemas",
  "@type": ["DoorSensor"],
  "name": "Door Sensor",
  "properties": {
    "active": {
      "@type": "OpenProperty",
      "type": "boolean"
    }
  }
}