HI Blacky,
Sorry for the delay in replying.
So lets start again and break it all down. I want to apply this automation to several entities, but I am assuming I can just copy and paste the final solution to other lights in the house.
Below are a list of the Entities
Lux Sensor
sensor.motion_eye_illuminance
Lights
Stair Light
light.stair_rail_led_strip_lighting
Hall Light
light.hall_way_mirror_lighting
Motion Sensor
binary_sensor.motion_eye_motion_detection
âClearâ or âDetectedâ
Front Door Lock (Yale)
Lock Status
lock.front_door
âLockedâ or âUnlockedâ
Door Position
binary_sensor.front_door_door
âOpenâ or âClosedâ
Doorbell CCTV - Person Detection
binary_sensor.reolink_video_doorbell_wifi_person
âClearâ or âDetectedâ
Driveway CCTV - Person Detection
binary_sensor.driver_duo_camera_person
âClearâ or âDetectedâ
Next, I have tried to list out all the actions in to segments, sorry if its a bit complicatedly written,
ACTION 1
So first action is as there is no need for the lights to be on during the 8am and 3pm Monday to Friday, so we may as well turn them off to conserve energy and increase lifetime of the lights
Monday to Friday - 8am to 3pm
Set Stair Lights (light.stair_rail_led_strip_lighting) and Hall Lights (light.hall_way_mirror_lighting) to OFF
ACTION 2
The next 2 actions, are merely for lighting effect during day time hours when the family are together
Monday to Friday - 3pm to Lux Value (see further on)
Set Stair Lights (light.stair_rail_led_strip_lighting) and Hall Lights (light.hall_way_mirror_lighting) to 25% Brightness
Saturday to Sunday - 8am to Lux Value (see further on)
Set Stair Lights (light.stair_rail_led_strip_lighting) and Hall Lights (light.hall_way_mirror_lighting) to 25% Brightness
ACTION 3
The following action is to provide functional ambient lighting as darkness sets in. This starts are at a higher brightness of 85% when the lux is around 190, then dynamically dimming as the Lux value falls to full dark. Ensure the light is not overwhelming when its dark.
The one thing I am not sure what to do it the transition from the 25% effect lighting above, to the functional lighting below.
All Week
If Lux Value (sensor.motion_eye_illuminance) is below 190 lux, then dynamically change the brightness of the Stair Lights (light.stair_rail_led_strip_lighting) and Hall Lights (light.hall_way_mirror_lighting) from 85% @ 190 Lux, to 20% @ 0 Lux
ACTION 4
Next action is for Bed Time lights, by dimming the lights down to a low 5% during set hour
Dim lights to 5% after 11pm until 8am (Bedtime),
OVER-RIDE 1
Rights, now are a couple of over ride actions, that only last X amount of.
Firstly, if we are out, and then arrive home, it would be nice to have an automation that turns these lights on when we enter the house. So the below use the Doorbell Camera, which has person detection function, and the Door sensor, which senses if the door has been opened.
Arrive Home
IF
Lux Value (sensor.motion_eye_illuminance) is below 190 lux
AND
Doorbell CCTV - Person Detection (binary_sensor.reolink_video_doorbell_wifi_person) is âDetectedâ
AND
Door Position (binary_sensor.front_door_door) changed to Open
THEN
Change, Stair Lights (light.stair_rail_led_strip_lighting) and Hall Lights (light.hall_way_mirror_lighting) to 85%
for 5 minutes, then revert back to above automations
NOTE: What would be a really nice function here is if the Doorbell sensor has to happen first, followed by the door position senor. This would mean it has detected someone âentering the houseâ. Where is I simply walked out the house, both sensors would activate and turn on the lights. Pointless turning them on if I am exiting the house!
OVER-RIDE 2
Finally, The is the security side of the automation.
This is using the CCTVs Person Detection AI function to detect if someone enters the detection zone (which is around the cars). So if its between a set time, and the CCTV detect a person, then turn the lights on full (I will eventually do the whole house with this!!).
CCTV Monitored Lighting
IF
Between 11pm and 7am
AND
Driveway CCTV - Person Detection (binary_sensor.driver_duo_camera_person) changes to âDetectedâ
THEN
Change, Stair Lights (light.stair_rail_led_strip_lighting) and Hall Lights (light.hall_way_mirror_lighting) to 100%
for 10 mins, then revert back to above automations.
I hope this all makes sense, and I hope it maybe even gives you some ideas to develop your brilliant blueprint even more
Cheers
Russ