AC on/off when at least a family member at home

Hello,

I’m trying to create an automation to turno on/off the AC when at least a family member (2 people in total) is at home.

I tried with this setup but it seems to work only when we both are at home.

alias: Raffreddamento Salotto (Acceso)
description: ''
trigger:
  - platform: numeric_state
    entity_id: sensor.salotto_temperature
    above: '24'
condition:
  - condition: zone
    entity_id: person.alex
    zone: zone.home
  - condition: or
    conditions:
      - condition: zone
        entity_id: person.manu
        zone: zone.home
action:
  - scene: scene.raffreddamento_salotto
  - service: notify.telegram
    data:
      message: Raffreddamento salotto acceso.
mode: single

Any suggestion? Thanks!

Your or condition needs to go first. Alternatively, set up a group of people.

1 Like

And that made the trick. Thanks pal!