{ "title": "door.basic", "description": "Simple door device", "lang": "en", "documentation": "http://recherche.telecom-bretagne.eu/xaal/documentation/", "ref": "http://recherche.telecom-bretagne.eu/xaal/documentation/powerrelay.basic", "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": "any.any", "attributes": { "position": { "description": "Position of the door", "unit": "true=open false=close", "type": { "$schema": "http://json-schema.org/schema#", "type": "boolean" } } }, "methods": { "getAttributes": { "description": "Return attributes of the device", "parameters": { "attributes": { "description": "List of wanted attributes", "unit": "", "direction": "in", "type": { "$schema": "http://json-schema.org/schema#", "type": "array", "items": { "enum": [ "position" ] }, "additionalItems": false } }, "position": { "description": "State of the door", "unit": "true=open false=close", "direction": "out", "type": { "$schema": "http://json-schema.org/schema#", "type": "boolean" } } }, "relatedAttributes": [ ] }, "open": { "description": "Open the door", "parameters": { }, "relatedAttributes": [ "position" ] }, "close": { "description": "Close the door", "parameters": { }, "relatedAttributes": [ "position" ] } }, "notifications": { "attributesChange": { "description": "Report attributes that have changed", "parameters": { "position": { "description": "Postion of the door", "unit": "true=open false=close", "type": { "$schema": "http://json-schema.org/schema#", "type": "boolean" } } } } } }