@panhans one Feature Request ![]()
Would be great to have the BP write a human readable log into an Entity for each separate Person? (which can be done today but requires the user to create a trigger template for each in the config yaml)
@panhans one Feature Request ![]()
Would be great to have the BP write a human readable log into an Entity for each separate Person? (which can be done today but requires the user to create a trigger template for each in the config yaml)
has anyone added the ability to this BP to make notifications Persistent or Sticky?
Hi Hans.
Thanks for your blueprint, as said on Ko-fi:-).
I set it up to get a notification, when leaving or entering my home zone, so that I donāt forget to turn on/off the alarm.
This morning my wife left for work, and I got a notification. Whereas I nowhere use her person entity in the automation. Any idea where it goes wrong?
This is the yaml code (my name is Herman, my wifeās name is Karin):
alias: Alarm aan- of uitzetten
description: ""
use_blueprint:
path: panhans/zone_notification_extended.yaml
input:
persons:
- person.herman
zones:
- zone.home
zones_leaving: []
duration:
hours: 0
minutes: 0
seconds: 2
notify_device: 06ddd379fb0294b515746ffa1af97d44
title_arriving: Alarm uitzetten
title_leaving: Alarm aanzetten
critical_notification: false
message_arriving: We zijn terug thuis!
message_leaving: We zijn vertrokken!
Thank you.
Herman (Belgium)
Hey, thanks for your support and for your feedback.
The blueprint / automation uses exactly one trigger:
trigger:
platform: state
entity_id: !input persons
for: !input duration
Did you got a notification with the name of your wife? Are you sure there isnāt a 2nd automation based on this blueprint that triggered the notification?
Could you navigate to your blueprints, hit the three dots menu and click on Show automations using this blueprint.
Yes, I got a notification with the name of my wife, confirming that my wife had left. While I only needed (through this automation) a notification when I myself am leaving/entering the home zone.
Please note the notification contained exactly the same text that I put in your bluepint automation:
Alarm aanzetten
We zijn vertrokken!
So the notification must have come from that automation.
(There were some other blueprints/automations, but they were all disabled. I deleted them now.)
Could you check if you have access to the trace log of this automation run?
Navigate to your automation, click on the three dots menu, click on show trace, select the run of the notification with the arrow buttons on top. Note only the last 5 runs are stored. Then download the trace log using the three dots menu again. You also can download the last 5 trace logs an share them with me, e.g by google drive ect.
Trying to figure it all out, I tried the automation a few times - so the trace for this morning is no longer there. Iāll check later and come back to you. Thanks for helping out!
Received three notifications, out of the blue. I was home all the time. (My wife is driving home, but not yet here.) I will download the traces (json files?). How do I share them?
(10 minutes later: notifications keep coming. My wife is still on the road:-).)
Upload them e.g. here https://rentry.co/, click go and share the link.
I found out the issue: I had my wifes iPad in my person entity, next to my personal iPhone⦠So my personal state switched between home/away all the time.
However, I switched the automation off, since I do get a reminder, but only on screen ā no sound. When in my car, i need the sound, of course. Tried everything, no luck. Thanks anyway.
This is a great blueprint and a core automationText for my home. Thank you for creating it!
It works perfectly for notifications, but I still get ātemplate variable warningā flooding the logs. Any idea what this could be? (I saw a few comments in this thread addressing this issue, but it doesnāt seem to be applicable for my case unless Iām missing something).
Could you share a trace log of an automation run when this happen?
Sorry for the delay!
I think I figured it outā¦I had a script running in the āentering custom actionā (that was brilliantly written by yours truly) that was throwing the error.
@panhans excellent BP, thank you for sharing your work!
anyone know how to insert the triggering person entityās Last Changed Time Stamp, into the Notification?
Love this blueprint, thank you for you work.
One idea you might consider implimenting would be the option of clickAction for the embedded link rather than the Custom button.
Iām using that in message section if you want try :
{{ person }} leave {{ zone }} <br> {{ states ( 'sensor.date_time' ) }}.
yup, Iāve been using something similar (below).
I believe sensor.date_time provides the current system date and time, updated every minute. The template I use below gives the exact date and time of the entity that triggered.
{{ person }} arriving at {{ zone }}
and
{{ (as_timestamp(trigger.to_state.last_changed) | timestamp_custom('%I:%M:%S %p', true)) if (trigger.to_state and trigger.to_state.last_changed) else 'unknown' }}
Hi,
I also want to start (as so many have) with thanks fr making this blueprint! It works nearly perfectly in my case! I really appreciate all of the work that had to have gone into this!
The only small problem for me comes from notifictions being triggered at HA start/boot. I run HA as a VM in UnRAID, and have nightly backups triggered for all of my VMs and Docker containers.
When HA gets started, thereās some sort of path that triggers the notifications for whatever zone people are in - usually at just after midnight, I get pinged with all the notifications that everyone just entered the home zone.
It also occurs when HA is updated and it restarts (not the VM), so notifications happen showing we just entered work/school.
Is there a way to prevent enter/leave triggers from happening say within the first 5 minutes of uptime for HA?
Any other ideas?
TIA!!