{ "name": "lamp.dimmer", "version": 0.1, "description": "Lamp with a dimmer", "lang": "en", "documentation": "http://recherche.telecom-bretagne.eu/xaal/documentation/", "ref": "http://recherche.telecom-bretagne.eu/xaal/documentation/lamp.dimmer", "license": "LGPLv3+ Christophe Lohr Telecom Bretagne 2014", "licenseref": "http://www.gnu.org/licenses/lgpl.txt", "extends": "lamp.queryable", "stateVariables": [ { "name": "lighting", "description": "Level of enlightenment of the lamp", "unit": "%", "type": { "$schema": "http://json-schema.org/schema#", "type": "number", "minvalue": 0, "maxvalue": 100 } } ], "methods": [ { "name": "getState", "description": "Return stateVariables of the device", "parameters": [ { "name": "ciphers", "description": "List of the supported ciphers", "unit": "", "direction": "out", "type": { "$schema": "http://json-schema.org/schema#", "type": "array", "items": { "type": "string" } } }, { "name": "lighting", "description": "Level of enlightenment of the lamp", "unit": "%", "direction": "out", "type": { "$schema": "http://json-schema.org/schema#", "type": "number", "minvalue": 0, "maxvalue": 100 } } ] }, { "name": "dimmer", "description": "Change the dimmer of the lamp", "parameters": [ { "name": "target", "description": "Target of the dimmer", "unit": "%", "direction": "out", "type": { "$schema": "http://json-schema.org/schema#", "type": "number", "minvalue": 0, "maxvalue": 100 } } ] } ], "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": "Level of enlightenment of the lamp", "unit": "%", "type": { "$schema": "http://json-schema.org/schema#", "type": "number", "minvalue": 0, "maxvalue": 100 } } ] } ] }