Add a Guest mode to the House! Boom!

This commit is contained in:
CCOSTAN
2016-10-18 00:52:04 +00:00
parent 62aa08ba75
commit 6293c7a50b
6 changed files with 29 additions and 5 deletions

View File

@@ -15,9 +15,13 @@
state: not_home
condition:
condition: state
- 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

View File

@@ -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

View File

@@ -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

View File

@@ -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:

View File

@@ -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
View File

@@ -0,0 +1,7 @@
###################################
## Guest Mode Override
###################################
guest_mode:
icon: mdi:account-alert
initial: off