Hi all,
I’ve been trying to search for a solution, but no luck so far, wonder if anyone has any suggestions…
Here’s the scenario.
I have a thermostat schedule, running every hour, and using luup code (found in forum, thanks !), that sets the heat set point based on the day and time.
However, lets say someone manually adjusts the temperature on the thermostat from the device itself, either up or down, and they happened to do that lets say a couple minutes before the automated schedule kicks off.
In that case, I wouldn’t want the schedule to kick in and change the set point that next time the schedule runs in a couple minutes.
So, I was thinking I could use the Countdown Timer device, set that to maybe 30 minutes, triggered when someone adjusts the set point.
That way, if the Countdown Timer is still counting down, I could prevent the schedule from running that time in the luup code.
That will override the auto schedule for at least an hour, giving the person their manually set temp for a little while.
But, I don’t see a trigger based on simply changing the set point to any other value.
I see if it’s over a particular temp, but I want to trigger the Timer if changed to ANY value, up or down…
Or, in luup, can I get the last time the set point was set ?
If less than 1 hour ago, then it must have been manually set, so I can prevent the schedule from running once then.
Does that make sense ?
I am hoping to do this using luup, rather than the PLEG, if possible.
Any suggestions would be appreciated.
Thanks,
Chris B.