{ "title": "lamp.basic", "description": "Simple lamp", "lang": "en", "documentation": "http://recherche.imt-atlantique.fr/xaal/documentation/", "ref": "http://recherche.imt-atlantique.fr/xaal/documentation/lamp.basic", "license": "Copyright Christophe Lohr IMT Atlantique 2019 - 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": "basic.basic", "attributes": { "light":"light_t" }, "methods": { "get_attributes": { "description": "Return attributes of the device, i.e. 'light'", "in": { "attributes":"attributes_t" }, "out": { "light":"light_t" } }, "turn_on": { "description": "Switch on the lamp", "related_attributes": [ "light" ] }, "turn_off": { "description": "Switch off the lamp", "related_attributes": [ "light" ] } }, "notifications": { "attributes_change": { "description": "Report attributes that have changed, i.e. 'light'", "out": { "light":"light_t" } } }, "datamodel": { "light_t": { "description": "State of the lamp (true=on false=off)", "type": "data = bool" }, "attributes_t": { "description": "List of wanted attributes", "type": "data = [ ? \"light\" ]" } } }