From f76ad71bcfed9c27980ebcee9309aca69232fe8f Mon Sep 17 00:00:00 2001 From: Jeffrey Stone Date: Mon, 24 May 2021 11:56:44 -0400 Subject: [PATCH] disbaling kitchen scene due to automation issue --- config/packages/lighting.yaml | 92 ++++++++++------------------------ config/scenes.yaml | 93 ++++++++++++++--------------------- 2 files changed, 63 insertions(+), 122 deletions(-) diff --git a/config/packages/lighting.yaml b/config/packages/lighting.yaml index d642656..185d490 100755 --- a/config/packages/lighting.yaml +++ b/config/packages/lighting.yaml @@ -22,12 +22,12 @@ automation: alias: Master Bedroom Lights Needed initial_state: true trigger: - - entity_id: binary_sensor.master_bedroom_motion + - entity_id: binary_sensor.master_bedroom_motion_occupancy from: 'off' platform: state to: 'on' condition: - - below: 13 + - below: 20 condition: numeric_state entity_id: sensor.master_bedroom_motion_illuminance_lux - condition: time @@ -68,38 +68,31 @@ automation: # Kitchen lights needed when dark and there is motion - - id: e1cb3d56-0423-11eb-adc1-0242ac120002 - alias: Kitchen Lights Needed - initial_state: true - trigger: - - entity_id: binary_sensor.kitchen_motion_occupancy - from: 'off' - platform: state - to: 'on' - - entity_id: binary_sensor.back_door_motion - from: 'off' - platform: state - to: 'on' - condition: - - below: 70 - condition: numeric_state - entity_id: sensor.kitchen_motion_illuminance_lux - action: - - choose: - - conditions: - - condition: time - after: 05:30:00 - before: '22:30:00' - sequence: - - scene: scene.normal_kitchen_lighting - - conditions: - - 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 + # - id: e1cb3d56-0433-12eb-adc1-0242ac120002 + # alias: Kitchen Lights Needed + # mode: restart + # initial_state: true + # trigger: + # - entity_id: binary_sensor.kitchen_motion_occupancy + # from: 'off' + # platform: state + # to: 'on' + # - entity_id: binary_sensor.back_door_motion + # from: 'off' + # platform: state + # to: 'on' + # action: + # - choose: + # - conditions: + # - condition: state + # entity_id: binary_sensor.quiet_time + # state: 'on' + # sequence: + # - scene: scene.diminished_kitchen_lighting + # - delay: 00:18:00 + # - scene: scene.kitchen_lighting_off + # default: + # - scene: scene.normal_kitchen_lighting # Living lights needed when dark and there is motion - id: e1c9379a-0423-11eb-adc1-0242ac120002 @@ -278,37 +271,6 @@ script: 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: diff --git a/config/scenes.yaml b/config/scenes.yaml index 5c5e895..3058046 100755 --- a/config/scenes.yaml +++ b/config/scenes.yaml @@ -34,8 +34,6 @@ - 7 - 130 - 255 - switch.tplink_a2: - state: 'on' switch.master_bedroom_bookcase: state: 'on' @@ -75,8 +73,6 @@ - 7 - 130 - 255 - switch.tplink_a2: - state: 'on' switch.master_bedroom_bookcase: state: 'on' @@ -116,8 +112,6 @@ - 255 - 213 - 133 - switch.tplink_a2: - state: 'on' switch.master_bedroom_bookcase: state: 'on' @@ -217,14 +211,14 @@ switch.fireplace_lights: state: 'off' id: d05c18cf0ddb4002ad0b28cc0c7f98f2 -- name: diminished kitchen lighting - entities: - light.kitchen_cabinets: - state: 'on' - brightness: 10 - switch.kitchen_light_strip: - state: 'off' - id: c0d8602152fb480d9731f8671f388b1b +# - name: diminished kitchen lights +# entities: +# light.kitchen_cabinets: +# state: 'on' +# brightness: 10 +# switch.kitchen_light_strip: +# state: 'off' +# id: c0d8602152fb480d9731f8671f388b1b - name: normal kitchen lighting entities: light.kitchen_cabinets: @@ -390,6 +384,8 @@ brightness: 102 light.master_bedroom_dresser_lamp: state: 'off' + switch.master_bedroom_bookcase: + state: 'off' id: 85953e56acc94c8b8614347de8aab96a - name: santa protocol @@ -438,6 +434,8 @@ state: 'off' input_boolean.skylar_awake: state: 'off' + input_boolean.skylar_dressed_reminder: + state: 'off' switch.skylars_desk: state: 'off' id: f4e8d2f594c446ee9f0e41cf46dc1c72 @@ -460,55 +458,29 @@ state: 'off' 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 id: film_time entities: switch.tplink_a2: 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 id: film_time_over @@ -519,6 +491,13 @@ state: 'off' switch.master_bedroom_bookcase: state: 'off' + switch.dazzned50: + state: 'off' + light.hair_light: + state: 'off' + light.desk_accent: + state: 'off' + - name: lr_cool_white entities: