I have been developing a thermostat device handler from the original Z-Wave Thermostat device handler where the original setpoint scroll bars were replaced by UP/DOWN buttons.
Right now, every time I press the UP/DOWN buttons, a message is sent out to the device.
This is generating too much latency.
What I would like to do is to be able to press multiple times on the button then use a “Apply” button to send out the message.
Any idea on how to do that? Code example please…
Also, I want my tiles to be updated with the “non-applied” values while I’m increasing the setpoint, but I also still want the tiles to display the incoming setpoint from the thermostat if it was changed on the device itself.
So let say I have a setpoint of 70°F, I want to be able to press the UP/DOWN buttons any number of times without sending a single message, but at the same time, I want my Setpoint Value tiles to display the temporary values.
I’m good with C/C++, but I am a newbee with Groovy.
If you guys have any ideas/code snippet that I can use, it would be appreciated!