Hi Malte,
thanks for the blueprint I use it with several sensors.
But I am to stupid to do one automation.
Garagedoor should give an Alarm when it is open above 15 min but just after sunset before sunrise because during the day it is OK.
When I open my door before or after Sunrise/Sunset the automation works well but when I forgot to close my door during the day in donāt get a message after sunset that the door is still open (because it is over 15 mins open). Any suggestions how I can set the time from 15 min to 15+ mins?
I hope that you got what I like to say.
Thanks for your help.
Iām wondering why the notifier always shows the time of the first message and not the time of the event that fires the notify the first time. The message says some ādoor-open-timeā, but if I use a wait time the value is incorrect.
I tried to fix it with
in the notification message inside the frontend. It saves without problems, but I dont get a notification on the companion app, even though the trigger said its fired. Any suggestions?
Seems that somebody is interested in the idea. I realised it by tweaking the blueprint at line 254 by changing the variable āinitially_triggered_atā:
Sadly this only works if all delays of your corresponding automations are e.g. 10 min.
But Iāve got one other question:
I would love to use a dynamic delay for the notification. Reason: it makes sense to adjust the opening duration for the windows depending on the outside temperature. So I set up a helper āsensor.dauer_luftenā which has the outputs: 5, 10 or 15 depending on the temperature. But Iām just not able to include this information into the blueprint.
I tried changing the !input variable āduration_issue_stateā in lines 223 and 241 to "{{ states('sensor.dauer_luften') }}". But I realised, that āforā needs something like
minutes: 10
seconds: 5
So I put the variables back where they were and tried to change the selector in the gui to ātemplateā, but the notification wonāt fire. I tried
Hey there, I currently do not have the time to check how to do this myself but from my quick research of the official documentation what you are trying to achieve seems pretty doable:
About your definition of initially_triggered_at. You could just use the value of the variable duration_issue_state in the timedelta object to make that dynamic.
About your sensor value not being in the correct format (that seems to be the problem): maybe these two links can help you:
Is there a recommended path or modification to allow for a quick dismiss to temporarily disable the alert from the notification on iOS? e.g. Itās alerting me the garage is open, but I know I need it open for the next x amount of time, so I suspend the repeat for a period of time?
Hello Malte, thank you for your very useful blueprint. I use it to prevent open windows at low outside temperatures in some rooms. This works almost perfect for me. I only have two open points that I canĀ“t figure out as I am a HA beginner:
I want to be informed about the minutes since the window was opened instead of the time. The message should be like āWindow is open since 15 Minutesā. I found the info that the following should work:
{{ (as_timestamp(now()) - as_timestamp(as_datetime(initially_triggered_at, default))) | timestamp_custom(ā%Mā, false) }}
But there is an error message that I canĀ“t deal with.
The second question is related to the click-url. I donĀ“t want to use this feature so I put noAction into this field. But nevertheless when pressing on the message IĀ“m pushed to the overview of all rooms. How can I disable this feature?
Regards
Thomas
Hello Malte, thanks for this useful blueprint. I tried to use it creating the first automation in my HA.
Unfortunately it throws the error message āTemplate rendered invalid service: notify.mobile_app_SM-A725Fā. It tried it with my second mobile too but got the same error.
Any ideas what the reason can be?
Regards
Hartmut
Hi Malte, thank you for your hint. Replacing dash by underscore solved the issue.
I wasnāt thinking about the service name due to the system tooks the device name automatically. Really good to know that!
Thank you
Hartmut
Iād like to second this! Having channels for the notification is vital to make sure I am aware of them. Being able to eben set them to critical would even improve this!
Thank you very much for this blueprint, itās very useful for my purposes Iām just starting out with HA and maybe Iām making another rookie mistake here:
I want to add a possibility to disable the notification globally. For this I have created a switch as an entity. I also want no notifications to be sent at temperatures above 16 degrees. It looks like this:
If I now flip the switch in the entity for the switch to switch off the notifications, the notifications are still displayed. Am I making a mistake here?
I have combined the conditions with an AND, because they are actually mutually dependent.
Edit: What else I have noticed: If I have already flipped the switch for the notifications, the notifications remain muted. Could it be that the conditions are only checked once when the blueprint is called up and then no longer?
Thatās not what I want. Normally, we should be told to close a window. But sometimes the temperature feels warmer than it is measured. In this case, I would simply like to have the option of temporarily switching off the notification via a switch until the windows have all been closed.
This means that if all the windows are closed and then opened again, the mechanism for the announcements takes effect as normal.
Switching off the automation would only affect the automation for one sensor in this case.
Hi Malte, I am having the same issue here - with repeat option activated.
I have several window contacts in a binary sensor group, but the notification message will list only the first one opened regardless of further windows being opened.
I would llike to get a notification like
āOpen Windows
Kitchen since 11.45
Bathroom since 11.50ā
Obviously the preconfigured message template wonāt achieve that as it is prepared for a single sensor only.
If not feasible I might go with dedicated automations per window.
Still saving efforts
After some more testing I need to correct: the message is containing all open windows, but only one timestamp (of first one opened) is included.
Since you are using the repeat time for any refresh, this conflicts with my intention to receive only rare notifications (when I really should act).
Here is a scenario so you might understand my point:
If I configure repeat time long term (5 min) I would walk to bathroom window, then back in living room learn that I should have closed also kitchen window.