💡 Sensor Light - Motion Sensor - Door Sensor - Sun Elevation - LUX Value - Scenes - Time - Light Control - Device Tracker - Night Lights

That worked nicely, thanks
As side note, it will be good to put a note for the min values between ambient and dynamic if both are in use. If ambient is lower then it will prevail.

1 Like

Hi @Blacky, thank you for your reply. Great suggestion, I will set this up!

Chris

1 Like

Hi Blacky, thanks for this great blueprint. I’m using it in some of my lights around the house and it’s working great!
Did you ever think of a similar blueprint but to control air conditioning? Do you happen to have one already done? Or maybe it’s a good idea :slight_smile:
I have 3 AC units I’d like to control based on occupancy/temperature and a blueprint like this would make it much easier.
Thanks!

Any solution available for the following:
When lights turn off at daylight, they are white. My night lights are using red light (they don’t support color temperature).

So when they turn on for the first time in the night via the scene they are white and change to red immediately. That flashing is kinda disturbing.

@PeL4

Thanks for your kind words.

Yes I have about 7 other blueprints I have not shared yet.

Blacky :smiley:

@chris400

Yea it can be a bit annoying I have the same for my bathroom lights going from night mode to daytime. It is typically in the light. I will put it on my list to look at.

Blacky :smiley:

2 Likes

My suggestion would be a “pre-off” scene which gets applied before the off scene. I wouldn’t mind the lights coming on with a low brightness and then turning fully on throughout the day. That would be less annoying than the other way round.

Hi @Blacky what an amazing blueprint! Thank you so much for your assistance with the community.

I would like to do a slightly simplier model of your night light example at the start of this thread - basically have my night lights on very dim throughout the night (best would be using the sun based condition), but if someone walks by they go up to a brighter value, then back down again after the motion time goes by.

I realize I can use the scenes/scripts but it seems very complicated to set up and not scabable as I have a lot of these lights throughout the house.

I think a feature request to set an “off” level that is not strictly off (e.g. a brightness, color, etc. for when the night is “off”) when you are in night light mode would be an incredible feature. So the light goes to it’s normal level when triggered, but back to the “off” level when untriggered. And when you are not in night light mode you’d use normal day settings (perhaps having an off level there could be useful too).

I think this would be a simple but expansive addition!

Thanks again for all your wonderful help.

Also, I’m using ThirdReality’s WiFi night light/motion sensors - and the transition time does not seem to do anything at all. Even seeing it 4-5 seconds, the lights just switch on and off. I’m not sure if anyone else is using these lights? They are really great for the blueprint otherwise.

1 Like

Hello. This is my first post and I’m very happy to be here.

I am a total newbie and have not yet even installed Homeassistant. I have set up some shelly relays on my desktop as a test with switches and regular dumb lightbulbs to begin my exploration.

I usually research stuff by myself, but I thought what the heck, why not ask people?

This blueprint looks like it might do what I am thinking of doing. Can anyone tell me if I’m proceeding in the right direction?

In short, I want my hallway light to come on at night when I get up to use the bathroom.
I would like to set up a behaviour such as below:

These are my priors:
I am in the UK
I have some hallway lights with two way ON/OFF flip switches, wired in the conventional UK style.
I am able to access easily the neutral wires at the ceiling rose
I am not going to change the switches. This is non negotiable. I am keeping the dumb switches. The switches stay.

This is the behaviour I want to introduce to the lighting:
I want to introduce a dimming module - shelly dimmer 2 at the moment.

I want to introduce motion control - I can do hard wired sensors, or any of the Zigby/wifi/bluetooth based ones depending on what ecosystem I fall in love with.

I will set dimming to a schedule at:

100% between 04hr01 and 21hr59 (Day)

20% between 22hr00 and 04hr00 (Night)

Motion control will turn lights on on motion, and turn off 30 seconds after the last motion detection.

Switches will work as ON/OFF.

ON will turn lights on, according to the dimming rule, for 10 minutes, after which the motion sensor rule will be followed.

OFF position will turn off lights and cause motion detection to be disregarded for 2minutes, after which the motion sensor rule will be followed.

I want to be able to override the dimming during the night cycle to 100%.

Can this be done by:

If the switch is in the on position and the lights have been triggered by motion - Flip OFF-ON to trigger 100% for 2 minutes,

If the switch is in the off position and the lights have been triggered by motion - Flip ON to trigger 100% for 2 minutes.

after which the dimming rule and motion sensor rule will take over the dimming and on state.

If I lose my network, or homeassistant goes down, switches should behave as normal on/off switches, Maybe to the dimming schedule, or ideally to 100% dimming.

Should I start with this blueprint? Or can I set this sort of thing up within the devices?
Am I going about this the wrong way entirely?

@tman98

Without saying to much
 well
 I have this planed and I think it will be called night glow. This is high on the list to do once I get some time to develop it (really busy at the moment) Thanks for your suggestion.

Regarding transition
 some lights don’t support it but try typing 60 sec in and see how you go.

Blacky :smiley:

@MonkeyRob

I use Shelly dimmers and have a hallway that is 100% during the day and 5% at night with 3 motion sensors down the hallway. I use time as you would like to change from day to night. Works perfectly and you will never have to turn ON / OFF a light ever again.

And now the question is
 are you going to install a free version of HA and a free version of this blueprint?

Let the fun begin and welcome to the community.

Blacky :smiley:

1 Like

Are we able to temporarily toggle/modify certain sections of the automation?

For example: In my setup I created several modes using input_booleans, and I want to the Light control timeout to change from the usual 5mins to be extended to 10mins when ‘Guest’ mode is selected.

I’d imagine I can set this up using the helper somehow?

Thanks

Just updated HA, and now my helper " bee in the bee hive" doesn’t work as written anymore, it needs a more descriptive “state” now?? “String does not match the pattern of “legacy_syntax””
trigger state
condition state
numeric trigger state
condition trigger state

Edited-

Figured it out


1 Like

Amazing! Looking forward to it!

1 Like

hello . thank you for this blueprint

y i setup my scenario . For now its simple. I have a light in my dressin where is located also a motion and light sensor. I would like to switch the light when i enter to the the room and I want to control the intensity of the light with the light lux in the room (more room light less lux in the light).
I configured these settings ; trigger , light , dynamic lights.

nothing happens when i enter the room

Can you help me please?

alias: Eclairage dressing
description: Variation luminosité
use_blueprint:
path: Blackshome/sensor-light.yaml
input:
motion_trigger:
- binary_sensor.detecteur_dressing_occupancy
dynamic_lighting_lux_sensor: sensor.detecteur_dressing_illuminance_lux
light_switch:
device_id: e48969ee5a4c7f5953bbc7445aeead0b
include_light_control:
- use_brightness
- use_transition
include_dynamic_lighting: enable_lux_controled_brightness
dynamic_lighting_min_brightness: 10
ambient_light_options: ambient_light_option_disabled
include_time: time_disabled
include_night_light_control:
light_transition_off: 2
light_transition_on: 2

@hazio

Even though we call the second set of lights Night Lights, you can also use them to set a different Time Delay. To do this, incorporate the state condition in the Night Lights and add the ‘Guest’ mode. When ‘Guest’ mode is ON, the system will use the night light settings, allowing you to adjust the Time Delay accordingly.

Blacky :smiley:

@run51

Welcome to the community.

You are using a device and only entities are supported. You will need to expand your device done to entities. Click here on the how to.

Blacky :smiley:

Hey Blacky, love you work with this one mate.

Just a quick one, cant seem to select a ‘lux entity’. See screenshots. Using an ldr to measure voltage and coverting to
Lux. Is it my unit of measure or maybe do i need a unique id?

Thanks mate.


Hi @Blacky,
first I like to thank you for the outstanding blueprint. It really solves almost all conditions I have in my house.
However there is one condition I can’t solve so far:

  • I have 1 light and 1 LED in my bathroom.
  • A motion sensor to trigger the lights.
  • Daymode = both lights are turned on with a turn off delay of 20 min
  • Night mode = only LED is turned on
  • Night mode is triggered between 23:00 - 6:30.

Now the problem:

  • I go into the bathroom at 22:55 (to take a shower). => Both Lights are turned on.
  • At 23:00 the lights are turned off hard (before the 20 min delay). Poor feedback from the family on that condition!

=>I need the lights to stay on until the last delay ends (20 min) when the motion sensor triggered the light on. Once after this “last” delay I would expect the night mode LED to be triggerd on motion detection.

Can I solve this with your automation?