i have added an optional “no motion blocker” with user choosable desired state.
(That was easy to add because i already had the code for the automation blocker and i need that for the next room.)
I´ve noticed that after updating the blueprint importing and using it always sets the elevation variable on my system. I do not know why, i did not change anything there…
If you use this new Version please can you check if you have the same bug?
You can check this very fast, if you are in the configuration for a automation using this blueprint click the 3 dots top right corner, switch to yaml and look for this:
elevation_check: '0'
If it is in there and you did not configure this than you have the same bug.
Still i do not why and how…
I should probably just make my own blueprint, but what I really would like to have is a motion automation that
detects motion
sets lights/scene bases on time of day
motion ends
restore lights to their prior state
I know you can do this with an action to create a new scene on the fly. Instead of just turning the lights off, it would be much nicer if you identify the lights that are being modified, then created a scene before changing the settings, and finally at the end of the motion just restore the scene that you previously created.
I can not imagine where this comes from, there is nothing in this blueprint which could cause this. (at least not that i know of)
Also i noticed this:
(‘automation_blocker’, ‘light.schlafzimmerdecke’)
is light.schlafzimmerdecke an input_boolean?
Can you please paste the automation as yaml?
(Configuration of this automation, three dots top right, select yaml)
Also which version are you using, that is in the description of the blueprint
Ok it seems the error is down to some leftover automations, which weren’t properly deleted over the UI. Had to manually edit the automations.yaml to get rid of these leftovers. This might also be the reason I had conflicts earlier.
light.schlafzimmerdecke is a Hue Device (not entity)… I think it should work. Have to test it first.
-> the blocker didn’t work. Can you use a target entity such as freakshock88?
With the new blueprint it no longer works for me.I just added motion detectors and lights. With the old version, the light also went on during the day, now it doesn’t come on during the day. But I don’t want it to work during the day as it is quite dark in the basement …
Can you please try to delete the line and check if it reappears again?
I do not know why the blueprint is doing this, this started at some point. But there was no change for this stuff so I am hunting a ghost.
Did you add all the times for the scenes and ambient or are the wrong as well?
If yes then this is a new one also. (I do not have this if I do not configure them)
As a quick fix you can set the value for elevation to 90,then it should work the whole day.
I have now deleted the line and will not come back. the automation works again now. I also tried to set your tip to 90, unsuccessfully. I didn’t set up scenes and anything else, just motion detectors and lights. I have some shellys in operation that act as a “switch”, but I cannot select them because only “light” can be selected. is it possible to add “Switch”?
Thank you for the info! now I have noticed that the automation has the entry elevation_check: ‘0’
but automatically adds again. I delete it from the .yaml, then the automation works once, the time runs out, the light goes out. then on the next attempt it does not work again because he has the entry elevation_check: ‘0’
adds back to .yaml.
Edit: then I have the switches twice in HA, once as a switch and as a light … I find it so confusing. then I have to work with scenes. is it possible to reactivate the blueprint V03? it worked without any problems for me.
I tried to import a revision of a gist in HA but it takes the newest Version automatically.
So if you really want to use that version you need to do this yourself.
Either by forking or by copying the blueprint v03 on your ha server and using it from there.
the v08 works now so far. I am currently using the motion sensor with sun height for a time of 420 seconds, is it possible that from 10:00 p.m. - 6:00 a.m. the motion detection is only switched on for 120 seconds - so that from 10:00 p.m. the 420 seconds are deactivated and then the 120 seconds are active and then the other way around at 6 a.m.? if so, what do i have to do? Can somebody help me?
I´ve updated the blueprint where the elevation check bug should be fixed.
@Caligo
I did not forget you, but needed first to solve this bug.
Will be added soon.
@kallejoken
So you need two different wait times depending on time of day?
At the moment i think i will not build that in, but if more people need that i can have a look at this.
Ok, thank you for the information. then I have to implement this with various automations. because it makes no sense if the light is activated by a cat at night and then lights up for 420 seconds, so I only want 120 seconds at night.