Hello all,
I can’t create a trigger that works when a temperature changes. I have a sensor template
valvola_current_temp:
friendly_name: Valvola Current Temp
unit_of_measurement: '°C'
value_template: "{{ state_attr('climate.valvola', 'current_temperature') }}"
that I am going to test inside an automation trigger for the variation case, but apparently I am doing something wrong. I tried both to do it this way
alias: Test 1 Trigger temperature
description: ''
mode: single
trigger:
- platform: numeric_state
entity_id: sensor.valvola_current_temp
below: '20'
condition: []
...
and that way
alias: Test 2 Trigger temperature
description: ''
mode: single
trigger:
platform: device
domain: climate
entity_id: climate.valvola
type: current_temperature_changed
below: 20
condition: []
...
but neither of them work. Where am I doing wrong?
Thanks in advance.