diff --git a/devices/third_reality/3RSPE01044BZ_smart_plug.json b/devices/third_reality/3RSPE01044BZ_smart_plug.json new file mode 100644 index 0000000000..0de17184da --- /dev/null +++ b/devices/third_reality/3RSPE01044BZ_smart_plug.json @@ -0,0 +1,261 @@ +{ + "schema": "devcap1.schema.json", + "manufacturername": "Third Reality, Inc", + "modelid": "3RSPE01044BZ", + "vendor": "Third Reality", + "product": "Smart plug", + "sleeper": false, + "status": "Gold", + "subdevices": [ + { + "type": "$TYPE_ON_OFF_PLUGIN_UNIT", + "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" + }, + { + "name": "state/on", + "refresh.interval": 360 + }, + { + "name": "state/reachable" + } + ] + }, + { + "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": 360 + }, + { + "name": "state/lastupdated" + }, + { + "name": "state/power", + "read": { + "at": "0x050b", + "cl": "0x0b04", + "ep": 1, + "fn": "zcl:attr" + }, + "parse": { + "at": "0x050b", + "cl": "0x0b04", + "ep": 1, + "eval": "Item.val = Attr.val / 10" + }, + "refresh.interval": 360 + }, + { + "name": "state/voltage", + "read": { + "at": "0x0505", + "cl": "0x0b04", + "ep": 1, + "fn": "zcl:attr" + }, + "parse": { + "at": "0x0505", + "cl": "0x0b04", + "ep": 1, + "eval": "Item.val = Attr.val / 10" + }, + "refresh.interval": 360 + } + ] + }, + { + "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", + "read": { + "at": "0x0000", + "cl": "0x0702", + "ep": 1, + "fn": "zcl:attr" + }, + "parse": { + "at": "0x0000", + "cl": "0x0702", + "ep": 1, + "eval": "Item.val = Attr.val / 10" + }, + "refresh.interval": 365 + }, + { + "name": "state/lastupdated" + } + ] + } + ], + "bindings": [ + { + "bind": "unicast", + "src.ep": 1, + "cl": "0x0006", + "report": [ + { + "at": "0x0000", + "dt": "0x10", + "min": 1, + "max": 300 + } + ] + }, + { + "bind": "unicast", + "src.ep": 1, + "cl": "0x0702", + "report": [ + { + "at": "0x0000", + "dt": "0x25", + "min": 10, + "max": 300, + "change": "0x0000000A" + } + ] + }, + { + "bind": "unicast", + "src.ep": 1, + "cl": "0x0B04", + "report": [ + { + "at": "0x0505", + "dt": "0x21", + "min": 10, + "max": 300, + "change": "0x00000001" + }, + { + "at": "0x0508", + "dt": "0x21", + "min": 10, + "max": 300, + "change": "0x00000064" + }, + { + "at": "0x050B", + "dt": "0x29", + "min": 10, + "max": 300, + "change": "0x00000001" + } + ] + } + ] +} \ No newline at end of file