Sorry, I was out last night and didn’t get a chance to try your binding. I’ve looked through the code though and wonder if there’s some lists in my JSON that aren’t in yours because of my room setup.
For example, I have:
- 1x room stat in the living room, with no iTRV
- 1x iTRV in the bedroom
- 1x iTRV in the bathroom
The room JSON looks like this:
"Room": [
{
"id": 1,
"OverrideType": "None",
"RoomStatId": 50904,
"ScheduleId": 1,
"Name": "Living Room",
"Mode": "Auto",
"DemandType": "Modulating",
"CalculatedTemperature": 200,
"CurrentSetPoint": 180,
"PercentageDemand": 0,
"ControlOutputState": "Off",
"DisplayedSetPoint": 180
},
{
"id": 2,
"OverrideType": "Manual",
"OverrideTimeoutUnixTime": 1515237414,
"OverrideSetpoint": 215,
"SmartValveIds": [
49196
],
"ScheduleId": 2,
"Name": "Bathroom",
"Mode": "Auto",
"DemandType": "Modulating",
"CalculatedTemperature": 205,
"CurrentSetPoint": 215,
"PercentageDemand": 85,
"ControlOutputState": "On",
"WindowState": "Closed",
"DisplayedSetPoint": 215
},
{
"id": 3,
"SmartValveIds": [
60989
],
"ScheduleId": 3,
"Name": "Bedroom",
"Mode": "Auto",
"DemandType": "Modulating",
"WindowDetectionActive": false,
"CalculatedTemperature": -32768,
"CurrentSetPoint": 160,
"PercentageDemand": 0,
"ControlOutputState": "Off",
"WindowState": "Closed",
"DisplayedSetPoint": 160
}
]
I’ve also just noticed my bedroom iTRV has no signal, that explains the temperature reading of -32768