diff --git a/devices/sinope/sp2610zb_smart_switch.json b/devices/sinope/sp2610zb_smart_switch.json new file mode 100644 index 0000000000..4b7064f3e4 --- /dev/null +++ b/devices/sinope/sp2610zb_smart_switch.json @@ -0,0 +1,233 @@ +{ + "schema": "devcap1.schema.json", + "manufacturername": "Sinope Technologies", + "modelid": "SP2610ZB", + "product": "SP2610ZB", + "sleeper": false, + "status": "Gold", + "subdevices": [ + { + "type": "$TYPE_SMART_PLUG", + "restapi": "/lights", + "uuid": [ + "$address.ext", + "0x01" + ], + "items": [ + { + "name": "attr/id" + }, + { + "name": "attr/lastannounced" + }, + { + "name": "attr/lastseen" + }, + { + "name": "attr/manufacturername" + }, + { + "name": "attr/modelid" + }, + { + "name": "attr/name" + }, + { + "name": "attr/swversion" + }, + { + "name": "attr/type" + }, + { + "name": "attr/uniqueid" + }, + { + "name": "state/alert", + "description": "The currently active alert effect.", + "default": "none" + }, + { + "name": "state/on", + "refresh.interval": 5 + }, + { + "name": "state/reachable" + } + ] + }, + { + "type": "$TYPE_CONSUMPTION_SENSOR", + "restapi": "/sensors", + "uuid": [ + "$address.ext", + "0x01", + "0x0702" + ], + "items": [ + { + "name": "attr/id" + }, + { + "name": "attr/lastannounced" + }, + { + "name": "attr/lastseen" + }, + { + "name": "attr/manufacturername" + }, + { + "name": "attr/modelid" + }, + { + "name": "attr/name" + }, + { + "name": "attr/swversion" + }, + { + "name": "attr/type" + }, + { + "name": "attr/uniqueid" + }, + { + "name": "config/on" + }, + { + "name": "config/reachable" + }, + { + "name": "state/consumption", + "refresh.interval": 300, + "read": { + "at": "0x0000", + "cl": "0x0702", + "ep": 1, + "fn": "zcl" + }, + "parse": { + "at": "0x0000", + "cl": "0x0702", + "ep": 1, + "eval": "Item.val = Attr.val" + } + }, + { + "name": "state/lastupdated" + } + ] + }, + { + "type": "$TYPE_POWER_SENSOR", + "restapi": "/sensors", + "uuid": [ + "$address.ext", + "0x01", + "0x0b04" + ], + "items": [ + { + "name": "attr/id" + }, + { + "name": "attr/lastannounced" + }, + { + "name": "attr/lastseen" + }, + { + "name": "attr/manufacturername" + }, + { + "name": "attr/modelid" + }, + { + "name": "attr/name" + }, + { + "name": "attr/swversion" + }, + { + "name": "attr/type" + }, + { + "name": "attr/uniqueid" + }, + { + "name": "config/on" + }, + { + "name": "config/reachable" + }, + { + "name": "state/current", + "refresh.interval": 300, + "read": { + "at": "0x0508", + "cl": "0x0b04", + "ep": 1, + "fn": "zcl" + }, + "parse": { + "at": "0x0508", + "cl": "0x0b04", + "ep": 1, + "eval": "if (Attr.val != 65535) { Item.val = Attr.val; }" + } + }, + { + "name": "state/lastupdated" + }, + { + "name": "state/power", + "refresh.interval": 300, + "read": { + "at": "0x050b", + "cl": "0x0b04", + "ep": 1, + "fn": "zcl" + }, + "parse": { + "at": "0x050b", + "cl": "0x0b04", + "ep": 1, + "eval": "if (Attr.val != -32768) { Item.val = Attr.val / 10; }" + } + }, + { + "name": "state/voltage", + "refresh.interval": 300, + "read": { + "at": "0x0505", + "cl": "0x0b04", + "ep": 1, + "fn": "zcl" + }, + "parse": { + "at": "0x0505", + "cl": "0x0b04", + "ep": 1, + "eval": "if (Attr.val != 65535) { Item.val = Attr.val / 100; }" + } + } + ] + } + ], + "bindings": [ + { + "bind": "unicast", + "src.ep": 1, + "dst.ep": 1, + "cl": "0x0006", + "report": [ + { + "at": "0x0000", + "dt": "0x10", + "min": 1, + "max": 300 + } + ] + } + ] +} diff --git a/devices/sinope/th1124zb.json b/devices/sinope/th1124zb.json new file mode 100644 index 0000000000..6daab07df4 --- /dev/null +++ b/devices/sinope/th1124zb.json @@ -0,0 +1,341 @@ +{ + "schema": "devcap1.schema.json", + "manufacturername": "Sinope", + "modelid": "TH1124ZB", + "product": "TH1124ZB", + "sleeper": false, + "status": "Silver", + "path": "/devices/th1124zb.json", + "subdevices": [ + { + "type": "$TYPE_THERMOSTAT", + "restapi": "/sensors", + "uuid": [ + "$address.ext", + "0x01", + "0x0201" + ], + "fingerprint": { + "profile": "0x0104", + "device": "0x0301", + "endpoint": "0x01", + "in": [ + "0x0000", + "0x0201", + "0x0204", + "0x0B05" + ] + }, + "items": [ + { + "name": "attr/id" + }, + { + "name": "attr/lastannounced" + }, + { + "name": "attr/lastseen" + }, + { + "name": "attr/manufacturername" + }, + { + "name": "attr/modelid" + }, + { + "name": "attr/name" + }, + { + "name": "attr/swversion" + }, + { + "name": "attr/type" + }, + { + "name": "attr/uniqueid" + }, + { + "name": "config/heatsetpoint", + "description": "Target temperature of a thermostat.", + "default": 0 + }, + { + "name": "config/mode", + "description": "Mode of the device." + }, + { + "name": "config/offset", + "description": "Relative offset to the main measured value.", + "default": 0 + }, + { + "name": "config/on" + }, + { + "name": "config/reachable" + }, + { + "name": "config/schedule", + "description": "On-device heating schedules." + }, + { + "name": "config/schedule_on", + "description": "Determines if on-device schedules for setting the heatsetpoint are currently used or if the thermostat is operated manually." + }, + { + "name": "state/lastupdated" + }, + { + "name": "state/on", + "description": "True when device is on; false when off.", + "refresh.interval": 5 + }, + { + "name": "state/temperature", + "description": "The current temperature in °C × 100.", + "default": 0 + } + ] + }, + { + "type": "$TYPE_POWER_SENSOR", + "restapi": "/sensors", + "uuid": [ + "$address.ext", + "0x01", + "0x0b04" + ], + "fingerprint": { + "profile": "0x0104", + "device": "0x0301", + "endpoint": "0x01", + "in": [ + "0x0000", + "0x0B04" + ] + }, + "items": [ + { + "name": "attr/id" + }, + { + "name": "attr/lastannounced" + }, + { + "name": "attr/lastseen" + }, + { + "name": "attr/manufacturername" + }, + { + "name": "attr/modelid" + }, + { + "name": "attr/name" + }, + { + "name": "attr/swversion" + }, + { + "name": "attr/type" + }, + { + "name": "attr/uniqueid" + }, + { + "name": "config/on" + }, + { + "name": "config/reachable" + }, + { + "name": "state/current", + "refresh.interval": 300 + }, + { + "name": "state/lastupdated" + }, + { + "name": "state/power", + "refresh.interval": 300 + }, + { + "name": "state/voltage", + "refresh.interval": 300, + "parse": { + "at": "0x0505", + "cl": "0x0b04", + "ep": 0, + "eval": "if (Attr.val != 65535) { Item.val = Attr.val / 10 ; }" + } + } + ] + }, + { + "type": "$TYPE_CONSUMPTION_SENSOR", + "restapi": "/sensors", + "uuid": [ + "$address.ext", + "0x01", + "0x0702" + ], + "fingerprint": { + "profile": "0x0104", + "device": "0x0301", + "endpoint": "0x01", + "in": [ + "0x0000", + "0x0702" + ] + }, + "items": [ + { + "name": "attr/id" + }, + { + "name": "attr/lastannounced" + }, + { + "name": "attr/lastseen" + }, + { + "name": "attr/manufacturername" + }, + { + "name": "attr/modelid" + }, + { + "name": "attr/name" + }, + { + "name": "attr/swversion" + }, + { + "name": "attr/type" + }, + { + "name": "attr/uniqueid" + }, + { + "name": "config/on" + }, + { + "name": "config/reachable" + }, + { + "name": "state/consumption", + "refresh.interval": 300 + }, + { + "name": "state/lastupdated" + }, + { + "name": "state/power", + "refresh.interval": 300 + } + ] + }, + { + "type": "$TYPE_TEMPERATURE_SENSOR", + "restapi": "/sensors", + "uuid": [ + "$address.ext", + "0x01", + "0x0402" + ], + "fingerprint": { + "profile": "0x0104", + "device": "0x0301", + "endpoint": "0x01", + "in": [ + "0x0000", + "0x0402" + ] + }, + "items": [ + { + "name": "attr/id" + }, + { + "name": "attr/lastannounced" + }, + { + "name": "attr/lastseen" + }, + { + "name": "attr/manufacturername" + }, + { + "name": "attr/modelid" + }, + { + "name": "attr/name" + }, + { + "name": "attr/swversion" + }, + { + "name": "attr/type" + }, + { + "name": "attr/uniqueid" + }, + { + "name": "config/offset", + "description": "Relative offset to the main measured value.", + "default": 0 + }, + { + "name": "config/on" + }, + { + "name": "config/reachable" + }, + { + "name": "state/lastupdated" + }, + { + "name": "state/temperature", + "default": 0 + } + ] + } + ], + "bindings": [ + { + "bind": "unicast", + "src.ep": 1, + "dst.ep": 1, + "cl": "0x0204" + }, + { + "bind": "unicast", + "src.ep": 1, + "dst.ep": 1, + "cl": "0x0B04", + "report": [ + { + "at": "0x050B", + "dt": "0x29", + "min": 1, + "max": 300, + "change": "0x00000001" + }, + { + "at": "0x0505", + "dt": "0x21", + "min": 1, + "max": 300, + "change": "0x0000000A" + }, + { + "at": "0x0508", + "dt": "0x21", + "min": 1, + "max": 300, + "change": "0x00000001" + } + ] + } + ] +}