I’ve written a script which I’d like to share, but I want to make it dynamic. For a given integration, the sensor will always be : sensor.name_range
Is there a way I can either extract the name to use in a script, or state “Whatever the sensor.name_range is, use it”. The integration will always have a sensor with this format, replacing name with whatever the name of the device is.
Thanks