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

Love it, thanks for letting us know :+1:

what i was trying to do was based on the state of the alarm armed disarmed etc…to engage the night mode since there is a sleep state this way i could set all the motions into a night light mode in one action…

thanks for responding

First things first: Fantastic work.
All functions work as expected.
The only thing that annoys me are the entries in the logger.

Logger: homeassistant.components.homeassistant
Source: components/homeassistant/__init__.py:119 
Integration: Home Assistant Core Integration (documentation, issues) 
First occurred: 14:46:52 (1 occurrences) 
Last logged: 14:46:52
The service homeassistant.turn_off does not support entities scene.flur_decke_licht_motion_morgens

I just can’t find the error :frowning:
Every Sensor trigger its counting up.

The service homeassistant.turn_off does not support entities scene.theater_on
same here please let me know if you sort it out thankx

Logger: homeassistant.components.homeassistant
Source: components/homeassistant/init.py:119
Integration: Home Assistant Core Integration (documentation, issues)
First occurred: March 11, 2023 at 12:34:22 PM (26 occurrences)
Last logged: 11:59:20 AM

The service homeassistant.turn_off does not support entities scene.theater_on

1 Like

Thanks @robertw I can see what you are trying to do. :thinking:

Edit: I can see the logger, please see the below post.

Hi @Atze001

Glad you like the blueprint.

Yea I can see the error. I have put in a feature request (Click here and vote for it) so this can be resolved.

1 Like

sorry, quick question re ambient light - does the light level rising back above the set threshold turn off the light (with presence still indicated)?

Hi @ellisorgan

So if you use “YES - My Ambient Light Sensor is affected by the Lights” option then this is what should happen. Remember you must have at least one entity in your selection for this option to work. It can’t be a scene, area or device it must be a single entity or multiple entities. This also includes night lights if you are using them.

  1. Trigger because your motion was detected and your ambient light is below your set point. Lights ON.
  2. Now that your automation is running it will exclude your ambient light sensor and work of motion.
  3. Once your light/s turn off it will then reset and work of your ambient light sensor again waiting for the next trigger.

No, if you use the “YES - My Ambient Light Sensor is affected by the Lights”. It is not a trigger, it is a condition. If you don’t use that option and select “NO - My Ambient Light Sensor is not affected by the Lights” and your sensor is effected by the lights when they turn on, then if the automation gets another trigger when the lights are on, and you are above your ambient light sensor set point then your lights will turn off after your time delay.

The problem with this is if the Bathroom Fan is on already (e.g. due to another automation or manually on) this means that the Light doesn’t turn on due to motion.

Yea if you turn the fan on manually or with another automation then this is not what the tip was for.

This Tip is, if you use this automation (sensor light) and you walk into the bathroom, then the light turns ON and then if you have a shower behind a shower screen where you motion sensor can’t detect you and your light turns off then you could use the fan as a by-pass in the sensor light automation to keep your lights ON.

Hope this makes sense.

When having a bath, the lack of movement puts you in darkness. So I use the bypass to stop the light turning off when the fan is on.

However, I have an automation that turns the fan on during the day for a period to bring down the humidity in the house and give some circulation.

This combination means that the light won’t turn on if the fan is on for circulation due to an automation.

Fantastic Blueprint that stands out from the rest.

Simple feature request… can you allow for the Time Delay to be increased beyond 30min? i.e. 60min

You may consider using a different switch (not the fan) or creating a dummy switch that will be turned on when you use the “bathroom humidity exhaust fan” blueprint automation. Then put that switch into the sensor light automation by-pass. This way when you run your circulation automation the lights will still turn on and when you run the “bathroom humidity exhaust fan” blueprint automation the by-pass will be switched on (dummy switch) disabling the sensor light automation.

Hi @chassio

Glad you like our blueprint :+1:

Just simply type the value you would like in i.e. 60 and click save.

1 Like

Thanks for this blueprint, I really like it. I personally use it with an room occupancy sensor as the trigger bypass, works great to leave lights on when sitting still. But also works to ensure they don’t come back on when you happen to move in bed.

I have created a modified copy for myself to use for fans: (I live in Australia)
changed the below LUX sensor to an above temp sensor, turn on fan when above 24 deg.
changed the light brightness input to a fan speed input.

I thought I would mention it just in case you wanted to release an alternate version since you did all the work :wink:
Feature request in the fan version, some of my fans beep when turning on, so a condition to check if the fan is already on would prevent multiple beeps from repeated turn_on commands.

1 Like

@MickW69 Hi Michael, glad you like the blueprint :+1:

I think I will PM you for the custom automation for fans.

Hello, thanks a lot for this blueprint! I’d like to keep the lights on if they were already ON before the motion sensor was triggered. It seems this only works if I use some kind of trigger bypass but I don’t really know what to use as a trigger. I do turn them on/off from the physical switch but then in HA I only have one light entity. Is there something I can do?

@oniric85 Hi Stefano. firstly welcome to the community :+1:

If you would like to create a by-pass without having a physical switch the see or FAQ, 2nd question.

You could also wire in a Shelly Plus i4 and have another switch next to your light switch that you also turn on when you would like manual control. This extra switch would be the by-pass and allow you to have manual control.

Hello @Blacky, great job, congratulations and thank you. I am asking for help because several of my sensors often have a state other than on or off and therefore unavailable or unknown. I suppose your automation is triggered by the change of state from OFF to ON, I only use the change to ON in mine, this eliminates this problem, am I right? Can you change this in your solution or suggest how I can deal with it?

@Pawel128 you can but…

1/ Do your sensors go from ON to OFF?
2/ Could you explain why your sensors go from unavailable or unknown to ON?