midea_ac_lan icon indicating copy to clipboard operation
midea_ac_lan copied to clipboard

Cannot access on climate entities throght template or python script

Open Rihan9 opened this issue 7 months ago • 0 comments

HA core version

2024.6.4

Intergration version

v0.3.22

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

Rihan9 avatar Jun 30 '24 09:06 Rihan9