Closed ahmaddxb closed 3 years ago
Hi, do you mean you would like to set the entity attribute to its state value ? If so, you need to adjust your code a little.
First, the rows
entity_id: sensor.tasmota_latest_version
and
- latest_version: '{{(states.sensor.latest_tasmota)}}'
should refer to the same sensor.
tasmota_latest_version
and latest_tasmota
don't match, is this a typo ?
Second, the row
- latest_version: '{{(states.sensor.latest_tasmota)}}'
does not set the state value, but the whole state object (in json notation).
You should change it to:
- latest_version: '{{states.sensor.latest_tasmota.state}}'
or even better:
- latest_version: '{{states("sensor.latest_tasmota")}}'
Let me know if that helps.
yer that worked thanks, think is was a long day was trying to many things.
How would i set the attribute of en entity from its state
YAML configuration