Hi Chris,
I am all good with long post as it can give me a better understanding.
A toggle helper in Home Assistant is like a virtual switch that can be controlled manually or through automations. It helps track or trigger events in your smart home system. In our case, with dynamic lighting, we use a toggle helper to monitor whether an automation is still running, even when the light brightness is set to 0% (which effectively turns the light off). This way, the toggle helper provides a clear indication that the automation is active, even though the light is OFF.
In general, toggle helpers are useful for controlling or tracking any binary state in Home Assistant, like âon/offâ or âenabled/disabled.â You can use its state to control automations or any service that needs a switch to indicate whether something is running, whether itâs true or false. While toggle helpers can be used for a variety of purposes, I hope this gives you a better understanding of what they can do and how developers commonly use them.
Yes, you can create a Toggle Helper this way. While theyâre also referred to as Input Booleans, that term can sometimes be confusing for users who are new to HA or automations. Toggle Helper is a more intuitive name, and itâs what HA now calls it in the UI.
To create a toggle helper, follow these steps:
- Navigate to Settings > Devices & Services > Helpers (tab at the top).
- Click the Create helper button.
- Select Toggle.
- Enter a name for your toggle helper and choose an icon, if desired.
There are many types of helpers you can create in Home Assistant. By following steps 1 and 2, youâll see a variety of helper options to choose from. All the helpers you create can be managed in the same location, as outlined in step 1.
As already stated above, HA has added a recent feature to help streamline the process. Within the blueprint, during input selection, you can now create a new toggle helper directly by scrolling to the bottom of the list of entities and selecting Create a new Toggle Helper. This avoids the need to leave the blueprint editor. The toggle helper created this way is exactly the same as the one created via the steps above, making it easier to incorporate into your automations.
Once you create a toggle helper and add it to an automation, you donât need to manually turn it ON or OFF⌠the automation will handle that for you. If you add the toggle helper to a dashboard, youâll see it switch ON when the automation is running and OFF when itâs not.
Creating the toggle helper and selecting it in this input is all you need to do. Note that this toggle helper should be dedicated to this one automation only and shouldnât be used for anything else. If you create another automation, youâll need to create a new toggle helper specifically for that automation. You only need to create this toggle helper if the minimum brightness value is set to 0%.
Hope this helps you understand helpers and why we use them.
Blacky