Or, a broader selection (too broad in my case, but should provide some devices on every installation):
alias: test_param
sequence: []
mode: single
fields:
thermometer:
name: Thermometer
required: true
selector:
device:
entity:
device_class: temperature
And then, based on that kind of filter, define variables for a state of each entity. In my case with force_update that would allow to trigger an automation every time the sensor sends a value even if it is unchanged.
The name of the variable could be named after the original state by appending "_var" for instance (I think there is already a naming mechanism).
I would like to define variables for several entities of the same type without specifying each of them individually.
For instance, I would like to have track the temperature of temperature sensors of a given type in one definition.
For example, this script definition:
Or, a broader selection (too broad in my case, but should provide some devices on every installation):
And then, based on that kind of filter, define variables for a state of each entity. In my case with force_update that would allow to trigger an automation every time the sensor sends a value even if it is unchanged.
The name of the variable could be named after the original state by appending "_var" for instance (I think there is already a naming mechanism).