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

As long as the button has a ON & a OFF state for the by-pass it will work.

No problem at all, happy to help. :slightly_smiling_face:

No problem at all, let us know how you go. :slightly_smiling_face:

I tested version 2.0 with the Lux option set to “YES”, but I have the feeling that it didn’t bring any improvement.

@fakorte Can you please confirm if you are just using only scenes? (no individual light selection) If so I will do a FAQ for this on how to resolve it.

@fakorte I will do a FAQ for the LUX option. This will also help if someone is having a similar problem. It will be my next post.

FAQ - Ambient Light Sensor & Site Conditions

If you’ve only selected scenes or script in the Lights - Switches - Scenes - Scripts or Night Lights sections, please continue reading. If you’ve chosen an entity in these sections, the automation should work as expected.

Sometimes, when setting the Ambient Light Sensor - Site Conditions to YES, the lights may not stay on, giving the impression that this option isn’t functioning. This issue often occurs when no entity has been selected in the “Lights - Switches - Scenes” or “Night Lights” sections.

To resolve this, ensure you add a toggle helper to the Scenes & Scripts - Toggle Helper section. This will help ensure the smooth operation of the automation.

Below is where you should add the toggle helper to ensure smooth operation of the automation:

Now, your selection of YES in the Ambient Light Sensor - Site Conditions should work and function correctly. :wink:

Enjoy

Blacky :grinning:

Back to FAQ: Click Here

Back to “The Settings & Best Practice Guidelines” Click Here

1 Like

Thank you very much, that looks very helpful I will test it soon. I really only had scenes in my automation

No problem, your welcome :slightly_smiling_face:

Hi, great blueprint thanks!

Is it possible to adapt this for check to see if known people are at home?

I have pets and they’re forever triggering these types of things, so I need a way to stop this from running if no-one is at home. I have the zone.home to check against as well as a person group.

I tried it with a scene and a single device (that is also in the scene) and it still doesn’t work… :triumph:

alias: Sensor light Kueche Nacht
description: ""
use_blueprint:
  path: Blackshome/sensor-light.yaml
  input:
    motion_trigger:
      - binary_sensor.zb_ms_kueche_occupancy
    light_switch:
      entity_id:
        - scene.szene_sensor_light_kueche_nacht
      device_id: 648d94f5811833b627d23b8da05897a5
    end_scenes:
      - scene.szene_sensor_light_kueche_aus
    time_delay: 2
    ambient_light_sensor: sensor.zb_ms_kueche_illuminance_lux
    ambient_light_value: 4
    motion_bypass: input_boolean.dauerlicht_kuche
    include_bypass: bypass_enabled
    include_ambient: ambient_enabled
    after_time: "21:00:00"
    before_time: "06:00:00"
    include_time: time_enabled
    ambient_light_options: ambient_light_option_enabled

@fakorte So close :slightly_smiling_face: It can’t be a device. It must be a entity with a ON / OFF state. This is what we are looking for. Drill into the device and just add the entity your turning ON and OFF or just select a separate light or switch.

@romprod I will PM you.

New update 2.1

Happy New Year Everyone! :champagne:

In this release I have added a few more options that I hope you will like.

NEW OPTIONS

  • Added a option for “Light Control”. This allows you to set a brightness level for your lights.
  • Added a option for “Zone - Device Tracker”. This can be useful if you have pets triggering the trigger sensor turning your lights ON and OFF when no one is home.
  • Added a option for “Night Lights”. It is normally used for having lower softer lights come ON when going to the bathroom at night.

Enjoy

Blacky :grinning:

2 Likes

hi, for some reason i cant select a room, device or entity to turn on the lights. Keeps saying nothing found.

hope you can help :slight_smile:

1 Like

Is there any easy way to implement the following:

  • This blueprint would NOT turn on the scene/light IF this scene/light was already ON.

Too many times I’ve had the issue that I’ve lowered the brightness of a light manually and it would get back to the preset on the scene after movement is detected.

Any easy fix for this?

This is a bug in New update Home Assistant 2023.1.0

Hopefully you did a back-up before you updated. If so go back to your back-up.

I have reported it to HA as a bug :bug:

1 Like

Not sure what your saying here. If light is ON and the scene gets turned ON then the light is ON.

Yes this is correct and how it should work. If you trigger the motion sensor again it will reset the scene adjusting your lights if you change them. Maybe if it is brightness you looking for then use the new update V2.2 (just about to be releases) and don’t use brightness in the automation. You then will have manual control over brightness.

New update 2.2

Fixed a bug in night lights flickering on trigger. :+1:

Enjoy

Blacky :grinning:

Thanks for your reply! Unfortunately I’m pretty new to HA and I’m changing a lot daily. So no backup. Patience is key here i guess.

Hope to use your great blueprint soon!

@sdeboer84 If you are keen then you can try this.

Find out your “entity ID” you would like to use. Go to, Settings / Devices & Services, click on top tab “Entities”. Find it there.

Open the blueprint, click on 3 dots top right, and “edit in YAML”. You should see something like this.

description: ""
alias: Sensor Light
use_blueprint:
  path: Blackshome/sensor-light.yaml

For “Lights - Switches - Scenes *” enter from “input” and change your entity_id. I put 3 entities in there for the example (you will need to change them) but add or remove as required.

description: ""
alias: Sensor Light
use_blueprint:
  path: Blackshome/sensor-light.yaml
  input:
    light_switch:
      entity_id:
        - light.change_to_your_entity
        - switch.change_to_your_entity
        - scene.change_to_your_entity

For “Night Lights” it will be similar, see below

description: ""
alias: Sensor Light
use_blueprint:
  path: Blackshome/sensor-light.yaml
  input:
    light_switch:
      entity_id:
        - light.change_to_your_entity
        - switch.change_to_your_entity
        - scene.change_to_your_entity
    night_lights:
      entity_id:
        - light.change_to_your_entity
        - switch.change_to_your_entity
        - scene.change_to_your_entity

Now click 3 dots top right and select “Edit in visual editor”

Hopefully you see your lights now :crossed_fingers:

Fill out the rest.

Not sure if it will work because I don’t know what HA did but be assured the blueprint works.

2 Likes