{ "title": "lamp.dimmer", "version": 0.2, "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": "Copyright Christophe Lohr Telecom Bretagne 2014 - Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without any warranty.", "extends": "lamp.queryable", "variables": { "dimmer": { "description": "Level of the dimmer", "unit": "%", "type": { "$schema": "http://json-schema.org/schema#", "type": "number", "minimum": 0, "maximum": 100 } } }, "methods": { "getVariables": { "description": "Return variables of the device", "parameters": { "light": { "description": "State of the lamp", "unit": "true=on false=off", "direction": "out", "type": { "$schema": "http://json-schema.org/schema#", "type": "boolean" } }, "dimmer": { "description": "Level of the dimmer", "unit": "%", "direction": "out", "type": { "$schema": "http://json-schema.org/schema#", "type": "number", "minimum": 0, "maximum": 100 } } }, "relatedVariables": [ ] }, "dim": { "description": "Change the dimmer of the lamp", "parameters": { "target": { "description": "Target of the dimmer", "unit": "%", "direction": "out", "type": { "$schema": "http://json-schema.org/schema#", "type": "number", "minimum": 0, "maximum": 100 } } }, "relatedVariables": [ "dimmer" ] } }, "notifications": { "variablesChange": { "description": "Report variables that have changed", "parameters": { "light": { "description": "State of the lamp", "unit": "true=on false=off", "type": { "$schema": "http://json-schema.org/schema#", "type": "boolean" } }, "dimmer": { "description": "Level of the dimmer", "unit": "%", "type": { "$schema": "http://json-schema.org/schema#", "type": "number", "minimum": 0, "maximum": 100 } } } } } }