Hello! I just got a SmartThings hub for Xmas. I’ve had a Hue setup for a while and wanted to get more into home automation. Fun stuff!
The first thing I noticed about ST was that modes are kinda tricky and weird. Like most people, it seems, I expected them to trigger things. Then I found Hello Home phrases, and it started to make more sense.
The one thing I couldn’t figure out was how to automate things based on both presence and time of day. Having looked at the forums a bit now, everyone seems to struggle with the shoehorning of those two related concepts into modes.
So I set out to make a SmartApp to help ST work how I wanted and expected it to.
I probably should have poked around more, because this seems like a pretty popular endeavor in here! In particular, tslagle13’s Magic Home does just about exactly what I set out to do. I was looking to automate phrases on sunrise and sunset, but also wanted to switch from morning to day, and from night to late night.
So anyway, in the past couple of days I wrote a SmartApp (I’m a coder by background) that runs phrases automatically at sunrise/sunset, along with two (optional) other arbitrary times of day, factoring in if anyone is home or not.
I am using it with phrases called Morning, Morning Away, Daytime, Daytime Away, Night, Night Away and Late Night, Late Night Away.
After banging away on it, it seems to do the trick. Haven’t built in the ability to use a zip code other than the hub’s, or the “false alarm” interval that everyone seems to use for presence, but it’s a start! I’m just a couple weeks into ST and a couple days into Groovy, so there’s much to learn, but I’m excited to keep hacking away and trying to contribute.
Anyway, it’s called Autophrases and it’s here on Github:
Thanks,
-cm