Hello
I’m not very knowledgeable in Yaml programming, but with the examples from this and other forums, I’ve been able to automate my home.
I have an automation that stops the pool motors when the filtration cycle is complete, and it works, but I want to go further and set the runtime through an “input number,” but I can’t get it to work in the automation.
In version 1, the automation works perfectly; in version 2, it doesn’t work, and I don’t have the ability to understand why.
Could someone point me to the error?
Version 1 - Working
- alias: Desligar Bomba da Piscina ciclo completo
trigger:
platform: numeric_state
entity_id: sensor.piscina_horas_total_formatado
above: 680
action:
- service: switch.turn_off
entity_id: switch.stch_piscina_moes_2gang_switch
Version 1 - Not Working
- alias: v2 Desligar Bomba da Piscina ciclo completo verão
trigger:
platform: numeric_state
entity_id: sensor.piscina_horas_total_formatado
above: "{{ states('input_number.horas_funcionamento_piscina') | int }}"
action:
- service: switch.turn_off
entity_id: switch.stch_piscina_moes_2gang_switch
Thank you all