mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-06-09 23:02:59 +00:00
37 lines
912 B
YAML
37 lines
912 B
YAML
input_boolean:
|
|
guest_mode:
|
|
name: Guest mode
|
|
initial: off
|
|
icon: mdi:human-greeting
|
|
|
|
automation:
|
|
- id: enable_guest_mode
|
|
alias: Guest mode · Enable
|
|
trigger:
|
|
platform: state
|
|
entity_id: input_boolean.guest_mode
|
|
from: "off"
|
|
to: "on"
|
|
action:
|
|
- service: automation.turn_off
|
|
entity_id:
|
|
- automation.leaving_home
|
|
- automation.coming_home
|
|
- service: input_boolean.turn_off
|
|
entity_id: input_boolean.speech_notifications
|
|
|
|
- id: disable_guest_mode
|
|
alias: Guest mode · Disable
|
|
trigger:
|
|
platform: state
|
|
entity_id: input_boolean.guest_mode
|
|
from: "on"
|
|
to: "off"
|
|
action:
|
|
- service: automation.turn_on
|
|
entity_id:
|
|
- automation.leaving_home
|
|
- automation.coming_home
|
|
- service: input_boolean.turn_on
|
|
entity_id: input_boolean.speech_notifications
|