Adding some scripts to help with light automations

This commit is contained in:
Jeffrey Stone
2020-04-24 14:36:01 -04:00
parent 6675289fdb
commit ec51e5d788
2 changed files with 64 additions and 5 deletions

View File

@@ -51,3 +51,51 @@ livingroom_lamps_off:
- service: group.turn_off
entity_id: group.livingroom_lamps
good_night_loft:
sequence:
- condition: state
entity_id: media_player.pn60e550_pn60e550
state: "off"
- service: switch.turn_off
entity_id: switch.upstairs_fan
- service: switch.turn_off
entity_id: switch.upstairs
kitchen_lights_on:
sequence:
- condition: state
entity_id: sun.sun
state: 'below_horizon'
- service: scene.turn_on
entity_id: scene.normal_kitchen_lighting
kitchen_lights_night:
sequence:
- condition: and
conditions:
- condition: state
entity_id: sun.sun
state: 'below_horizon'
- condition: time
after: '22:30:00'
before: '05:00:00'
- service: scene.turn_on
entity_id: scene.diminished_kitchen_lighting
- delay:
minutes: 18
- service: light.turn_off
entity_id: light.kitchen_cabinets
kitchen_lights_morning:
sequence:
- condition: and
conditions:
- condition: state
entity_id: light.kitchen_cabinet_lights
state: 'off'
- condition: time
after: '05:30:00'
before: '08:30:00'
- service: scene.turn_on
entity_id: scene.normal_kitchen_lighting