I tested this, and indeed sometimes (not Always) the pause is reset after e.g. 10 or 15 seconds. So this seems to be a bug.paultie wrote:Just kicking this one up since this is where the integration of the thermosmart was born
Since a few weeks I am having troubles with the pause feature.
Apperently when sending a pause switch command it takes a while to process towards the thermosmart backend. If in that time domoticz retreives the status of the thermostat pause it resets is to the off value.
I see domoticz is updating the status of all its elements with thermosmart every 30 seconds. Isn't that to often?
I think every 60 seconds should be more than sufficient.
Does anyone know if this is changeable somewhere?
This might solve the issues for me.
I doubt however if that is because the Thermosmart backend takes a while to process the request, because if you look in the ThermoSmart mobile App, it almost instantly updates its status if the pause button is pushed in Domoticz.
Also even if this would be the case, increasing the polling interval from Domoticz would not solve the issue, just decrease the change of it hapening.
I don't know how it is implemented currently, but I think the best way to handle this would be that upon pressing the "Pause" button, Domoticz should:
- stop polling for the status
- send the pause command to ThermoSmart backend and
- upon receiving an acknowledge of this command, update the web interface and
- then start polling againg after 30 or 60 seconds.