Closed Rihan9 closed 1 day ago
Please try with the following syntax:
{{ states('climate.142936511746774_climate')['last_changed'] }}
Hi @chemelli74 , same error
Hi, I tried to rename the entity name from "142936511746774_climate" to "142936511746774", and now the states.climate.153931628036068_climate.last_changed works
Hi, I also managed to make it works in the python scripts, without change the name of the entity, so I'm good now. Thanks for your help!
HA core version
2024.6.4
Integration version
v0.4.2
Device type and model
Air Conditioner 00000Q1B (0)
Used App
Carrier air conditioner
The description of problem
Hi, to prevent an automation to turn on and off the climate continuously, I need to access the last_changed attribute throght this:
states.climate.153931628036068_climate.last_changed
but neiter in template nor in python script the command works. I got the following error:
expected token 'end of print statement', got '_climate'
I tried the same command with a generic light and works. Can you please help me?
Thanks and Regards
The logs
No response