Skip to content

Commit

Permalink
Update _TZE200_TYST11_trv.json
Browse files Browse the repository at this point in the history
  • Loading branch information
mattreim committed Dec 22, 2024
1 parent 849c2aa commit 4151b33
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions devices/tuya/_TZE200_TYST11_trv.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,15 @@
"0x01",
"0xef00"
],
"meta": {
"values": {
"config/mode": {
"auto": 1,
"heat": 2,
"off": 0
}
}
},
"items": [
{
"name": "attr/id"
Expand Down Expand Up @@ -136,25 +145,25 @@
}
},
{
"name": "config/on"
},
{
"name": "config/preset",
"name": "config/mode",
"parse": {
"fn": "tuya",
"dpid": 4,
"script": "tuya_trv_preset.js"
"eval": "if (Attr.val == 0) { Item.val = 'off' } else if (Attr.val == 1) { Item.val = 'auto' } else if (Attr.val == 2) { Item.val = 'heat' }"
},
"write": {
"fn": "tuya",
"dpid": 4,
"dt": "0x30",
"script": "tuya_trv_preset_set.js"
"eval": "if (Item.val == 'off') { 0 } else if (Item.val == 'auto') { 1 } else if (Item.val == 'heat') { 2 }"
},
"read": {
"fn": "none"
}
},
{
"name": "config/on"
},
{
"name": "config/reachable"
},
Expand Down

0 comments on commit 4151b33

Please sign in to comment.