Automation trigger strange behaviour

  condition:
    - condition: time
      after: '08:30'
      before: '10:00'
    - condition: state
      entity_id: counter.meteo_ed_agenda
      state: '0'
    - condition: state
      entity_id: input_boolean.mauhome
      to: 'on'

Is this correct?

nope take a look at the state condition and change it accordingly:

You mean about ‘or’ and ‘and’ situation or about the state?
I changed in this way using device_tracker instead:

  condition:
    - condition: time
      after: '08:30'
      before: '10:00'
    - condition: state
      entity_id: counter.meteo_ed_agenda
      state: '0'
    - condition: state
      entity_id: device_tracker.s8_s8
      state: 'home'

that should work.

Ok, i’ll test it… Thanks a lot for your patience…