Define a Device (your lamp)

  1. Click AnythingDB Things, and click to add a New Thing.
  2. Choose Skip to schema.
  3. Add the following Thing description provided by the W3C Web Of Things and click Save:
    {
    	"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.