{ "title": "shutter.position", "description": "Shutter with a position managment", "lang": "en", "documentation": "http://recherche.telecom-bretagne.eu/xaal/documentation/", "ref": "http://recherche.telecom-bretagne.eu/xaal/documentation/shutter.position", "license": "Copyright Christophe Lohr Telecom Bretagne 2015 - 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": "shutter.basic", "attributes": { "position": { "description": "Level of aperture of the shutter", "unit": "%", "type": { "$schema": "http://json-schema.org/schema#", "type": "number", "minimum": 0, "maximum": 100 } } }, "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": [ "action", "position" ] }, "additionalItems": false } }, "action": { "description": "Ongoing action the shutter", "unit": "", "direction": "out", "type": { "$schema": "http://json-schema.org/schema#", "enum": [ "up", "down", "stop" ] } }, "position": { "description": "Level of aperture of the shutter", "unit": "%", "direction": "out", "type": { "$schema": "http://json-schema.org/schema#", "type": "number", "minimum": 0, "maximum": 100 } } }, "relatedAttributes": [ ] }, "position": { "description": "Change the position of the shutter", "parameters": { "target": { "description": "Target of the position", "unit": "%", "direction": "in", "type": { "$schema": "http://json-schema.org/schema#", "type": "number", "minimum": 0, "maximum": 100 } } }, "relatedAttributes": [ "position" ] } }, "notifications": { "attributesChange": { "description": "Report attributes that have changed", "parameters": { "action": { "description": "Ongoing action of the shutter", "unit": "", "type": { "$schema": "http://json-schema.org/schema#", "enum": [ "up", "down", "stop" ] } }, "position": { "description": "Level of aperture of the shutter", "unit": "%", "type": { "$schema": "http://json-schema.org/schema#", "type": "number", "minimum": 0, "maximum": 100 } } } } } }