disbaling kitchen scene due to automation issue

This commit is contained in:
Jeffrey Stone 2021-05-24 11:56:44 -04:00
parent 4a082fa4c9
commit f76ad71bcf
2 changed files with 63 additions and 122 deletions

View File

@ -22,12 +22,12 @@ automation:
alias: Master Bedroom Lights Needed alias: Master Bedroom Lights Needed
initial_state: true initial_state: true
trigger: trigger:
- entity_id: binary_sensor.master_bedroom_motion - entity_id: binary_sensor.master_bedroom_motion_occupancy
from: 'off' from: 'off'
platform: state platform: state
to: 'on' to: 'on'
condition: condition:
- below: 13 - below: 20
condition: numeric_state condition: numeric_state
entity_id: sensor.master_bedroom_motion_illuminance_lux entity_id: sensor.master_bedroom_motion_illuminance_lux
- condition: time - condition: time
@ -68,38 +68,31 @@ automation:
# Kitchen lights needed when dark and there is motion # Kitchen lights needed when dark and there is motion
- id: e1cb3d56-0423-11eb-adc1-0242ac120002 # - id: e1cb3d56-0433-12eb-adc1-0242ac120002
alias: Kitchen Lights Needed # alias: Kitchen Lights Needed
initial_state: true # mode: restart
trigger: # initial_state: true
- entity_id: binary_sensor.kitchen_motion_occupancy # trigger:
from: 'off' # - entity_id: binary_sensor.kitchen_motion_occupancy
platform: state # from: 'off'
to: 'on' # platform: state
- entity_id: binary_sensor.back_door_motion # to: 'on'
from: 'off' # - entity_id: binary_sensor.back_door_motion
platform: state # from: 'off'
to: 'on' # platform: state
condition: # to: 'on'
- below: 70 # action:
condition: numeric_state # - choose:
entity_id: sensor.kitchen_motion_illuminance_lux # - conditions:
action: # - condition: state
- choose: # entity_id: binary_sensor.quiet_time
- conditions: # state: 'on'
- condition: time # sequence:
after: 05:30:00 # - scene: scene.diminished_kitchen_lighting
before: '22:30:00' # - delay: 00:18:00
sequence: # - scene: scene.kitchen_lighting_off
- scene: scene.normal_kitchen_lighting # default:
- conditions: # - scene: scene.normal_kitchen_lighting
- condition: time
after: '22:30:00'
before: 05:30:00
sequence:
- scene: scene.diminished_kitchen_lighting
- delay: 00:18:00
- scene: scene.kitchen_lighting_off
# Living lights needed when dark and there is motion # Living lights needed when dark and there is motion
- id: e1c9379a-0423-11eb-adc1-0242ac120002 - id: e1c9379a-0423-11eb-adc1-0242ac120002
@ -278,37 +271,6 @@ script:
entity_id: switch.croft_light entity_id: switch.croft_light
##################################################
kitchen_lights_on:
sequence:
- condition: state
entity_id: sun.sun
state: 'below_horizon'
- condition: time
after: '05:30:00'
before: '22:30:00'
- 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:30:00'
- service: scene.turn_on
entity_id: scene.diminished_kitchen_lighting
- delay:
minutes: 18
- service: light.turn_off
entity_id: light.kitchen_cabinets
################################################# #################################################
theater_lights_out: theater_lights_out:

View File

@ -34,8 +34,6 @@
- 7 - 7
- 130 - 130
- 255 - 255
switch.tplink_a2:
state: 'on'
switch.master_bedroom_bookcase: switch.master_bedroom_bookcase:
state: 'on' state: 'on'
@ -75,8 +73,6 @@
- 7 - 7
- 130 - 130
- 255 - 255
switch.tplink_a2:
state: 'on'
switch.master_bedroom_bookcase: switch.master_bedroom_bookcase:
state: 'on' state: 'on'
@ -116,8 +112,6 @@
- 255 - 255
- 213 - 213
- 133 - 133
switch.tplink_a2:
state: 'on'
switch.master_bedroom_bookcase: switch.master_bedroom_bookcase:
state: 'on' state: 'on'
@ -217,14 +211,14 @@
switch.fireplace_lights: switch.fireplace_lights:
state: 'off' state: 'off'
id: d05c18cf0ddb4002ad0b28cc0c7f98f2 id: d05c18cf0ddb4002ad0b28cc0c7f98f2
- name: diminished kitchen lighting # - name: diminished kitchen lights
entities: # entities:
light.kitchen_cabinets: # light.kitchen_cabinets:
state: 'on' # state: 'on'
brightness: 10 # brightness: 10
switch.kitchen_light_strip: # switch.kitchen_light_strip:
state: 'off' # state: 'off'
id: c0d8602152fb480d9731f8671f388b1b # id: c0d8602152fb480d9731f8671f388b1b
- name: normal kitchen lighting - name: normal kitchen lighting
entities: entities:
light.kitchen_cabinets: light.kitchen_cabinets:
@ -390,6 +384,8 @@
brightness: 102 brightness: 102
light.master_bedroom_dresser_lamp: light.master_bedroom_dresser_lamp:
state: 'off' state: 'off'
switch.master_bedroom_bookcase:
state: 'off'
id: 85953e56acc94c8b8614347de8aab96a id: 85953e56acc94c8b8614347de8aab96a
- name: santa protocol - name: santa protocol
@ -438,6 +434,8 @@
state: 'off' state: 'off'
input_boolean.skylar_awake: input_boolean.skylar_awake:
state: 'off' state: 'off'
input_boolean.skylar_dressed_reminder:
state: 'off'
switch.skylars_desk: switch.skylars_desk:
state: 'off' state: 'off'
id: f4e8d2f594c446ee9f0e41cf46dc1c72 id: f4e8d2f594c446ee9f0e41cf46dc1c72
@ -460,55 +458,29 @@
state: 'off' state: 'off'
id: b25b0c6dcec049929b2bde5d08f3ce53 id: b25b0c6dcec049929b2bde5d08f3ce53
- name: studio on
entities:
light.jeff_lamp:
state: 'on'
brightness: 5
light.jeff_dresser_lamp:
state: 'on'
brightness: 255
light.kat_lamp:
state: 'on'
brightness: 255
light.master_bedroom_tower_lamp:
state: 'on'
brightness: 255
rgb_color:
- 7
- 130
- 255
light.desk_accent:
state: 'on'
brightness: 255
rgb_color:
- 7
- 130
- 255
switch.tplink_a2:
state: 'on'
switch.master_bedroom_bookcase:
state: 'on'
- name: studio off
entities:
light.jeff_dresser_lamp:
state: 'off'
light.desk_accent:
state: 'off'
switch.tplink_a2:
state: 'off'
switch.master_bedroom_bookcase:
state: 'off'
id: 82791dafcf674b9cbbad6565b3b49b86
- name: film time - name: film time
id: film_time id: film_time
entities: entities:
switch.tplink_a2: switch.tplink_a2:
state: 'on' state: 'on'
light.hair_light:
state: 'on'
brightness: 76.5
switch.dazzned50:
state: 'on'
switch.shelly1_500291ed2c47:
state: 'off'
- name: teams call
id: teams_call
entities:
switch.tplink_a2:
state: 'off'
light.jeff_desk_lamp:
state: 'on'
brightness: 12.75
- name: film time over - name: film time over
id: film_time_over id: film_time_over
@ -519,6 +491,13 @@
state: 'off' state: 'off'
switch.master_bedroom_bookcase: switch.master_bedroom_bookcase:
state: 'off' state: 'off'
switch.dazzned50:
state: 'off'
light.hair_light:
state: 'off'
light.desk_accent:
state: 'off'
- name: lr_cool_white - name: lr_cool_white
entities: entities: