From 8816d10ca1083ce0ceaa85ed00ef7faeb4da5196 Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Mon, 11 Jan 2021 04:49:34 +0100 Subject: [PATCH] Updates on motions Add bedroom motion Update bathroom motion brightness and color temperature Update hallway motion --- automations/files/bathroom-motion.yaml | 12 +++++----- automations/files/bedroom-motion.yaml | 33 ++++++++++++++++++++++++++ automations/files/hallway-motion.yaml | 6 ++--- 3 files changed, 42 insertions(+), 9 deletions(-) create mode 100644 automations/files/bedroom-motion.yaml diff --git a/automations/files/bathroom-motion.yaml b/automations/files/bathroom-motion.yaml index 22d7207..3c0ab7b 100644 --- a/automations/files/bathroom-motion.yaml +++ b/automations/files/bathroom-motion.yaml @@ -14,8 +14,8 @@ - service: light.turn_on entity_id: light.bathroom_lights data: - brightness: 100 - kelvin: 2000 + brightness_pct: 100 + kelvin: 3200 - id: bathroom-motion-party alias: '[Bathroom] Motion Party' mode: restart @@ -34,8 +34,8 @@ - light.bathroom_lights - light.bathroom_mirror_lights data: - brightness: 100 - kelvin: 2000 + brightness_pct: 100 + kelvin: 3200 - id: bathroom-motion-night alias: '[Bathroom] Motion Night' mode: restart @@ -52,8 +52,8 @@ - service: light.turn_on entity_id: light.bathroom_lights data: - brightness: 5 - kelvin: 3200 + brightness_pct: 5 + kelvin: 5000 - id: bathroom-motion-off alias: '[Bathroom] Motion Off' mode: restart diff --git a/automations/files/bedroom-motion.yaml b/automations/files/bedroom-motion.yaml new file mode 100644 index 0000000..00bf494 --- /dev/null +++ b/automations/files/bedroom-motion.yaml @@ -0,0 +1,33 @@ +- id: bedroom-motion-dark + alias: '[Bedroom] Motion day dark' + mode: single + trigger: + - platform: state + entity_id: binary_sensor.bedroom_motion_occupancy + from: 'off' + to: 'on' + condition: + - condition: numeric_state + entity_id: sensor.bedroom_motion_illuminance + below: '100' + - condition: state + entity_id: input_select.home_mode + state: Day + action: + - service: light.turn_on + entity_id: light.bedroom_lights + data: + brightness_pct: 60 + kelvin: 5000 +- id: bedroom-motion-off + alias: '[Bedroom] Motion Off' + mode: restart + trigger: + - platform: state + entity_id: binary_sensor.bedroom_motion_occupancy + for: '0:02:00' + from: 'on' + to: 'off' + action: + - service: light.turn_off + entity_id: light.bedroom_lights diff --git a/automations/files/hallway-motion.yaml b/automations/files/hallway-motion.yaml index 8f74ea2..2b73fcd 100644 --- a/automations/files/hallway-motion.yaml +++ b/automations/files/hallway-motion.yaml @@ -14,8 +14,8 @@ - service: light.turn_on entity_id: light.hallway_lightstrip data: - brightness: 100 - kelvin: 2000 + brightness_pct: 100 + kelvin: 3200 - id: hallway-motion-night alias: '[Hallway] Motion Night' mode: restart @@ -32,7 +32,7 @@ - service: light.turn_on entity_id: light.hallway_lightstrip data: - brightness: 5 + brightness_pct: 5 rgb_color: - 255 - 0