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

@Blacky No, I donā€™t have those enabled.

Hello,

thanks for this BP, it is extremely practical and complete.
I have searched but not yet found how to have a random delay in a range for SUN.
example: I would like the lights to turn on randomly at sunset in a 30-minute range. This way, we can simulate our presence without the lights always turning on or off at the same time. Is it in the BP? If not, how can I do it?
Thanks

Can you please give me a hand?

I am trying to implement the following situation with your blueprints Smart Lights and Sensor Light:

  • From a certain level of darkness (sun elevation), garden lighting should be switched on to 10% brightness. The lighting should be switched off again at a certain time. That alone is super easy with Smart Lights. Thank you very much.

  • But: When someone walks through the garden, the lighting should be dimmed up from 10% to 100%. After a few minutes back to 10%.

  • Here I have the problem that Sensor Light switches off the lighting (no matter where).

Does this work with your blueprints, which is what I intend to do?

Thank you for your support.

Hi! Love the automation, however I just cannot get the lux controlled brightness to work properly. My lights are always way too dim and they even turn on during the day when Iā€™m certain the lux levels are above my configured threshold.

For example, this is my current config:

alias: "Lights "
description: ""
use_blueprint:
  path: Blackshome/sensor-light.yaml
  input:
    motion_trigger:
      - binary_sensor.aanwezigheid_woonkamer
    light_switch:
      entity_id:
        - light.led_raam_achter_l
        - light.hue_white_lamp_1
        - light.led_raam_achter_r
        - light.led_raam_voor_l
        - light.led_raam_voor_r
        - (etc)
    time_delay: 2
    include_light_control:
      - use_transition
    light_transition_on: 5
    light_transition_off: 30
    include_dynamic_lighting: enable_sun_elevation_colour_lux_brightness
    dynamic_lighting_lux_sensor: sensor.hue_motion_sensor_2_licht
    dynamic_lighting_min_lux: 40
    dynamic_lighting_min_colour_temp: 2000
    dynamic_lighting_max_lux: 100
    motion_bypass_lights_on: []
    night_lights_conditions: []
    dynamic_lighting_dead_zone: 5
    dynamic_lighting_boolean: input_boolean.woonkamer_dynamic_lightning_toggle_helper
    dynamic_lighting_heartbeat: 0.25
    dynamic_lighting_max_brightness: 100
    dynamic_lighting_step_value: 1

The currently reported lux level by the configured sensor is 0. According to my Apple Home app, the lights are turned on with a brightness of just 8%. If I understand it correctly, they should be set to 100%, as the current light level is below the minimum of 40 lux? Is there anything Iā€™ve misunderstood in the configuration?

The Sensor Light works with a motion sensor and will be turned ON and OFF based on it with a time delay.

The Smart Light works with 4 different triggers no time delay it will just turn ON and OFF.

Use case

Sensor Light. Walk into an room or area and your light come on with motion and then will be turned OFF when no motion is detected. Has time delays so your light donā€™t turn OFF when you are still in the room. It is very different to the Smart Light BP.

Smart Light: Turns light ON ad a set trigger and OFF on a set trigger. I have lamps come on every night at sunset and OFF at a set time regardless if someone is there or not.

Hope this helps you.

Blacky :smiley:

1 Like

Thanks for your kind words I really appreciate it :smiling_face_with_three_hearts:

Yes, your correct it wont work well but I have something you will love and it is easy.

If you have a door contact sensor, consider placing it on your bathroom door rather than on the toilet. This way, it can work in conjunction with your motion sensor. I developed a template sensor I call :honeybee: Bee in the Hive :honeybee:, once it detects youā€™re in the bathroom, it keeps the light on, even if youā€™re sitting still, until you open the door. The template sensor can handle it and be repurposed for other needs too. Once you have your template sensor add it to the trigger grouped with your motion sensor.

Here is the link for the How To, click here I think your going to love it.

Let us know how you go.

Blacky :smiley:

1 Like

@ronverstappen

Hi Ron,

Try using it and also when using scenes make sure you have your helpers added in too.

Blacky :smiley:

@ericlab

Welcome to the community.

No it is not in this blueprint. You will have to ask the community in a different topic. Just create a new topic in the forum and I sure someone will be able to help you.

Blacky :smiley:

@Herr.Vorragend

When using the sensor light blueprint, ensure it operates within the time frames set by your Smart Light blueprint. The Smart Light blueprint controls turning your lights ON and OFF, while the sensor light blueprint adjusts brightness between 100% and 10%. To implement this, create a scene at 10% brightness and add it to ā€˜Scenes - Scripts To Turn OFFā€™. You can try keeping your light entities in ā€˜Light - Switches - Scenes - Scriptsā€™, but if you experience flickering, create an additional scene with lights at 100% brightness and add it there. Avoid using the Scene helper to help prevent flickering.

Hope this helps you.

Blacky :smiley:

1 Like

@korlaar

Looks like you are using option 6 in dynamic lighting. As it gets darker the brightness decreases. It works like the sun. If you would like to to get brighter as the sun gets darker then try option 7 as it inverts the brightness.

More information on Dynamic Lighting can be found here

Tip: If you would like the colour temp to be inverted too then just swap the settings for max and min.

Blacky :smiley:

@Blacky This is a fantastic plugin. Thank you.

Question - This might not be the right blueprint for a specific use case (although itā€™s a great blueprint for my other use cases), but Iā€™m trying to program a ā€˜Vacancy sensorā€™. The goal is that my trigger motion sensor does NOT turn the light on, but if itā€™s turned on, then itā€™ll turn it off after the given amount of time. Iā€™m trying to pair that with the bypass - hence using this blueprint. The particular use case is I have garage ceiling lights in 2 pairs - pathway lights, and very bright work lights. I want the pathway lights to turn on via motion, and support my bypass switch, which is working well. But my work lights ā€˜pairā€™ with my pathway lights, since theyā€™re the same type of light in different areas, where if I enable the bypass, I want the worklights to turn on, and remain on for the duration of the bypass, then revert back and turn off based on the original motion sensor timeout, turning off with the Pathway lights after a lack of motion. Thoughts on this? Did I totally miss something reading your guides?

Hi, ok iā€™ll do that
thanks

1 Like

@mwhalentech

Welcome to the community.

Sorry I canā€™t work out what your trying to do.

Blacky :smiley:

Thanks for explaining, but isnā€™t there an overlap?

I thought youā€™re able to do the same things as Smart Lightning in the Sensor Light blueprint when you disable a few options?

EXACTLY what I was looking for. And great description of the use case :smiley: now I am looking at your other blueprints to find something to automate although it should be the other way around, haha. Thanks again!

@Blacky
Itā€™s weird. Now itā€™s working as expected. Nothing changedā€¦

Many thanks for the hint with the scene switch-off.
I have to admit. I hadnā€™t even noticed that feature before.
It seems to work wonderfully. :grinning:

1 Like

@iona

It works differently and the code is very different.

Blacky :smiley:

@arne.conrad

Yea that :honeybee: Bee in the Hive :honeybee: template sensor is a really nice one. You can also use it in your other automations.

Blacky :smiley:

@stebl27

Yea it will probably have to do with the LUX sensor.

Blacky :smiley:

1 Like