After a restart of HA the error disappears, although the notifications are not being sent out or recieved on my iPhone.
@panhans:
The logbook of HA itself (inside system => logbook) says:
Logger: homeassistant.helpers.template
Bron: helpers/template.py:2613
Eerst voorgekomen: 11:14:17 (1 gebeurtenissen)
Laatst gelogd: 11:14:17
Template variable warning: 'tag' is undefined when rendering '{{ iif(tag != '', tag, 'zne'+(range(1, 99999) | random | string)) }}'
And 1 second after that the following error is there in the system logbook:
Logger: homeassistant.components.mobile_app.notify
Bron: components/mobile_app/notify.py:199
integratie: Mobiele app (documentatie, problemen)
Eerst voorgekomen: 11:14:17 (2 gebeurtenissen)
Laatst gelogd: 11:14:18
[apns-collapse-id] header cannot be empty. This message is generated externally to Home Assistant.
Hello!! I love this notification setup, I just had a quick question. I am using it to track two people, and I would like to just have one notification per person, that replace each when the location is updated. Iāve tried using āpersonā as the tag but it doesnāt appear to work as I was hoping.
the blueprint is worth its weight in gold and works great. However, there is one small thing that I am missing or I donāt know how it works exactly. Can I, or rather how can I add a tag to the notification when arriving or leaving the zone?
Normally this is done using the data field and then tag: xxx
Then it is possible to delete these messages automatically, for example after a certain time.
Ok last question , I am very close to having this set up perfectly. I am trying to use a simple custom condition using input boolean to have certain zones only trigger once per day. I am having trouble getting it working though , itās not preventing the notification. Here is my custom conditionā¦
condition: template
value_template: >-
{% if zone == āzone.huskyā and
is_state(āinput_boolean.husky_notifiedā, āonā) %}
false
{% else %}
true
{% endif %}
Both the zone and boolean are referenced correctly
Yeah thatās what Iām trying exactly. For some reason I cant get it to block the notification even with your template thoughā¦seems pretty straightforward too. Maybe I am trying to do this the wrong way
alias: Zone Notification Extended
description: ""
use_blueprint:
path: panhans/zone_notification_extended.yaml
input:
notify_group: all_devices
persons:
- person.travis
- person.wife
zones_leaving:
- zone.home
- zone.local
- zone.work
zones:
- zone.home
- zone.fred_meyer
- zone.husky
- zone.local
- zone.gpa
- zone.pgate
- zone.salon
- zone.safeway
- zone.sisters
- zone.school
custom_conditions: []
title_arriving: "{{ person }}"
message_arriving: "{{ person }} is at {{ zone }}."
title_leaving: "{{ person }}"
message_leaving: "{{ person }} left {{ zone }}."
tag: zne-{{person}}
critical_notification: true
custom_conditions_arriving:
- condition: template
value_template: >-
{{ not (state_attr('zone.husky','friendly_name') == zone and
is_state('input_boolean.husky_notified', 'on')) }}
I have moved the template from custom conditions to arriving conditions and back a few times testing it. Neither way results in the notification not being sent. I have separate automations for triggering and resetting my boolean and theyāre working properly.
I am using the Life360 integration for presence. It provides the state ādrivingā. Problem is, this integration sees ādrivingā as a zone, so it is sending me messages that the person āhas arrived at drivingā. I donāt want that. How can I exclude ādrivingā as a zone in the automation?
First off, thank you so much for this blueprint. I am very new to Home Assistant in general, and even newer to the concept of blueprints.
Iāve read through the entire ZNE topic/thread. Would it be possible to elaborate at a basic level the Notification Group setting? I looked at the ZNE FAQ and didnāt find any beginner level information on being able to send a notification to both the HA Personās phone, and the spouse of the HA Personās phone.
When I was working, many things were more intuitively obvious to me. Having been retired for over a decade, I sadly am finding less and less intuitively obvious. If someone were willing to be more āstep by stepā I would be quite appreciative. I hope someday I will get to the state where HA things are more obvious to me but unfortunately for me, (and for my wifeās andriod notifications) I am not there yet.
Thank you again for the work youāve done on the blueprint, and the time youāve spent reading this.
Hi gar.nelson,
Welcome to the forum. Letās see if I can be of any assistance.
Your best bet would be to look at the Blueprints Exchange - Home Assistant Community category and find a blueprint that one of the community members has written that will help you with this. I believe there are several. I have one that doesnāt do exactly that but similar as well.
Thank you for your response. As I wrote earlier, Iām specifically trying to get Zome Notification Extended notifications to go to both my phone, and my wifeās phone. That is why I commented in this Zone Notification Extended comment area. My guess is that it would be a fairly common procedure to get notifications to two parties living in the same household, and thought it might appear as part of the FAQ. I know there is some sort of edit to a yaml file that I would guess many, many, many people have already doneāI just donāt āgetā yaml files yet. Thatās why I posted here, specifically looking for a solution to a shortcoming I have with Zone Notification Extended notifications specifically due to my current lack of Home Assistant yaml programming knowledge.
Not yet. I learn more every day, but I havenāt learned that yet. I havenāt given up though, so Iāll get it at some point and my phone will not be the only notification device.
Thank you for an outstanding blueprint. I am trying to apply waze travel time but for the sensor in your example wont work since each zone has it own sensor to home. I would appreciate if you can explain how to achieve that with an example code.