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
|
state: not_home
|
||||||
|
|
||||||
condition:
|
condition:
|
||||||
condition: state
|
- condition: state
|
||||||
entity_id: group.family
|
entity_id: group.family
|
||||||
state: not_home
|
state: not_home
|
||||||
|
- condition:
|
||||||
|
platform: state
|
||||||
|
entity_id: input_boolean.guest_mode
|
||||||
|
state: 'off'
|
||||||
|
|
||||||
action:
|
action:
|
||||||
- service: light.turn_off
|
- service: light.turn_off
|
||||||
|
@@ -21,6 +21,10 @@
|
|||||||
- condition: state
|
- condition: state
|
||||||
entity_id: sun.sun
|
entity_id: sun.sun
|
||||||
state: 'below_horizon'
|
state: 'below_horizon'
|
||||||
|
- condition:
|
||||||
|
platform: state
|
||||||
|
entity_id: input_boolean.guest_mode
|
||||||
|
state: 'off'
|
||||||
|
|
||||||
action:
|
action:
|
||||||
service: scene.turn_on
|
service: scene.turn_on
|
||||||
|
@@ -10,7 +10,11 @@
|
|||||||
- condition: state
|
- condition: state
|
||||||
entity_id: sun.sun
|
entity_id: sun.sun
|
||||||
state: 'below_horizon'
|
state: 'below_horizon'
|
||||||
|
- condition:
|
||||||
|
platform: state
|
||||||
|
entity_id: input_boolean.guest_mode
|
||||||
|
state: 'off'
|
||||||
|
|
||||||
action:
|
action:
|
||||||
service: light.turn_off
|
service: light.turn_off
|
||||||
entity_id:
|
entity_id:
|
||||||
|
@@ -13,6 +13,7 @@ http:
|
|||||||
frontend:
|
frontend:
|
||||||
group: !include_dir_merge_named group
|
group: !include_dir_merge_named group
|
||||||
device_tracker: !include_dir_merge_list device_tracker
|
device_tracker: !include_dir_merge_list device_tracker
|
||||||
|
input_boolean: !include_dir_merge_named input_boolean
|
||||||
discovery:
|
discovery:
|
||||||
updater:
|
updater:
|
||||||
sun:
|
sun:
|
||||||
|
@@ -6,4 +6,8 @@ sensor.since_last_boot:
|
|||||||
hidden: true
|
hidden: true
|
||||||
|
|
||||||
sensor.badlogin:
|
sensor.badlogin:
|
||||||
hidden: true
|
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