24 lines
650 B
YAML
24 lines
650 B
YAML
- 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:
|
|
- service: notify.mobile_app_iphone_pg
|
|
data:
|
|
title: "Someone is near home"
|
|
message: >
|
|
{{ state_attr(trigger.entity_id, 'friendly_name') }} has connected to guest wifi |