I added it to that topic as I thought it might be related.
I try to explain better.
The script gets the current setpoint:
- Code: Select all
TempRV = int(indigo.devices[ID1].heatSetpoint)
Then the script checks if the setpoint needs change. If so it executes:
- Code: Select all
indigo.thermostat.setHeatSetpoint(ID1, value=TempCurrent)
The log form IndigoServer gives me:
- Code: Select all
Z-Wave queued "* Woonkamer 1" change heat setpoint to 22.0° for next awake notification
Now the problem:
The script executes every half hour. If the Danfoss TRV did not wake up before next execution of the script 'TempRV = int(indigo.devices[ID1].heatSetpoint)' gives me the unchanged setpoint and 'indigo.thermostat.setHeatSetpoint(ID1, value=TempCurrent)' is executed again. End result is that I get multiple 'Z-Wave queued "* Woonkamer 1" change heat setpoint to 22.0° for next awake notification'.
When Indigo has queued the change to the Danfoss I see that the state of the device (Danfoss) in Indigo is changed to '22'. When the Danfoss has received the 'change heat setpoint' I see the state in Indigo change to ' 22.00C'. So '22' represents a change heat setpoint that is queued and '22.00C' represents that the change has been received bij the Danfoss. Now I need to know how I can get this queued state into my script so I can prevent that 'indigo.thermostat.setHeatSetpoint(ID1, value=TempCurrent)' is executed multiple times.
I hope I made it more clear.
Greetings,
Adrian