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

Hi again!

I have two automations set up - As I walk into the room (Dining room part of the room) the light turns on, and as I walk left into the ā€œkitchen zoneā€ the kitchen light turns on.

Is there a way of adding to this automation that if presence is detected in the kitchen zone that the dining zone will remain on until all zones are clear? Rather than the dining zone turning off when iā€™ve moved into the kitchen area?

I have it set up this way so that If I only stay in the dining zone - then I dont need the kitchen light to turn on. However, if iā€™ve moved into the kitchen zone - both should remain on until Iā€™ve left the room completely.

Ultimate Goal:

  • Only Dining zone detected - only turn on dining zone and turn off when no presence detected.
  • If Kitchen zone is entered - keep the dining zone on as well while there is detection in Kitchen zone
  • If moving back to dining zone - and remaining there - Dim Kitchen light a little but remains on until both zones detect no presence.

Iā€™m sure this is possible, but possibly outside the scope of this blueprint.

Thanks in advance.

Sorry, I meant the time delay until the automation checks for motion.
Is there any way to trigger it during that delay? For example, if the lux level drops below a certain threshold and the lights are off, it would turn them on immediately instead of waiting for the time delay to finish.

I hope Iā€™m explaining this correctly.

Just come back to looking at using this blueprint as its always seemed so cool, but Iā€™ve never really got it to work. and today is no difference.
just imported (7.3)

Either using a single motion detection or a group of two . which works, I can see the motion entity change to on etc.
Selected a few bulbs in the room. brightness level and temp level.

selected night time between midnight and 7am. for just one light.

nothing else is enabled.

tested a bunch but it sits there with ā€œlast time this activation was activated = neverā€ and if i force it to run actions , it doesnā€™t do anything.
tracing is next to impossible given the complexity of this blueprint. any pointers as to what i can do to work it out??

Hi,
I have set a motion detector as a trigger so that certain lamps are switched on. This also works so far. However, I would like the light to stay on as long as the TV is on or the brightness in the room exceeds a certain value.
I can query my television via media_player.fernseher.
What is the best way to do this?
Regards
Herbert

Iā€™m having a similar problem. I have one automation using it that I setup a few weeks ago and it works great. I tried to setup another one today but cannot get the trigger to fire. Iā€™ve tried multiple trigger entities (that all work and show status change in the logs) but none work and, as with the OP, ā€œlast time this activation was activated = neverā€.

@varsanikr

We the fun begins now.

This is were scenes and scripts come into play.

You are going to have to use scenes in your light input.
Add your helper for scenes & scripts.
Now the exciting part Scenes - Scripts To Turn OFF this is were all your logic will be. You will create scripts to handle ever condition.

In your kitchen off script you will have;

If dining room detected turn light to 50%.
If dining room clear and dining room light is ON = turn off kitchen light and dining room light.
If dining room clear and dining room light is OFF = turn off kitchen light.

In your dining room automation.

If kitchen detected leave light dining light ON.
If kitchen is clear and kitchen light is on = turn off kitchen light and dining room light.
if Kitchen is clear and kitchen light is OFF = turn off dining room light.

To do this you would go to settings > automations & scenes > create your 2 scenes for your lights input and then create 2 off scripts. In the script create new script > add building block > choose then add in the condition and action for each one. keep adding building blocks choose for each one.

Enjoy

Blacky :smiley:

@botany112

The automation will trigger in the delay.

Because you are using scripts it has to wait for the Scenes & Scripts - Toggle Helper to turn OFF before it will run the script again. Try removing the helper as then it will just run your script every time it is triggered.

Blacky :smiley:

1 Like

@thefunkygibbon

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.

Blacky :smiley:

@herbert1910

This is were I getting confused. Would you like the light ON when it gets brighter. Normally you turn them OFF.

Blacky :smiley:

@cmanson78

Welcome to the community.

In the FAQ

1. My trigger isnā€™t activating the automation.

or

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.

Blacky :smiley:

thanks. ill try that. and let you updated.

1 Like

Yes - when the brightness of the sensor has reached a certain high value, the lamps should go out, even if the TV is on.

Hi thanks for replying. I somehow managed to get it working in the end by creating a simple automation from scratch with it and then adding the complexity things (ie making it have a nightlight and thats about it) testing, working, then changing the bulb and motion sensor to the ones i wanted it to be. and its ok now.

No idea why though given that it was identical in the config options to the original one i created. so iā€™ve no idea whats happening with it. Iā€™m about to migrate a bunch of other rooms automations with it so iā€™ll let you know if it keeps happening.

alias: Motion4
description: ""
use_blueprint:
  path: Blackshome/sensor-light.yaml
  input:
    motion_trigger:
      - binary_sensor.hue_motion_sensor_2_motion
    light_switch:
      device_id: a09fb1f955b4b9ba78ab5e77ba9508c8
    time_delay: 0.5

Hi, I found this blueprint recently and Iā€™m wondering if it supports the use case I am currently looking for.
I have a light in the hallway, which I want to turn on with a motion sensor and adjust the brightness and color temperature based on sun elevation (or time which is not supported but somewhat related) dynamically. Ideally the light would start turning on at about 17:00 or when the sun goes down with the max brightness and temperature and then slowly decrease over the evening and reach its low point at about midnight. It should stay like this until about 7:00 and increase to its max at about 9:00 again.
I tried achieving this by setting a negative value of - 60 for the elevation end point, but this does not seem to work at all with mode 6 (which I hope is correct).
I think this might be a user error on my end, but if someone could spare some time and ideas I would be very grateful :slight_smile:

PS: I tried using the night light feature (which is what I basically want) but sadly this is not dynamic.

Controlling lights with motion sensor, multiple switch manual override and Siri, is it possibleā€¦

I currently have this blueprint setup to control my living room lights using a motion and light level sensor. Itā€™s working great but I also have two Philips hue dimmer switches that have ā€œtoggleā€ switches. When I turn the lights off from the switch, this blueprint immediately turns them back on. When the physical toggle switches are used to turn the lights off, how can I disable the automation until either

a) The lights are turned back on.
b) On a timer at 11am the next day.

Ideally I would also like to retain control via Siri too so if I tell Siri to turn the lights off they also wonā€™t come back on until a or b happens.

Thanks

@herbert1910

Okay, then the best way to set this up is to create a template binary sensor for when your TV is ON (unless you have this already). Once you done that group your TV template binary sensor with your current trigger. That will turn your lights ON when motion is detected or your TV is ON or both.

Next enable and set up ambient condition in the blueprint so when the brightness of your sensor goes high it will turn OFF the lights.

To create a Template binary sensor, follow these steps:

  • Navigate to Settings > Device & Services > Helpers tab at the top.
  • Click the Create helper button.
  • Select Template and then choose Template a binary sensor.Next, provide a Name and Device class of your choice. If applicable, you can link this template to an existing device so it appears under that deviceā€™s details.In the State template field, add the code below, replacing your_tv_entity_id_sensor_here, with your entity ID of your TV status (ON / OFF).
{{ is_state('your_tv_entity_id_sensor_here, 'on') }}

Blacky :smiley:

@thefunkygibbon

All good, glade you got it working. Thanks for the update.

Blacky :smiley:

@cmanson78

Thanks for your YAML. You are using a device in Lights - Switches - Scenes - Scripts. You will need to expand it down to an entity. Click Here to show you the how to.

Blacky :smiley:

@MoritzBoehme

Welcome to the community.

Sun elevation in dynamic lighting only works to -10 deg and above. Dynamic lighting is only for normal lights not night lights.

Blacky :smiley: