Thanks Martin. I tried doing a dump of the tado2 device (tado X radiator valve/thermostat) data using Homey Web API Playground, and I notice that the energyObj values are all null. Other fields look fine as far as I can tell. Is this of any significance, or irrelevant?
Dumped using:
Homey.devices.getDevices()
.then(f => {
// return Object.values(f).filter((device) => device.driverId === 'homey:app:com.tado2:smart_radiator_thermostat_x');
return Object.values(f).filter((device) => device.id === '007e21b9-e7a8-49a0-9262-7136e6613f0d');
})
.then(devices => console.log(JSON.stringify(devices)));
Console output (with a bit of extra manual formatting):
[{
"id":"007e21b9-e7a8-49a0-9262-7136e6613f0d",
"uri":"homey:device:007e21b9-e7a8-49a0-9262-7136e6613f0d",
"driverId":"homey:app:com.tado2:smart_radiator_thermostat_x",
"ownerUri":"homey:app:com.tado2",
"name":"Oscar's Smart Radiator Thermostat X",
"note":null,
"zone":"ba836ffc-73b8-4600-8cfa-172f987994a2",
"data":{"nodeId":1931573698,"nodeIndex":0},
"icon":null,"iconOverride":null,
"iconObj":{"id":"3f1d4217044a5dc91c5704704b2f678f",
"url":"/api/icon/b2fa5d2b-6f10-42e4-9087-8473ebeb18fc"},
"class":"thermostat",
"virtualClass":null,
"capabilities":["button.remove_node","thermostat_mode","target_temperature","measure_temperature"],
"capabilitiesObj":{
"button.remove_node":{
"id":"button.remove_node",
"type":"boolean","iconObj":null,
"title":"Remove Matter Node","getable":false,"setable":true,
"insightsTitleTrue":null,
"insightsTitleFalse":null,
"maintenanceAction":true,
"desc":"Remove this Matter device and all other devices connected to this Matter node. Warning: this action cannot be undone!",
"value":null,"lastUpdated":null},
"thermostat_mode":{
"id":"thermostat_mode",
"type":"enum",
"iconObj":null,
"title":"Thermostat mode",
"getable":true,
"setable":true,
"insightsTitleTrue":null,
"insightsTitleFalse":null,
"values":[{"id":"auto","title":"Automatic"},
{"id":"heat","title":"Heat"},
{"id":"cool","title":"Cool"},
{"id":"off",
"title":"Off"}],
"value":"heat",
"lastUpdated":"2024-12-19T21:52:13.134Z"},
"target_temperature":{
"id":"target_temperature",
"type":"number",
"iconObj":null,
"title":"Target temperature",
"getable":true,
"setable":true,
"insights":true,
"insightsTitleTrue":null,
"insightsTitleFalse":null,
"min":5,
"max":30,
"units":"°C",
"decimals":1,
"value":19,
"lastUpdated":"2024-12-20T07:00:03.533Z"},
"measure_temperature":{
"id":"measure_temperature",
"type":"number",
"iconObj":null,
"title":"Temperature",
"getable":true,
"setable":false,
"insights":true,
"insightsTitleTrue":null,
"insightsTitleFalse":null,
"units":"°C",
"decimals":1,
"value":18.7,
"lastUpdated":"2024-12-20T07:21:43.182Z"}},
"settings":{
"mtr_product_id":"0x0001",
"mtr_vendor_id":"0x134e",
"mtr_product_name":"Smart Radiator Thermostat X",
"mtr_vendor_name":"tado° GmbH",
"climate_exclude":false,
"mtr_node_id":"0x732179c2"},
"settingsObj":true,
"flags":["matter","matterNodeRoot"],
"energy":{},
"energyObj":{
"W":null,
"batteries":null,
"cumulative":null,
"homeBattery":null,
"cumulativeImportedCapability":null,
"cumulativeExportedCapability":null,
"generator":null,
"approximated":null},
"ui":{
"components":[{"id":"thermostat","capabilities":["measure_temperature","target_temperature"]},
{"id":"picker","capabilities":["thermostat_mode"]}],"componentsStartAt":0},
"uiIndicator":null,
"available":true,
"unavailableMessage":null,
"warningMessage":null,
"ready":true,
"repair":false,
"unpair":false,
"images":[],
"color":"#FFB121"
}]


