I'm using Shelly relays to make my normal light switches smart. Using relays or smart switches rather than smart bulbs / lights? See below! Switches aren't lights In the helpers list you'll see a group called light.presence_simulation_lights - copy this name exactly as we'll need it in the automation.Give your group a name (e.g., "Presence simulation lights") and choose the members to include in the group.When asked what type of group this is, choose Light group.Choose Group (a circle with three dots in it).Once we've created the light group we'll be referencing it by name in the automation. This gives us flexibility, as it may not be worth turning on every light (for example, a basement that has no windows wouldn't show any light externally so there's no point turning that light on). We need to create a group of lights that the automation will control. The list of helpers will now include input_text.light_to_switch.For name, type light_to_switch and leave the other options as their defaults.The list of helpers will now include input_boolean.holidaymodeĪs the automation stores the light it is going to change (switch on or off) in the " light to switch" variable, we need to create that.Type a name (e.g., HolidayMode) and choose an icon (e.g., mdi:beach) and click Create.Click on the Helpers tab (in the web interace this will be at the top, on the Android app it's an icon at the bottom.To achieve this I created an toggle helper called input_boolean.holidaymode: Equally I could have set it to trigger if all members of the house were away for an extended period, but that's sufficiently rare it made more sense to enable it manually. I've configured my automation to only trigger if holiday mode is enabled. I'm writing this guide in August 2022, using Home Assistant version 2022.8. I've taken their work to get me started, and largely their code is unchanged. I want to thank Mirek Malinowski on the Home Assistant forum for sharing their code in this post. ![]() This is a how to guide for implementing similar in your setup.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |