Eror "Unknown trigger errors"

Hello . I don’t understand why I give an error to the triggers if I add "- platform: template " The template itself is working.(check photo)
I add the trigger code and have error “Unknown trigger errors” .
I would be grateful for the options
Thanks`

      - id: Гаряча вода
        alias: "Гаряча вода - нагрів по реальній температурі"
        mode: restart
        triggers:
          - platform: state
            entity_id: input_boolean.hot_water
            to: "on"
          - platform: state
            entity_id: input_boolean.hot_water
            to: "off"
          - platform: template
            value_template: >-
              "{{ (states('sensor.bolernaj_hot_water') | float - states('input_number.desired_hot_water_temp') | float) >= 1 }}"

        condition: []
        
        action:
          - choose:
              - conditions:
                  - condition: state
                    entity_id: input_boolean.hot_water
                    state: "on"
                sequence:
                  - service: switch.turn_on
                    data:
                      entity_id: switch.bolernaj_power
![Снимок экрана 2025-06-15 в 10.12.21|690x200](upload://fJhJLIfkt2B7ewdns2usTnq828U.png)
![Снимок экрана 2025-06-15 в 10.14.26|690x420](upload://1J4eh6BSSh0n1FhCFiYocatIm4I.png)
![Снимок экрана 2025-06-15 в 10.17.39|690x188](upload://ceaoBNGcqHs1orR5mi7yjzBKNvi.png)

you have two triggers doing the opposite

          - platform: state
            entity_id: input_boolean.hot_water
            to: "on"
          - platform: state
            entity_id: input_boolean.hot_water
            to: "off"

if you want if is off or on just use one

entity_id: input_boolean.hot_water
trigger: state
             
2 Likes

The automation format has changed a while back. Old and new style are still supported. However, you have a weird mix of old and new style automations (most of it old, but not all).

2 Likes

Hello:

If you use the > then don’t use the " " around it.
It needs to be one way ot the other. Use Quotes or use >

That’s the actual error.
But I highly suggest learn and use the new format so that you can use the new stuff that is being written.

Thanks for information . The mistake was that. Combination of old and new standard

1 Like