1
0
ansible-home-assistant/roles/automations/files/alarm-notify-guest.yaml

26 lines
681 B
YAML

- id: alarm_notify_guest
alias: '[Alarm] Notify about guest'
description: ''
mode: single
trigger:
- platform: state
entity_id:
- person.andrzej_legowski
- person.matka
- person.mariusz_ablewicz
- person.mateusz_gizycki
- person.piotr_madej
to: home
condition:
- condition: not
conditions:
- condition: state
entity_id: alarm_control_panel.home_alarm
state: disarmed
action:
- service: notify.mobile_app_iphone
data:
title: "Someone is near home"
message: >
{{ state_attr(trigger.entity_id, 'friendly_name') }} has connected to guest wifi