Trying to figure out if I can do this. My mom comes over from time to time and will stay at my house for a few hours. Well if no one is home the heat is set low. I want to be able to adjust the mode based on time when someone unlocked the door with a code.
If Lock is unlocked by code
Then
Disable HMS
Set mode to xxx
Mode could be day, night, evening. This would be based in the time of day.
The part I'm trying to figure out is setting mode. How can I tell HE to set the correct mode?
First of all, set up your modes with Mode Manager using times of day. There you can add a switch to return from Away, and select the option for Use Time Settings for return from Away. Then, in your rule triggered by the unlock code, you flip that virtual switch, and that will set the mode based on the time of day.
You could edit the switch in the device to automatically turn off after a certain time and remove this from RM. we do this quite a bit with our virtual switches.