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

@Blacky not sure whats wrong but since i updated to the latest ersion the bypass switch is not work as before, i.e in my kitchen i has where when i entered the room the under cabinets ledā€™s and floor led strip would come on, for 1.5mins, but if i turned on the LEDā€™s going off if they was no motion for 1.5 mins. But this now is happening, the cabinet and floor LED arr turning off if someone is not moving arroud.

hereā€™s my config, can you see anything wrong ?

alias: Kitchen Motion Light
description: ""
use_blueprint:
  path: Blackshome/sensor-light.yaml
  input:
    motion_trigger:
      - binary_sensor.kitchen_motion_sensor_occupancy
    include_light_control: dont_use_brightness
    include_sun: sun_enabled
    time_delay: 1.5
    end_scenes:
      - scene.kitchen_motion_light_off
    include_night_lights: night_lights_disabled
    light_switch:
      entity_id: scene.kitchen_motion_light_on
    sun_elevation: 0
    light_transition_on: 0.5
    motion_bypass_lights_off:
      - light.kitchen_lights
    motion_bypass_lights_on:
      - light.kitchen_lights

@andyblac

Hi Andy, thanks for asking the question.

You have selected light.kitchen_lights for 2 scenarios.

    motion_bypass_lights_off:
      - light.kitchen_lights
    motion_bypass_lights_on:
      - light.kitchen_lights

I wouldnā€™t do this at it will fight each other ON / OFF. So before you updated what by-pass did you use.

  1. Turn Lights ON
  2. Turn Lights OFF
  3. Keep The Lights Current State

So you havenā€™t enabled a by-pass yet. So you will need to select what enable option you had before. 1, 2 or 3. Then whatever option you select you will have to enter light.kitchen_lights into the correct input. Below is an example of my hallway lights. Donā€™t use the same entity for 2 options.

Dope!!, I feel so stupid for missing this option, before I just had it as ON, I have done it as you have your Hallway.

Thanks again.

1 Like

No problem, happy to help :smiley:

You can now see that you can have different by-pass that will do different actions.

Hello,

Iā€™ve been looking at yesterdayā€™s history and the problem was with the motion sensor, which, I donā€™t know why, was on from 18:08 (when I left home) until I arrived back, at 23:33. So, as it was on when sun elevation triggered the automation, ligths set on at that time.

One additional (related) question. Is there any option in the blueprint that allows the timeout to start from the off->on of the motion sensor instead of from the on->off? I could use it to avoid lights being on all the time if motion sensor is stuck in on state.

In this case, timeout timer would start from the off->on triggering of the motion sensor, and if another off->triggering occurs before timeout, the timer would reset.

It would have one additional advantage, as some motion sensors (mine) stay in on state for a couple of minutes not to trigger so often and save battery. If timer starts from the off->on triggering, it could be set to less time than minimum, which is the ā€œon timeoutā€ of the motion sensor.

Miguel

Yea well that makes sense.

No, it wouldnā€™t work correctly.

If your sensor has a time delay already in it then set the time delay in the automation to ā€œ0ā€.

If you like try my blueprint :round_pushpin: State Notifications & Actions but the next update is what you need, be out soon. Then you could set up a notify to send you a message if your motion sensor is ON for X amount of time. Then you will know to reset it. :wink:

Ok, then I forget about it.

Itā€™s a hardware sensor, and the only possibility is to reset it unplugging the Zigbee bridge from electricity. Iā€™ll do that with an automation.

Iā€™ll wait for next update then.
Thank you!

1 Like

@miguelpucela

It has been updated now :round_pushpin: State Notifications & Actions

Enjoy

Blacky

1 Like

Edit: I deleted the original message as when reading the yaml I noticed the line ambient_light_options: ambient_light_option_disabled which I now removed, hoping that my lights will turn on this evening even if thereā€™s constant motion, meaning the motion trigger will trigger very rarely and stay at ON for many, many hours.

Yes it will work. Also notice that in ambient there is also a site condition. So if your sensor is effected by the lights when they turn ON then you would select YES.

hi i use a night mode is there anyway that the night lights could be activated only when night mode is on as using times is not flexible as we may go to bed at different times , otherwise this is perfect thanks you

@parkmi119

Hi Mike, firstly welcome to the community and for asking the question.

Yes, you would use the state option. Then you could have a switch near you bed to activate night mode but I like to use ā€œDo Not Disturbā€ on your phone as I dont like anyone waking me up and it also activates night mode :wink:

This post is an example on how to use the state option. Click Here

PS: Thanks for your kind words and I hope this help you.

Blacky :smiley:

Hi thereā€¦ maybe Iā€™m to stupid, or I donā€™t see a thing, but my (I installed this blueprint yesterday on an up to date system) automation just does not get triggeredā€¦
It sais it has never run, alltough my Hue motionsensor was triggered, and changed its state in HA - so it seems to me, that the automation ignores this change (of triggered motion)ā€¦
Is there a bug or missed I something?

Hi @el-Presi

Without seeing your YAML of your automation I would say you are using ā€œDevicesā€ or ā€œAreasā€ in "Lights - Switches - Scenes " and or ā€œNight Lightsā€. You will need to expand down to entities. See under ā€œThe Settings & Best Practice Guidelinesā€ Click Here on how to do this.

If that not the case then, could you please provide us your YAML of the automation? This YAML code are the settings you have selected in the automation so I can help. To do this go into your automation, top right 3 dots, Edit in YAML, copy all the code, come back to the forum and in your reply at the top tool bar click on ā€œ</>ā€ and paste code in there.

See next to ā€œLights - Switches - Scenesā€ the note.

Hope this help your and please let us know if this was the fix.

Blacky :smiley:

Yes youā€™re right, I used an area there. Okay, so I switched over to a entity, it works (I just had a quick quick check)

Question: The Trigger Sensor area: I guess they are connected with ā€œORā€ so: "either entity one is true, OR entity 2 is true (or triggered motion), to switch the lights on?

So as long as one of them triggers motion, the lights will stay on?

Nice one glad you got it working :+1:

It is a bit tricky here. The quick way to explain is; When using multiple trigger sensors it is always best to group them. In saying that I do have some automations that they are not grouped. On how to set up group sensors please Click Here. I would recommend that you group them.

Blacky :smiley:

Hi @Blacky
Your blueprint work great all the time but not with sun conditions.
It look like sometime, my light goes on when sun goes down. In history, I can see that lights are turned on by your blueprint with the sun entity. I donā€™t known why.

Can you tell me why ?

Is there an update process? Updating the yank and reloading didnā€™t fix an issue with Rheindorf version. Ingas to recreate all automations :frowning:

Hi @Drealine

I have just tested it again here and it looks like it is working perfectlyā€¦could you please provide us your YAML of the automation? This YAML code are the settings you have selected in the automation so I can look into it further. To do this go into your automation, top right 3 dots, Edit in YAML, copy all the code, come back to the forum and in your reply at the top tool bar click on ā€œ</>ā€ and paste code in there.

The only thing I can think of without seeing your YAML is there are 2 sun conditions (Global sun condition & night lights). You can use them together with different settings and I would always recommend the night lights setting be a lower value than the global sun condition. If you are using the night lights sun then when it rises above your setting it will go to your normal lights and any global condition you have. But I would need to see your YAML before I send you down the wrong path.

Thanks for reaching out as I do like to make sure that everything works perfectly how it should and sometimes I can miss something.

Blacky :smiley:

@dMopp

To update your blueprint please follow these steps Click Here

To check if there was anything that was required to do when updating then please see a quick reference guide " UPDATES OF BLUEPRINT" down the bottom of the FAQ Click Here.

If you only have a few automations and you havenā€™t updated the blueprint in a while and there are a lot of things to doā€¦ then sometimes it is just best to recreate your automations as it can be a lot quicker and cleaner with no mistakes. The best way to do this is update the blueprint then disable the old automations you would like to recreate, then recreate new automations checking all your setting are the same between both automationsā€¦ once your happy with the new automation to then delete the old disabled automation :wink:

Blacky :smiley:

1 Like