I created 2 automations, one to turn pump ON and another to turn pump OFF, comparing temperature differential between 2 sensors and with input_number threshold.
I would prefer one automation only, so I can disable it once, and not having to disable 2 automations.
Would it be possible to have just one automation?
Current automation:
- id: '1675970881065'
alias: Motor Piscina acima diferencial x - ON
description: ''
trigger:
- platform: numeric_state
entity_id: sensor.temp_diff_sensores_piscina
above: input_number.pump_piscina_offset_on
condition: []
action:
- service: switch.turn_on
data: {}
target:
entity_id: switch.relay_motor_piscina
mode: single
- id: '1676025521420'
alias: Motor Piscina abaixo diferencial x - OFF
description: ''
trigger:
- platform: numeric_state
entity_id: sensor.temp_diff_sensores_piscina
below: input_number.pump_piscina_offset_off
alias: When Temp Diff sensores Piscina is below input_number.pump_piscina_offset_off
condition: []
action:
- service: switch.turn_off
data: {}
target:
entity_id: switch.relay_motor_piscina
mode: single
you can’t do “pending” but you can easily do on & off with your existing template (I haven’t verified the template is logically what you want):