Help with ...condition or

why does this not work.

In a choose option it shoud pick id:weekend start

and continue if one of the ‘or’ condition is true - but it dont :-/

should it work in a choose option, or should I make 4 different choose option ?

      - conditions:
          - condition: trigger
            id: weekend start
          - condition: or
            conditions:
              - condition: state
                entity_id: input_boolean.pre_ferie
                state: 'on'
          - condition: or
            conditions:
              - condition: state
                entity_id: binary_sensor.arbejdsdag_idag
                state: 'off'
          - condition: or
            conditions:
              - condition: state
                entity_id: input_boolean.ferie_varme_hjemme
                state: 'on'
          - condition: or
            conditions:
              - condition: state
                entity_id: calendar.ferie
                state: 'on'
        sequence:
          - service: climate.set_temperature
            target:
              entity_id: climate.termostat_i_tv_stuen
            data:
              temperature: 22
              hvac_mode: heat

You got the syntax of “or” wrong:

      - conditions:
          - condition: trigger
            id: weekend start
          - condition: or
            conditions:
              - condition: state
                entity_id: input_boolean.pre_ferie
                state: 'on'
              - condition: state
                entity_id: binary_sensor.arbejdsdag_idag
                state: 'off'
              - condition: state
                entity_id: input_boolean.ferie_varme_hjemme
                state: 'on'
              - condition: state
                entity_id: calendar.ferie
                state: 'on'

If you used the GUI, you likely clicked the wtong button.
See Simple automation not triggering with time condition - #8 by koying for a similar confiusion

1 Like

ahh ok, it seems to work ! thanks