hi all,
I’m a few weeks into my home assistant journey… in some ways far supiour to openhab… in others, quite frustrating… one is the error messaging that I’m still trying to get my head around…
in this case, I have 2 apparent attributes of a thermostat (hive) which look the same through the developer tools, but only one of which works as expected…
it appears to have attributes “temperature” and “current_temperature”:
however, when I try to put an automation in place… it only works for “temperature”. what is the difference for the attribute “current_temperature”? how can I retrieve its value?
thanks!
R.
automation script…
- alias: test temperature increase
trigger:
platform: template
value_template: '{{ states.climate.downstairs_heating.attributes.temperature > 18 }}'
action:
- service: notify.pushover_notify
data:
message: "works when set point is put above 18"
- alias: test current_temperature increase
trigger:
platform: template
value_template: '{{ states.climate.downstairs_heating.attributes.current_temperature > 18 }}'
action:
- service: notify.pushover_notify
data:
message: "never executes.. no attribute current_temperature"
@VDRainer thanks again. that solved it… although I’m not clear on the significance of the doc snippet - is it that its not a recognised entity?
as my automations get more complex, feels like I need to move towards native python scripts (or applications?).
I guess that is what most of the power users end up with?
I’m also not clear about this, but i think the template trigger gets evaluated on every change of every entity. I’ve seen this on other topics that i can’t find now.