technicalpickles / picklehome-homeassistant-config

homeassistant configuration for my house
3 stars 0 forks source link

Guest mode #39

Closed technicalpickles closed 6 years ago

technicalpickles commented 6 years ago

Work towards https://github.com/technicalpickles/picklehome/issues/32

I started with an input_boolean to control it, but I don't like how you need to add 2 automations, one for on and off.

I tried a switch.template instead, which was nicer. The downside is that you have to use something for the value_template. I tried using the climate.cottage target temp and mode, but realized that porch_mode would interfere with it. If you turned on porch mode, having the guest mode value_template based on the climate would turn off, and you wouldn't have a way to know that it needed to be reset.

I ended up going back to input_boolean after that. I also added a script to restore the guest mode's climate, so porch mode could call that.