I got quite a lot of automations that trigger off hardcoded state values which happen to change from time to time and I have to manually edit them all to the new value.
Wondering what’s the easiest way to turn these hardcoded values into centrally controlled variables to make these migrations less painful.
Example of what I’m trying to achieve.
Automation triggers off the wifi ssid of a certain device. I got both the device and the ssid hardcoded right now. I’d want both these values to be variables. So instead of every automation looking for sensor.hardcoded-phone_wifi_connection changing to state “hardcoded-ssid”, they’d all be looking for $myphone and $myssid.
The input text helper looked like it might do the trick, but the documentation isn’t very thorough and I couldn’t get it to work. If it’s even the appropriate tool for this.
Would appreciate any help.