#How to apply automation action to an entity that is derived from a template sensor?
1 messages · Page 1 of 1 (latest)
1 messages · Page 1 of 1 (latest)
I have a template sensor that returns the full name of the entity in a "update.xyz" format. I'd like to run the update command for the entity, returned by the template sensor.
Something like this I think:
action: update.install
metadata: {}
data: {}
target:
entity_id: {{ sensor.mqtt_auto_update_next_entity_to_update }}
what is the right way to get the value template to the install command ?
you have to surround the template in quotes
and you need to properly retrieve the state of the sensor entity
see the examples there
quotes and states(...) worked