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

24 lines
647 B
YAML
Raw Normal View History

2022-06-05 23:27:38 +00:00
- id: alarm-notify-guest
alias: '[Alarm] Notify about guest'
description: ''
mode: single
trigger:
- platform: state
entity_id:
- person.andrzej_legowski
- person.piotr_madej
- person.matka
- person.mariusz_ablewicz
to: home
condition:
- condition: not
conditions:
- condition: state
entity_id: alarm_control_panel.home_alarm
state: disarmed
action:
2022-10-19 20:25:52 +00:00
- service: notify.mobile_app_iphone
2022-06-05 23:27:38 +00:00
data:
title: "Someone is near home"
message: >
{{ state_attr(trigger.entity_id, 'friendly_name') }} has connected to guest wifi