Hello, Home Phrase Director - Control modes (through hello home phrases) based on occupancy and "sun state"

Been there since day one.

Not the same thing…

How so? The app logic will check for sunrise/sunset but not do anyhting else outside of the selected mode… is that not what you want?

@tslagle13 Hey Tim, just wanted to let you know that this app passed initial functional review and is in code review. Stay tuned for updates via email.

@mager

Cool!!! Let me know if you need anything from me!

@tslagle13: Thanks soo much for sharing this! I used to have a mess of different modes trying to accomplish this same thing. Found your code and this is so much simpler!

I use this mostly to activate my motion sensor lighting at sunset when someone is home. Looking forward to seeing this as a published app. It’s too bad they wouldn’t let you use the sunset/sunrise offset method, but definitely not a deal-breaker.

Thanks again!! :smiley:

1 Like

@triggertact

Did some more testing today. Mode restrictions works as far as I can tell. Were you able to test. If so, is it working? Maybe you have a different set of circumstances then I?

Looks like it worked last night so perhaps I had an outdated version of the code. Good to go now, thanks!

1 Like

Glad to hear it. Definitely let me know if anything else comes up.

Does anyone else on the thread have any recommendations to improve the app? I am going to try and streamline some stuff. I might not be able to add everything but im open to some recommendations. :smile:

It works great for my needs. In fact, I’ve reached out to a SmartThings VP that I’ve communicated with in the past about this to see if we can get it fast-tracked through the official app approval process.

I’m a homebuilder and we just started including STs as a standard feature in our homes. I really think our customers should have these 4 modes, rather than the default 3. Therefore, I’d feel much more comfortable if they could just install this app straight from Smart Setup, rather then giving them a long tutorial of how to create the SmartApp using the code you’ve provided. I can guarantee the majority of them won’t have the patience to mess with that.

Anyways, he said he’s checking with their “community team to see the status of it” and will get back to me.

Cool. Thanks man.


1 Like

Since you’re asking for feature requests, it would be nice to see support for a sleep action/mode. Right now, it requires “things quiet down”, “things start happening”, and your “Big Switch for Hello Home Phrases” to automatically switch back and forth between home night and sleep modes. I use motion detectors and switch state during a specific time window with a false positive delay to determine whether someone is awake.

Allowing selection of multiple home night modes in the app would be helpful for my use case as well since I have 2 modes that qualify as home night.

@notoriousbdg Maybe this will help.

I have a “Sleep” mode as well. I have it setup to automatically go into this mode when things quite down but only when in my “Home Night” mode. Also i have it set to go to Home Day when things start happening and my Home Magic is set to not run during my “sleep” mode.

Is this what you mean?

Yes, pretty close to what I have setup. I initially relied on “Sleep” transitioning directly to “Home Day”, but I found that I also needed to allow “Sleep” to automatically transition back to “Home Night” when we wake up to ensure motion lights still functioned if we leave the house before sunrise.

As it stands currently if you leave the house during sleep mode, and Magic Home is allowed to run in sleep mode, it will run the appropriate hello home phrase based on the “sun state”.

If Magic Home is blocked during your sleep mode it won’t do that.

I’m thinking the solution here lies in the hello home phrases. To bake this into the app would male the setup of the app hard and it wouod be very hard to incorporate that logic into the app.

I hope I’m understanding you correctly and answering your question fully. Does this help?

Since you asked and I know this isn’t the purpose of the app but I would really like to set the times the modes change (option) especially for mornings Instead of sunrise. Having to wait for it to change at a different time every week/month when I get up at the same time everyday is only slightly inconvenient (there are work arounds). :slight_smile:

Thanks to everyone for their input, questions and thoughts on this. To add to the conversation, I had one more question for everyone. :stuck_out_tongue:

How are you implementing a Goodnight mode/phrase into this? Tim mentioned in post #46.

I have a “goodnight” phrase that turns the mode to goodnight and does the other things i want it to do. (Home Magic is not allowed to run during this mode)

I’ve found how I can set a Goodnight phrase to trigger at 11pm which in turn changes the mode to Goodnight, But I don’t see how to have Goodnight END at a certain time. I’d like have Goodnight end at either manually or at a certain time, then have Magic Home (or something) intelligently decide which mode to go into next.

Is there a way to do this? Thank you!

I would put on my wishlist the ability to create a home timeline to set various modes within Magic Home. For instance, it works best for me to set a morning mode at a preset time (e.g. 5:30 AM), then switch to a day mode at sunrise, then an evening mode at sunset, and finally a night mode at the same time (e.g. 10:30 PM). To make it especially useful, it would be great to use activity, such as motion sensors, to set the morning and night modes. Right now I’m able to set modes like this using a combination of Magic Home and other separate actions, so this is more of a nice-to-have wish than a need-to-have requirement.

Regardless I would say this is a great app, so continued stability would be a higher priority than adding too many extras.

1 Like

this is currently how I have things set up. since morning and night modes are schedule based you just need to edit the schedule in the action itself instead of magic home.

1 Like

Just allow Magic Home to set your your new mode when the sun rises. You’d go from your “sleep” mode to home-day when the sun rises. I think this is what you want?