mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-08-16 10:34:40 +00:00
Needed some sunlight conditions for the good night routine.
This commit is contained in:
@@ -8,23 +8,7 @@
|
||||
event_type: brooklyn_dash
|
||||
- platform: event
|
||||
event_type: simplehuman_dash
|
||||
|
||||
|
||||
action:
|
||||
- service: light.toggle
|
||||
entity_id: light.office_lamp
|
||||
|
||||
|
||||
# - alias: 'Toggle Office Light off if on'
|
||||
# trigger:
|
||||
# - platform: event
|
||||
# event_type: brooklyn_dash
|
||||
|
||||
# condition:
|
||||
# - condition: state
|
||||
# entity_id: light.office_lamp
|
||||
# state: 'on'
|
||||
|
||||
# action:
|
||||
# - service: light.turn_off
|
||||
# entity_id: light.office_lamp
|
||||
|
@@ -7,12 +7,15 @@
|
||||
- platform: event
|
||||
event_type: good_night
|
||||
- platform: state
|
||||
entity_id:
|
||||
entity_id:
|
||||
- binary_sensor.sleepnumber_carlo_carlo_is_in_bed
|
||||
- binary_sensor.sleepnumber_carlo_stacey_is_in_bed
|
||||
state: 'on'
|
||||
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: sun.sun
|
||||
state: 'below_horizon'
|
||||
- condition: state
|
||||
entity_id: input_boolean.guest_mode
|
||||
state: 'off'
|
||||
@@ -22,7 +25,7 @@
|
||||
- condition: state
|
||||
entity_id: binary_sensor.sleepnumber_carlo_stacey_is_in_bed
|
||||
state: 'on'
|
||||
|
||||
|
||||
action:
|
||||
- service: script.Voice_notify
|
||||
data_template:
|
||||
@@ -38,6 +41,3 @@
|
||||
"Stuff your worries in your pillow, wrap your troubles in your blanket and spread your anxieties on your sheets. When you wake up tomorrow, you may have dirty linen, but more importantly, you’ll have a fresh mind and a happy heart. Good night."
|
||||
] | random }}
|
||||
- service: script.interior_off
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user