Pool automation - Help [ SOLVED ]

It doesn’t work because above doesn’t support templates. However, it does allow you to specify the entity_id of an Input Number (and other numeric entities).

- alias: v2 Desligar Bomba da Piscina ciclo completo verão
  trigger:
    platform: numeric_state
    entity_id: sensor.piscina_horas_total_formatado
    above: input_number.horas_funcionamento_piscina
  action:
  - service: switch.turn_off
    target:
      entity_id: switch.stch_piscina_moes_2gang_switch

From the documentation:

1 Like