I have a routine that I had running at 5.30pm only if someone is home (ie mode is set to home).
Problem with this is if we come home after 5.30pm then this routine will not run.
The routine I mention above all it does is set the Mode to “night”. I then use the mode changing to night to trigger a virtual thermostat that controls a heater in a bedroom (using a smart switch and multipurpose sensor).
So is there a way to get mode to set to “Night” any time after 5.30pm that someone is home?
Jumping in a little early, because @JDRoberts asked a good question, but I think I might be able to help. I have several routines that run at specific times, or more precisely, within certain timeframes and triggered from a variety of ways. Not making any promises, but what you are asking sounds like things I have set up for our situation.
The Routine that runs when one of us gets home. I have since added for this not to happen if Mode is already “Night”. My thinking here was that the “I’m back” routine will run when any one of the 3 people loaded get home as far as I am aware. So if the first person is home and then then Good Night! routine runs to set the mode to night and then someone else came home it would change it back to “Home” (previously).
Ok, " at a certain time" means just that–at that exact time.
Instead, you want to use “restrictions” to set a range when the automation is allowed to operate. That way when someone comes home during that range, the automation will run.
You can further restrict it by using modes if needed, so that only the first person coming home will trigger it.
To set up this kind of two level automation (trigger by arrival, but only within a range of time) use the official smart lights feature instead of a routine. Use “more options” at the end of the rule to set the time restriction.
See the second example in the official knowledge base article
Once you have SmartLights set up to fire when desired, you can have it turn on a virtual Switch and have that Switch coming on be the trigger for a separate routine that does all the other stuff like set the thermostats. Just remember to have the routine turn the virtual Switch off again so it’s ready for the next day.
As far as I know, it’s current, but it’s for the new “SmartThings (Samsung Connect)” app, not the “SmartThings Classic” app. They have different rules engines (for example, there are no “routines” in the new app).
I’ve had a look at the Smartlights app but not sure how I can get this to work for all use cases.
Eg. I could use it to turn on a virtual switch when someone comes home between certain times and use the switch to trigger a mode (Night) that the virtual thermostat uses as it’s trigger to start controlling. Then at a time in the morning I can use a routine to turn the heater off and the virtual switch off and change the mode to Home so the virtual thermostat will stop controlling.
What about the use case that we do not leave the property during the day. Ie no one will be coming home so the virtual switch will not get triggered, the mode will not change to night and the virtual thermostat will not trigger.
Set that virtual switch to change modes using the smartapp from step 1.
Use SmartLights to write the following rules for turning that switch on/off:
A. One to turn the switch on (thus setting the home to night) at 5:30, but only when the mode is home
B. One to turn the switch on based on someone arriving, but only after 5:30.
C. One to turn the switch off at some time in the morning, but only if the mode is still night (meaning
everyone is still home).
I believe those steps will get this heater turned on/off at the appropriate times for you.