#Best way to setup "sleep" and "home from work" modes?

1 messages · Page 1 of 1 (latest)

quiet silo
#

What's a good way to setup a sleep mode like in a hotel where you hit a button and everything turns off? I currently have a script in my configuration.yaml to do it but curious if it may be easier to do it another way like as a scene or in pyscript (which I use quite a bit). Also I'd like a corresponding "evening" mode where it will turn on certain lights in the apartment and maybe turn on some music?

145     alias: "Turn Off Everything"
146     sequence:
147       - service: light.turn_off
148         target:
149           entity_id:
150             - light.bedroom
151             - light.desk
152             - light.kitchen
153             - light.living_room
154             - light.bathroom
155       - service: media_player.turn_off
156         target:
157           entity_id:
158             - media_player.denon_avr_s760h
159             - media_player.shieldtv
160             - media_player.lg_tv_living_room```
buoyant lagoon
#

you may want to make scenes which you then activate with automations

a scene stores the state if the devices/entities you add to it and then you can recall all the states in that at once

#

so you can have a scene with everything off and when called it will turn everything off.
evening scene with the lights you want on and when called they all come on.
etc...

quiet silo
#

how robust are scenes i.e, can I define them in config or does is all go through the gui? What if I add or remove devices?

buoyant lagoon
#

you can do it in the gui. you add your devices and set them the way you want them and hit save. you can add and remove whatever you want at your leisure

quiet silo
#

Looking at the documentation I see they can also be configured in config, perhaps that might be better as I'd have more control rather than losing visibility due to the GUI.

civic sail
#

Why not just try the gui. You're significantly less likely to do something wrong

buoyant lagoon
#

you can do it in yaml if you like but it might be a bit more complicated depending on what you want to achive

quiet silo
#

I see, will give it a go in the GUI. Thanks for the advice, it looks like scenes would be the best way to go here