Yea I thought that was going to be the case. The automation needs an ON / OFF stateā¦ it canāt work even if you change the trigger. Can you upgrade your front door sensor? That would be the best way.
Blacky
Yea I thought that was going to be the case. The automation needs an ON / OFF stateā¦ it canāt work even if you change the trigger. Can you upgrade your front door sensor? That would be the best way.
Blacky
Hi Nick,
Your welcomeā¦ It is really nice to get this feedback and I am really glad everyone likes it.
Blacky
I canāt, Itās using the standard Doorbird integration, which works with events. I have now created an automation that changes an Input boolean based on the Doorbird event. And then I created a helper-binary sensor based on that switch, so I can trigger your blueprint.
Hi there and thanks a lot for this Blueprint. Iām using it in a dozen of automations.
However, just stumpled across a case I could not easily apply: my Christmas light schedule.
I tried playing around with sun in combination with time/schedule settings but didnāt manage.
Any support would be much appreciated
Welcome to the community.
The blueprint you need is Smart Light. It is one of my blueprints and is what I use for my Christmas lights.
Once you downloaded it you will need to use sun elevation and time triggers.
Enjoy
Blacky
@Blacky (and perhaps @Stifter)
Speaking about Christmas lights, I have the following situation:
Trigger | Condition | Action |
---|---|---|
isNightTime: ā off | luminosity below 80lux | Xmas lights on |
isNightTime: ā on | Xmas lights off | |
luminosity: ā below 80lux | isNightTime: off | Xmas lights on |
luminosity: ā above 100lux | Xmas lights off |
isNightTime is a boolean helper which I set elsewhere depending on weekday/weekend/holiday and of course time.Typically starting at a time between 22:00 and 23:45 and ending at a time between 6:00 and 7:30.
luminosity is coming from an outdoor sensor.
I want the Christmas lights to be on when itās not nighttime and when itās somehow dark.
I couldnāt get my head around how to achieve my goal with one of your blueprints, @Blacky
Hence I created my own one, which might have some issues since it is freshly written by me - without much experience.
Hi Nick, thanks for the info. This is easy.
Your trigger will be the NightTime boolean, but because you would like it ON when the NightTime boolean is OFF we need to invert it. To do this we can create a Template binary sensor helper.
To create a Template binary sensor, follow these steps:
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 binary_sensor.your_night_time_boolean_here
with your entity NightTime boolean ID.
{{ is_state('binary_sensor.your_night_time_boolean_here', 'off') }}
Merry Xmass.
Blacky
Thank you @Blacky
what would happen when the luminosity is getting below 80 but it is still nightTime?
my need is that the Xmas lights are not switched on, because it is still nightTime
and as soon as nightTime is over, the Xmas lights are switched on (assuming luminosity is still below 80)
What you do is once you create your template binary sensor helper (as shown above) then you add that helper into the trigger only in a new automation for your Xmas lights.
When isNightTime = ON (assume this is when you are sleeping) the helper will be OFF. Because the helper is the trigger and it is OFF the automation will not run.
When isNightTime = OFF the helper will be ON so now the automation can run. Because we set the ambient condition it can only come ON when it is below 80 and will turn OFF when it crosses over 100.
Blacky
Hi,
After many years of using AppDaemon with custom apps, I recently discovered this and decided to give it a try. I had a couple of hiccups, but everything is now working well.
However, I have two issues, and Iām hoping someone might know how to fix them:
When the TV is on and it gets dark, the lights stay off because I have a bypass set up for the TV due to the Ambilight. However, when the TV is turned off, the lights donāt switch on automatically. They only turn on after the timer finishes and thereās movement again. (Manually turning the lights on works fine.)
I have kids, and sometimes one of them manually turns off the lights. When this happens, the lights stay off and wonāt turn back on until the timer finishes and thereās movement detected again.
Any help would be greatly appreciated!
Keep up the great workā:muscle:
If you have a bypass and the bypass is ON it disables the automation.
When the automation is running and you turn the light OFF it will turn it back ON when the motion sensor goes from OFF to ON. No timer just need to be re-triggered.
Blacky
Hello,
Iāve just imported your blueprint but saving a very simple automation (1 trigger (binary sensor) - 1 light - no other options) always give me the following error while saving:
āMessage malformed: extra keys not allowed @ data[ātriggersā]ā
I assume it has something to do with the selected trigger, but already changed to other binary sensors without luck
Kind regards,
Tim
Welcome to the community.
If you can update your Home Assistant then it will be resolved.
Blacky
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:
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ā.
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