#UI toggle switch between OFF and Auto (Scripts)

1 messages · Page 1 of 1 (latest)

fresh wharf
#

Hi All!

Just started with HASC, awesome service to expand on HA!

I am searching for quite a specific toggle switch to run scripts, hope someone can point me in the right direction 🙂
Quick explanation; I have Radiator boosters, that I either run in Automatic mode (fan speed based on targeted room temperature) or turn off . Both "states" are set with a simple script, that sets a few parameters of the boosters to run in said auto mode, or off.
Now, I have 2 buttons on my dashboard that run said scripts just fine. However, for UI purposes (Mainly to see current state as well) I would very much like to have a 2-way toggle switch, that switches to the left for off, or right for auto.

(How) Can I achieve this?

zinc hull
#

Use a template switch helper. You can set it to display off as off and auto as on, and then run the script when it is turned off/on

exotic ice
#

You could use a custom buttoncard

#

These cards are button cards with custom field. The custom field is a code that sets icon based on state. This is a toggle icon.

You can then set actions to both the main and custom field.

In my case, if you hit the main card, it navigate to a room. If you hit the switch icon, you toggle the lights