mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-06-21 10:57:43 +00:00
32 lines
987 B
YAML
32 lines
987 B
YAML
input_boolean:
|
|
guest_mode:
|
|
name: Guest mode
|
|
icon: mdi:human-greeting
|
|
guest_bedroom:
|
|
name: Guest Bedroom
|
|
icon: mdi:cogs
|
|
|
|
automation:
|
|
- alias: Guest mode · Change
|
|
trigger:
|
|
platform: state
|
|
entity_id: input_boolean.guest_mode
|
|
action:
|
|
choose:
|
|
- conditions: "{{ trigger.to_state == 'on' }}"
|
|
sequence:
|
|
- service: automation.turn_off
|
|
entity_id:
|
|
- automation.presence_leaving_home
|
|
- automation.presence_coming_home
|
|
- service: input_boolean.turn_off
|
|
entity_id: input_boolean.speech_notifications
|
|
- conditions: "{{ trigger.to_state == 'off' }}"
|
|
sequence:
|
|
- service: automation.turn_on
|
|
entity_id:
|
|
- automation.presence_leaving_home
|
|
- automation.presence_coming_home
|
|
- service: input_boolean.turn_on
|
|
entity_id: input_boolean.speech_notifications
|