{ "name": "lamp.basic", "version": 0.1, "description": "Simple lamp", "lang": "en", "documentation": "http://recherche.telecom-bretagne.eu/xaal/documentation/", "ref": "http://recherche.telecom-bretagne.eu/xaal/documentation/lamp.basic", "license": "LGPLv3+ Christophe Lohr Telecom Bretagne 2014", "licenseref": "http://www.gnu.org/licenses/lgpl.txt", "extends": "any.any", "stateVariables": [ { "name": "lighting", "description": "State of the lamp", "unit": "true=on false=off", "type": { "$schema": "http://json-schema.org/schema#", "type": "boolean" } } ], "methods": [ { "name": "powerSwitch", "description": "Switch on or off the lamp", "parameters": [ { "name": "target", "description": "Target of the lamp", "unit": "true=on, false=off", "type": { "$schema": "http://json-schema.org/schema#", "type": "boolean" }, "direction": "inout" } ] } ], "notifications": [ { "name": "stateChange", "description": "Notify the state variables that have changed", "parameters": [ { "name": "ciphers", "description": "List of the supported ciphers", "unit": "", "type": { "$schema": "http://json-schema.org/schema#", "type": "array", "items": { "type": "string" } } }, { "name": "lighting", "description": "State of the lamp", "unit": "true=on false=off", "type": { "$schema": "http://json-schema.org/schema#", "type": "boolean" } } ] } ] }