Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
78 lines (64 sloc) 1.46 KB
---
alias: Detect Guest Mode - On
trigger:
platform: state
entity_id:
- person.john
- person.maureen
- person.allan
- person.colin
- person.irene
- person.kayleigh
- person.kev
- person.khristen
- person.mecha
- person.scott
- person.steve
to: home
condition:
condition: or
conditions:
- condition: state
entity_id: person.john
state: home
- condition: state
entity_id: person.maureen
state: home
- condition: state
entity_id: person.allan
state: home
- condition: state
entity_id: person.colin
state: home
- condition: state
entity_id: person.irene
state: home
- condition: state
entity_id: person.kayleigh
state: home
- condition: state
entity_id: person.kev
state: home
- condition: state
entity_id: person.khristen
state: home
- condition: state
entity_id: person.mecha
state: home
- condition: state
entity_id: person.scott
state: home
- condition: state
entity_id: person.steve
state: home
action:
- service: script.notify_join
data_template:
who: "stuart"
title: 'Guest Mode - On'
notification_id: "hass-guest-on"
value1: '{{ trigger.to_state.attributes.friendly_name }} arrived.'
value2: "I've turned on Guest Mode"
- service: input_boolean.turn_on
data:
entity_id: input_boolean.guest_mode
You can’t perform that action at this time.