Ventilation schedule don'twork

Hi,

I’m new, it’s my first post.
I want to change from Domoticz to HA, for now I have I think 50% of automations.

Please check my code, i have automation for ventilation vs humidity, but at day I want to start ventilation for example each 15 for 5 min to change air in my home. It’s prepared for heating time. I want to do other automations for other conditions later, but first don’t work:

- id: '1604092183032'
  alias: Harmonogram wentylacji comfort
  description: uruchamianie wentylacji w trybie comfort i office
  trigger:
  - platform: time_pattern
    minutes: '/15'
  condition:
  - condition: state
    entity_id: switch.wentylacja
    state: 'Off'
  - condition: and
    conditions:
    - condition: state
      entity_id: input_select.strategia_ogrzewania
      state: Comfort
    - condition: or
      conditions:
      - condition: state
        entity_id: input_select.strategia_ogrzewania
        state: Office
  action:
  - service: switch.turn_on
    data: {}
    entity_id: switch.wentylacja
  - delay: 00:05:00
  - service: switch.turn_off
    data: {}
    entity_id: switch.wentylacja
  mode: single

Thanks in advance.
Michał

Hi,
No suddenly help :frowning:
but my solution is:

instead:
1 and (2 or 3)
i have:
1 and 2 + 1 and 3.

I split one utomation for two.

Topic to close and forget.

Doesn’t work is not an error message :slight_smile:

States are case sensitive, a switch is always on or off, not Off like in your example. Also the options for your input select, are they really starting with an uppercase letter or not? You can always check under Developer Tools -> States.

Thanks, but this is not the problem.

It’s logic problem I have condition1 and (condition2 or condition3).

Maybe sould be (condition1 and condition2) or (condition1 and condition3)

Now I have separate automation for c1&c2 and second similiar for c1&c3 and it works.

HI,

problem solved

As you can see i have

condition1
 and
  condition2
  or
  condition3.

It should be :

and
   -condition1
   -or
      -condition2
      -condition3

It’s different language that I’m used to.