You can check the state of the thermostat as trigger:
trigger:
- platform: state
entity_id: climate.danfoss_z_thermostat_014g0013_heating_1_2_1
I’m pretty sure though, that this will also trigger when the battery level drops.
You could store the setpoint value in a hidden slider control and then compare the thermostat’s current setpoint with the slider value whenever the trigger fires.
If the values differ, the setpoint change was what caused the trigger to fire.
You can then update the slider value and do whatever your automation was supposed to do in the first place.
17-02-11 13:18:43 ERROR (MainThread) [homeassistant.helpers.condition] Error during template condition: UndefinedError: 'None' has no attribute 'attributes'
17-02-11 13:18:43 ERROR (MainThread) [homeassistant.helpers.condition] Error during template condition: UndefinedError: 'None' has no attribute 'attributes'
Ah, cool, I wasn’t aware of the different trigger attributes. That makes things a lot easier.
I think you can ignore the errors - they appear because at the time HA starts and evaluates automations, most of the objects, like state.* and apparently trigger.*, are not completely initialized.
You could add conditions like {% if trigger.to_state %} ... and {% if trigger.from_state %} ... to the automation, but that would make it a lot more complex.