mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-02-20 16:21:58 +00:00
Help, It's Dark in here.
This commit is contained in:
parent
7aa5a534eb
commit
789e389784
@ -1,24 +0,0 @@
|
||||
# There is also an IFTTT recipe that shuts down all lights when Nest goes into Away mode. - event_type= Good_Night
|
||||
|
||||
- alias: 'GoodNight - Away Mode'
|
||||
trigger:
|
||||
- platform: event
|
||||
event_type: good_night
|
||||
- platform: state
|
||||
entity_id: binary_sensor.upstairs_away_mode
|
||||
to: 'on'
|
||||
- platform: state
|
||||
entity_id: binary_sensor.downstairs_away_mode
|
||||
to: 'on'
|
||||
- platform: state
|
||||
entity_id: group.family
|
||||
state: not_home
|
||||
|
||||
condition:
|
||||
condition: state
|
||||
entity_id: group.family
|
||||
state: not_home
|
||||
|
||||
action:
|
||||
service: light.turn_off
|
||||
entity_id: group.all_lights
|
27
automation/late_night_helper.yaml
Executable file
27
automation/late_night_helper.yaml
Executable file
@ -0,0 +1,27 @@
|
||||
|
||||
- alias: 'Late Night Helper'
|
||||
trigger:
|
||||
entity_id: binary_sensor.upstairs_away_mode
|
||||
to: 'off'
|
||||
- platform: state
|
||||
entity_id: binary_sensor.downstairs_away_mode
|
||||
to: 'off'
|
||||
- platform: state
|
||||
entity_id: group.family
|
||||
state: home
|
||||
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: sun.sun
|
||||
state: 'below_horizon'
|
||||
- condition: time
|
||||
before: '23:45'
|
||||
|
||||
action:
|
||||
service: light.turn_on
|
||||
entity_id:
|
||||
- group.living_room_accents
|
||||
- light.living_room_slider
|
||||
data:
|
||||
brightness: 150
|
||||
|
Loading…
x
Reference in New Issue
Block a user