Define a Device (your lamp)
- Click AnythingDB Things, and click to add a New Thing.
- Choose Skip to schema.
-
Add the following Thing description provided by the W3C Web Of
Things and click Save:
Note: Source: Standard Thing Description Template: Lamp
{ "actions": { "toggle": { "input": { "properties": { "value": { "type": "string" } }, "type": "object" } } }, "description": "Lamp Thing Description Template", "properties": { "state": { "description": "current state of the lamp on|off", "title": "", "type": "string" } }, "status": { "state": "Off" }, "title": "Lamp Thing Description Template" }
A Thing with a Property that shows the state of the Lamp (initial value is Off) and an Action to toggle the lamp is defined.