šŸ’” Sensor Light - Motion Sensor - Door Sensor - Sun Elevation - LUX Value - Scenes - Time - Light Control - Device Tracker - Night Lights

@charlydelta

Now your editing the blueprint, so support is hard.

Why not just keep the blueprint how it is and for the 95% use your default value. Then use night mode for middle of the night. Then just create scenes for bright & dim. Then when the lights turn ON and you would like a different mode just click the scene in a dashboard and you lights will change.

If you what to get fancy then create a script that depending on the time of the day when triggered it turns ON the scene you would like. Then you could always have the scenes on a dashboard to change them manually once ON.

Blacky :smiley:

@michaelwacey

Yes, and if you would like them to stay OFF.

You could use the Transition - OFF or if you would like more control then you would use a scene to turn ON your lights and a script to turn OFF your lights. Then in the script you could have when ā€œSleep ONā€ trigger then turn light OFF to whatever you like.

All these type of options you would do in a script. Just think how many option I would have to do and make it work seamlessly so the use of scripts allows you to do whatever you like.

I already have another blueprint for this that add on to all my blueprints ā€¦ but I have not shared it yet.

Blacky :smiley:

Its just what I had setup previously. I would like to use the nightlight setting if I can.

But I reverted it entities for the time being for testing purposes now.

I am seeing some weird stuff. I just walked into the laundryroom for the first time today. The sensor shows motion as triggered but the automation does not show any traceā€¦

edit: now after the sensor has gone to motion status cleared, I walked back in and the lights went on, the automation was triggered and I can see a trace.

I use a sonoff SNZB03 but a Ikea motion sensor previously gave the same result albeit with a longer time before the motion status was set back to clearedā€¦

1 Like

@Blacky

Thanks for your feedback and a happy new year!

Now your editing the blueprint, so support is hard.

Sorry if I didnā€™t make this clear. I am not editing the blueprint. I added this input helper in HA and used it in my automation (that uses your blueprint) instead of a hard-coded value via templates. It works well without touching the template!

Then just create scenes for bright & dim.

As far as I understood this would be conflicting with dynamic lighting. I am very happy with dynamic lighting, I just want to fine-tune its parameters from time to time.

Best,
Chris

@Blacky Happy New Year! :slight_smile:

Iā€™ve a feature request, which got triggered by the night lights feature.

There you offer the option to use a an entity to enable the night lights. This is great since I have a template entity that indicates nightTime based on various conditions, e.g. weekend, holiday, workday, ā€¦
Using this isNightTime sensor allows me to easily let the night lights turn on/off at times matching the type of day.

For the ā€˜regularā€™ lights there is not such option, just a fixed time range and selecting days.
=> would be great to haven an entity there as well to enable/disable the regular automation for the lights

1 Like

Hi there!

Iā€™m completely new with HA and this all is so hard for me. This might be stupid question, but I havenā€™t any success with that bypass option.

Here in my office is Philips Hue light strip back on the table and I have made automations to my dimmer switch. It is an older version from dimmer switch. Four different automations, because I didnā€™t know how to do it another way (combined to one automation). ON button = turning Light ON. OFF button = turning light OFF. Holding dim up button = increase brightness and holding dim down button = decrease brightness.

Now I have tried to use this blueprint to control this light with Philips Hue motion sensor. I have managed to control this light using the sensor, using time based and ambient light based conditions, but bypass option is not working whatever I tried to do.

My goal is that when I want to force this light ON or OFF via Hue Dimmer Switch the motion sensor would stop using the light strip. My problem in other hand is that when Iā€™m sitting quite still, the motion sensor is not detected enough movement to keep this light on. When Iā€™m in this situation, I want to force this light on.

Any help with that?

@Blacky

I knew to HA and from what I found online I keep seeing references to this blueprint instead of recreating the wheel. So Iā€™m wondering if this blue print can handle conditions. Here is my goal below

I have an aquara fp2 as my sensor. I have 3 zones in my office. 1. Main Zone, Desk Zone, Network Rack zone. All I want want is to adjust color based on what zone Iā€™m in and not change color if say Iā€™m in my desk zone and someone walks into main zone.

  1. you first walk into room you will hit the main zone change color of 3 lights to cold white.

2.) I sit at my desk change color to warm white.

3,) if someone walks in and the desk zone or rack zone is occupied donā€™t do anything

Can this blueprint accomplish this?

Hi @Blacky ,

since today iĀ“m using this BP (V.7.3) without nightlights pretty well, but now i activated the feature and nothing happend - itĀ“s not working.

Am i right - the nightlight works with the same light entity i used for the normal light?

Here is my BP-Config:

id: '1704825489089'
alias: Sensor Light - Nachtlicht Len
description: ''
use_blueprint:
  path: Blackshome/sensor-light.yaml
  input:
    include_night_lights: night_lights_enabled
    night_lights:
      entity_id: light.kugellampe_len
    include_night_light_control:
      - use_brightness
      - use_colour_temperature
      - use_transition
      - if_lights_are_on_adjust_when_crossing_over
    night_light_transition_on: 2
    night_light_brightness: 32
    night_light_transition_off: 10
    night_lights_conditions:
      - entity_state_enabled
    motion_trigger:
      - schedule.nachtlicht_len
    light_switch:
      entity_id: light.kugellampe_len
    night_time_delay: 5
    include_light_control: []
    light_transition_on: 1
    light_transition_off: 5
    light_brightness: 60
    include_light_colour_control: use_colour_temperature
    light_colour_temperature: 2600
    light_rgb_colour:
      - 255
      - 255
      - 255
    night_lights_entity_state:
      - input_boolean.nachtlicht_len

Could you show me an exemple of script? Iā€™m not sure where would a script be written and how to link it to a scene. Apologies, Iā€™m a novice HA user.

Hi @Blacky ,

First of all thank you very much for offering this blueprint. Though you documented it quite well and as I am a newbie to Home Assistant I still struggle to get it to work. No matter whether I save it without any entities/options given or configured as I think it needs to be for my needs, I always get the following error message:
ā€œMessage malformed: extra keys not allowed @ data[ā€˜triggersā€™]ā€
Are there any prerequisites needed? I used the latest version of the blueprint and tried a re-import as well, it didnā€™t help.

Do you need any further information for being able to help me?
This is the first blueprint I imported.

Thanks a lot in advance and sorry if this question already has been raised. A search didnā€™t give helpful links.

Cheers,
Danny5

@Blacky

Happy new year and thank for your reply. But my question had another meaning. I wanted to know if there is a way to pass the affected entities to the script. I donā€™t want to maintain 10 scripts if I have 10 motion lights.

thank you for youā€™re response.
i have tried this, but then the nightlights donā€™t work when nobody is at home.

During the day i want my lights to turn on and off, according the outside lighting intensity. and only if somebody is at home.

during the evening i want them to be always on, and turn off at a sertain time e.a. midnight.

thank you for thinking along.

greeting frank

Hey @Blacky ,

So I tried implement a simple light automation.l with my desk zone and my aquara fp2. I can see my fp2 triggering, but If I look at the automation it says never ran so itā€™s not triggering. Since it doesnā€™t trigger there are no logs. Not sure what to do

I got it to work with restarting home asssistant

1 Like

Thank you for this very comprehensive blueprint - it might just save my marriage :wink:

@charlydelta

Yes scenes will not work with dynamic lighting. I am doing a few updates with dynamic lighting and one new feature may be useful to you. Just keep an eye out for the next release.

Blacky :smiley:

1 Like

@nicknol

Happy new year to you to!

Would the bypass do the same :thinking: it just works inverted. So when the bypass is ON your automation is disabled and when OFF your automation is enabled.

Blacky :smiley:

@Goju1

Welcome to the community.

What are you doing when you are still. Are you working on a computer? and if the computer is ON you would like the light ON? I ask this because if this is the case you can install a smart plug and when your computer is ON or above X watts then you can turn ON the bypass using a template. Or you could manually create a toggle helper and use it in the bypass. Here is a link to the FAQ on bypasses, click here.

Blacky :smiley:

@shunopoli

Looks like below you got it working.

Blacky :smiley:

@nukleuz80

One thing I noticed in normal lights your not setting a brightness so the automation will not adjust it but your setting a colour temp. In night lights your setting a brightness but not a colour temp. Below I have enabled the options so you can test it out and adjust it to your liking. This may be why you think nothing is happening.

To enable nigh light you have to turn ON your input_boolean.nachtlicht_len

id: '1704825489089'
alias: Sensor Light - Nachtlicht Len
description: ''
use_blueprint:
  path: Blackshome/sensor-light.yaml
  input:
    include_night_lights: night_lights_enabled
    night_lights:
      entity_id: light.kugellampe_len
    include_night_light_control:
      - use_brightness
      - use_colour_temperature
      - use_transition
      - if_lights_are_on_adjust_when_crossing_over
    night_light_transition_on: 2
    night_light_brightness: 32
    night_light_transition_off: 10
    night_lights_conditions:
      - entity_state_enabled
    motion_trigger:
      - schedule.nachtlicht_len
    light_switch:
      entity_id: light.kugellampe_len
    night_time_delay: 5
    include_light_control:
      - use_brightness
      - use_transition
    light_transition_on: 1
    light_transition_off: 5
    light_brightness: 60
    include_light_colour_control: use_colour_temperature
    light_colour_temperature: 4000
    light_rgb_colour:
      - 255
      - 255
      - 255
    night_lights_entity_state:
      - input_boolean.nachtlicht_len
    include_night_light_colour_control: use_colour_temperature
    night_light_colour_temperature: 2600

Blacky :smiley:

1 Like