diff --git a/devices/tuya/_TZE200_TYST11_trv.json b/devices/tuya/_TZE200_TYST11_trv.json new file mode 100644 index 0000000000..b425cff338 --- /dev/null +++ b/devices/tuya/_TZE200_TYST11_trv.json @@ -0,0 +1,236 @@ +{ + "schema": "devcap1.schema.json", + "uuid": "f2401df5-5635-4878-b176-e3246192b02c", + "manufacturername": [ + "_TYST11_zivfvd7h", + "_TZE200_zivfvd7h", + "_TYST11_kfvq6avy", + "_TZE200_kfvq6avy", + "_TYST11_jeaxp72v", + "_TZE200_jeaxp72v", + "_TYST11_hhrtiq0x", + "_TZE200_hhrtiq0x", + "_TYST11_ps5v5jor", + "_TZE200_ps5v5jor", + "_TYST11_owwdxjbx", + "_TZE200_owwdxjbx", + "_TYST11_8daqwrsj", + "_TZE200_8daqwrsj", + "_TZE200_2cs6g9i7" + ], + "modelid": [ + "ivfvd7h", + "TS0601", + "fvq6avy", + "TS0601", + "eaxp72v", + "TS0601", + "hrtiq0x", + "TS0601", + "s5v5jor", + "TS0601", + "wwdxjbx", + "TS0601", + "daqwrsj", + "TS0601", + "TS0601" + ], + "vendor": "Tuya: Essentials, Revolt, Siterwell, Nedis...", + "product": "Tuya radiator thermostat", + "sleeper": false, + "status": "Gold", + "subdevices": [ + { + "type": "$TYPE_THERMOSTAT", + "restapi": "/sensors", + "uuid": [ + "$address.ext", + "0x01", + "0xef00" + ], + "items": [ + { + "name": "attr/id" + }, + { + "name": "attr/lastannounced" + }, + { + "name": "attr/lastseen" + }, + { + "name": "attr/manufacturername" + }, + { + "name": "attr/modelid" + }, + { + "name": "attr/name" + }, + { + "name": "attr/swversion", + "refresh.interval": 86400, + "parse": { + "fn": "zcl:attr", + "ep": 1, + "cl": "0x0000", + "at": "0x0001", + "script": "tuya_swversion.js" + }, + "read": { + "fn": "zcl:attr", + "ep": 1, + "cl": "0x0000", + "at": "0x0001" + } + }, + { + "name": "attr/type" + }, + { + "name": "attr/uniqueid" + }, + { + "name": "config/battery", + "parse": { + "fn": "tuya", + "dpid": 21, + "eval": "Item.val = Attr.val;" + }, + "read": { + "fn": "none" + } + }, + { + "name": "config/heatsetpoint", + "parse": { + "fn": "tuya", + "dpid": 2, + "eval": "Item.val = Attr.val * 10;" + }, + "write": { + "fn": "tuya", + "dpid": 2, + "dt": "0x2b", + "eval": "Item.val / 10;" + }, + "read": { + "fn": "tuya" + } + }, + { + "name": "config/locked", + "parse": { + "fn": "tuya", + "dpid": 7, + "eval": "Item.val = Attr.val;" + }, + "write": { + "fn": "tuya", + "dpid": 7, + "dt": "0x10", + "eval": "Item.val;" + }, + "read": { + "fn": "none" + } + }, + { + "name": "config/on" + }, + { + "name": "config/preset", + "parse": { + "fn": "tuya", + "dpid": 4, + "script": "tuya_trv_preset.js" + }, + "write": { + "fn": "tuya", + "dpid": 4, + "dt": "0x30", + "script": "tuya_trv_preset_set.js" + }, + "read": { + "fn": "none" + } + }, + { + "name": "config/reachable" + }, + { + "name": "config/setvalve", + "parse": { + "fn": "tuya", + "dpid": 20, + "eval": "Item.val = Attr.val;" + }, + "write": { + "fn": "tuya", + "dpid": 20, + "dt": "0x10", + "eval": "Item.val;" + }, + "read": { + "fn": "none" + } + }, + { + "name": "config/windowopen_set", + "parse": { + "fn": "tuya", + "dpid": 18, + "eval": "Item.val = Attr.val;" + }, + "write": { + "fn": "tuya", + "dpid": 18, + "dt": "0x10", + "eval": "Item.val;" + }, + "read": { + "fn": "none" + } + }, + { + "name": "state/errorcode", + "parse": { + "fn": "tuya", + "dpid": 19, + "eval": "Item.val = Attr.val;" + }, + "read": { + "fn": "none" + }, + "default": "0" + }, + { + "name": "state/lastupdated" + }, + { + "name": "state/temperature", + "parse": { + "fn": "tuya", + "dpid": 3, + "eval": "Item.val = Attr.val * 10;" + }, + "read": { + "fn": "none" + } + }, + { + "name": "state/windowopen", + "parse": { + "fn": "tuya", + "dpid": 17, + "eval": "if (Attr.val == 0) { Item.val = 'close' } else { Item.val = 'open' }" + }, + "read": { + "fn": "none" + }, + "default": "close" + } + ] + } + ] +} \ No newline at end of file diff --git a/devices/tuya/_TZE200_hhrtiq0x_nedis_trv.json b/devices/tuya/_TZE200_hhrtiq0x_nedis_trv.json deleted file mode 100644 index 48674a5a03..0000000000 --- a/devices/tuya/_TZE200_hhrtiq0x_nedis_trv.json +++ /dev/null @@ -1,112 +0,0 @@ -{ - "schema": "devcap1.schema.json", - "uuid": "f2401df5-5635-4878-b176-e3246192b02c", - "manufacturername": ["_TZE200_hhrtiq0x", "_TZE200_ps5v5jor", "_TZE200_2cs6g9i7"], - "modelid": ["TS0601", "TS0601", "TS0601"], - "vendor": "Tuya", - "product": "Nedis TRV (TS0601)", - "sleeper": false, - "status": "Gold", - "subdevices": [ - { - "type": "$TYPE_THERMOSTAT", - "restapi": "/sensors", - "uuid": [ - "$address.ext", - "0x01", - "0xef00" - ], - "meta": { - "values": { - "config/mode": {"auto": 0, "heat": 1, "off": 2} - } - }, - "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/battery", - "parse": {"fn": "tuya", "dpid": 21, "eval": "Item.val = Attr.val;"}, - "read": {"fn": "none"} - }, - { - "name": "config/heatsetpoint", - "parse": {"fn": "tuya", "dpid": 2, "eval": "Item.val = Attr.val * 10;"}, - "write": {"fn": "tuya", "dpid": 2, "dt": "0x2b", "eval": "Item.val / 10;"}, - "read": {"fn": "tuya"} - }, - { - "name": "config/locked", - "parse": {"fn": "tuya", "dpid": 7, "eval": "Item.val = Attr.val;"}, - "write": {"fn": "tuya", "dpid": 7, "dt": "0x10", "eval": "Item.val;"}, - "read": {"fn": "none"} - }, - { - "name": "config/on" - }, - { - "name": "config/reachable" - }, - { - "name": "config/windowopen_set", - "parse": {"fn": "tuya", "dpid": 18, "eval": "Item.val = Attr.val;"}, - "write": {"fn": "tuya", "dpid": 18, "dt": "0x10", "eval": "Item.val;"}, - "read": {"fn": "none"} - }, - { - "name": "config/mode", - "values": [ - ["auto", 0], ["heat", 1], ["off", 2] - ], - "parse": {"fn": "tuya", "dpid": 106, "eval": "if (Attr.val == 0) { Item.val = 'auto' } else if (Attr.val == 1) { Item.val = 'heat' } else { Item.val = 'off' }"}, - "write": {"fn": "tuya", "dpid": 106, "dt": "0x30", "eval": "if (Item.val == 'auto') { 0 } else if (Item.val == 'heat') { 1 } else { 2 }"}, - "read": {"fn": "none"} - }, - { - "name": "config/preset", - "parse": {"fn": "tuya", "dpid": 4, "script": "tuya_trv_preset.js"}, - "write": {"fn": "tuya", "dpid": 4, "dt": "0x30", "script": "tuya_trv_preset_set.js"}, - "read": {"fn": "none"} - }, - { - "name": "state/lastupdated" - }, - { - "name": "state/temperature", - "parse": {"fn": "tuya", "dpid": 3, "eval": "Item.val = Attr.val * 10;"}, - "read": {"fn": "none"} - }, - { - "name": "state/valve", - "parse": {"fn": "tuya", "dpid": 109, "eval": "Item.val = Attr.val > 5;"}, - "read": {"fn": "none"} - } - ] - } - ] -} \ No newline at end of file