Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using information about HA User to automatically arm or disarm #1112

Open
2 tasks done
AzraelsDisk opened this issue Feb 3, 2025 · 1 comment
Open
2 tasks done

Using information about HA User to automatically arm or disarm #1112

AzraelsDisk opened this issue Feb 3, 2025 · 1 comment

Comments

@AzraelsDisk
Copy link

Checklist

  • I checked for similar existing requests (both open and closed) before posting.
  • My request is generic, other users may benefit from it too.

Proposal

Using information about HA User for interaction

Additional info

All HA Users are not at home --> ARM
At least one User is coming --> disarm

@Trexano99
Copy link

Use can achieve this easily with 2 automations.

  1. Arm home when leaving:
mode: single
triggers:
  - trigger: state
    entity_id:
      - person.userOne
      - person.userTwo
    to: not_home
conditions:
  - condition: state
    entity_id:
      - person.userOne
      - person.userTwo
    state: not_home
actions:
  - action: alarm_control_panel.alarm_arm_away
    data:
      code: "123456"
    target:
      entity_id: alarm_control_panel.my_alarm_panel
  1. Disarm home when arrive:
mode: single
triggers:
  - trigger: state
    entity_id:
      - person.userOne
      - person.userTwo
    to: home
conditions:
  - condition: not
    conditions:
      - condition: state
        entity_id: alarm_control_panel.my_alarm_panel
        state: disarmed
actions:
  - action: alarm_control_panel.alarm_disarm
    data:
      code: "123456"
    target:
      entity_id: alarm_control_panel.my_alarm_panel

Hope this help 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants