Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update DDF for the Sinope TH1124ZB #5988

Merged
merged 3 commits into from
Apr 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion devices/generic/items/config_externalsensortemp_item.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
"datatype": "Int16",
"access": "RW",
"public": true,
"description": "The temperature measured by an external sensor."
"description": "The temperature measured by an external sensor, can be used for regulation or displayed on screen."
}
60 changes: 52 additions & 8 deletions devices/sinope/th1124zb.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
{
"schema": "devcap1.schema.json",
"manufacturername": "Sinope",
"manufacturername": "Sinope Technologies",
"modelid": "TH1124ZB",
"product": "TH1124ZB",
"sleeper": false,
"status": "Silver",
"path": "/devices/th1124zb.json",
"subdevices": [
{
"type": "$TYPE_THERMOSTAT",
Expand Down Expand Up @@ -80,7 +79,38 @@
},
{
"name": "config/schedule_on",
"description": "Determines if on-device schedules for setting the heatsetpoint are currently used or if the thermostat is operated manually."
"description": "Determines if on-device schedules for setting the heatsetpoint are currently used or if the thermostat is operated manually.",
"default": false
},
{
"name": "config/externalsensortemp",
"description": "External sensor temperature used as Outdoor temperature on display.",
"refresh.interval": 300,
"read": {
"at": "0x0010",
"cl": "0xff01",
"ep": 1,
"fn": "zcl",
"mf": "0x119c"
},
"parse": {
"at": "0x0010",
"cl": "0xff01",
"ep": 1,
"eval": "Item.val = Attr.val;",
"fn": "zcl",
"mf": "0x119c"
},
"write": {
"at": "0x0010",
"cl": "0xff01",
"ep": 1,
"fn": "zcl",
"dt": "0x29",
"mf": "0x119c",
"eval": "Item.val"
},
"default": -32768
},
{
"name": "state/lastupdated"
Expand Down Expand Up @@ -150,14 +180,23 @@
},
{
"name": "state/current",
"refresh.interval": 300
"description": "The measured current (in A).",
"refresh.interval": 300,
"parse": {
"at": "0x0508",
"cl": "0x0b04",
"ep": 1,
"eval": "if (Attr.val != 65535) { Item.val = Attr.val / 1000; }"
},
"default": 0
},
{
"name": "state/lastupdated"
},
{
"name": "state/power",
"refresh.interval": 300
"refresh.interval": 300,
"default": 0
},
{
"name": "state/voltage",
Expand All @@ -167,7 +206,8 @@
"cl": "0x0b04",
"ep": 0,
"eval": "if (Attr.val != 65535) { Item.val = Attr.val / 10 ; }"
}
},
"default": 0
}
]
},
Expand Down Expand Up @@ -224,14 +264,18 @@
},
{
"name": "state/consumption",
"refresh.interval": 300
"refresh.interval": 300,
"default": 0
},
{
"name": "state/lastupdated"
},
{
"name": "state/power",
"refresh.interval": 300
"description": "The measured power (in W).",
"refresh.interval": 300,
"default": 0,
"parse": {"at": "0x050B", "cl": "0x0B04", "ep": 1, "eval": "if (Attr.val != -32768 && Attr.val != 32768) { Item.val = Attr.val; }", "fn": "zcl"}
}
]
},
Expand Down