mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-08-17 19:06:53 +00:00
Add a Guest mode to the House! Boom!
This commit is contained in:
@@ -15,9 +15,13 @@
|
||||
state: not_home
|
||||
|
||||
condition:
|
||||
condition: state
|
||||
entity_id: group.family
|
||||
state: not_home
|
||||
- condition: state
|
||||
entity_id: group.family
|
||||
state: not_home
|
||||
- condition:
|
||||
platform: state
|
||||
entity_id: input_boolean.guest_mode
|
||||
state: 'off'
|
||||
|
||||
action:
|
||||
- service: light.turn_off
|
||||
|
@@ -21,6 +21,10 @@
|
||||
- condition: state
|
||||
entity_id: sun.sun
|
||||
state: 'below_horizon'
|
||||
- condition:
|
||||
platform: state
|
||||
entity_id: input_boolean.guest_mode
|
||||
state: 'off'
|
||||
|
||||
action:
|
||||
service: scene.turn_on
|
||||
|
@@ -10,6 +10,10 @@
|
||||
- condition: state
|
||||
entity_id: sun.sun
|
||||
state: 'below_horizon'
|
||||
- condition:
|
||||
platform: state
|
||||
entity_id: input_boolean.guest_mode
|
||||
state: 'off'
|
||||
|
||||
action:
|
||||
service: light.turn_off
|
||||
|
@@ -13,6 +13,7 @@ http:
|
||||
frontend:
|
||||
group: !include_dir_merge_named group
|
||||
device_tracker: !include_dir_merge_list device_tracker
|
||||
input_boolean: !include_dir_merge_named input_boolean
|
||||
discovery:
|
||||
updater:
|
||||
sun:
|
||||
|
@@ -7,3 +7,7 @@ sensor.since_last_boot:
|
||||
|
||||
sensor.badlogin:
|
||||
hidden: true
|
||||
|
||||
input_boolean.guest_mode:
|
||||
friendly_name: 'Guest Mode'
|
||||
icon: mdi:account-alert
|
7
input_boolean/guest.yaml
Executable file
7
input_boolean/guest.yaml
Executable file
@@ -0,0 +1,7 @@
|
||||
###################################
|
||||
## Guest Mode Override
|
||||
###################################
|
||||
guest_mode:
|
||||
icon: mdi:account-alert
|
||||
initial: off
|
||||
|
Reference in New Issue
Block a user