I’ve been using fields in scripts to combine multiple scripts into one for notification purposes for awhile because it’s going to make things so much easier when I need to change devices, also makes my automations cleaner however I’ve now decided to branch this out and started combining my lights flashing scripts, fade on scripts and find devices scripts too which just makes sense.
However given I’m only using the selection, rgb colour and text options and there are so many other options available that I don’t know how to use, I was wondering what other people are doing? I’d like to know how to reference the toggle field, that one seems handy.
Part of me is tempted to combine all my remote scripts into one master switch with the exception of power on/off scripts that I need for my template switches, this would probably knock my script count down into the 20s-30s instead of 200s
If it helps anyone I’ll quickly jot down a few examples i use:
{{ 'My Phone' in find_devices }}
is how i reference selections in conditions
{{ icon_color_hex: "{{ \"#{:02x}{:02x}{:02x}\".format(*notification_colour) }}
is for notification colours of icons in variables then you just reference {{icon_color_hex}}
in your notification field beside colour. I use the Red Home Assistant Icon for problems, the standard blue for anything else.
{{message}}
is a little easier which just references the text selection