1
0

Updates on motions

Add bedroom motion
 Update bathroom motion brightness and color temperature
 Update hallway motion
This commit is contained in:
Przemek Grondek 2021-01-11 04:49:34 +01:00
parent 627552f3ae
commit 8816d10ca1
3 changed files with 42 additions and 9 deletions

View File

@ -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

View File

@ -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

View File

@ -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