šŸŒ Zone Notification Extended

Sry, I totally missed your message. Is that still an issue? I just had a look into the code and I think this is fixed now.

Try zne-{{person}} for the tag. There is a typo in the description.

Hi,

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.

Many thanks in advance.

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

Try this:

{{ not (state_attr('zone.husky','friendly_name') == zone and is_state('input_boolean.husky_notified', 'on')) }}

Is it correct that you want to block the notification if the input boolean is on? If not just delete the not at the beginning of the expression.

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

Could you share your automation configuration in yaml?

Sure!

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 didnā€™t change anything but it seems like it started working now :person_shrugging:

Edit: still not working

Ok, try this. Works for me:

{{ not (state_attr('zone.husky','friendly_name') | trim == zone_to | trim and is_state('input_boolean.husky_notified', 'on')) }}

Hi, nice work there.
One suggestion though: Could you add option for android auto?

car_ui: true/false

It would be nice to see notification on my car display if Iā€™m near store and have items in shopping list. This works fine be me on phone.

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.

If you are looking for tips on other things, The Home Assistant Cookbook - Index might be able to help there.

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.

Yeah youā€™ll need to create a notification group in your configuration.yaml file. Did you get it figured out?

Not yet. I learn more every day, but I havenā€™t learned that yet. :slight_smile: 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.

I didnā€™t use waze travel time. But it seems there are several sensors for the one integration that directs to the home zone?

I am not aware of that! But I would appreciate it if anyone can share their experience with waze using this blueprint.

@panhans First of all big thanks for the blueprint.

I set ip up so when I arrive home that he send me a notification, so far so good it worked fine. But I want to add another condition before the action part should be triggered, I donā€™t want to receive a notification outside the house, I want to just receive it when I open the door, and here comes the problem, if I add a Custom Condition like this:

condition: state
entity_id: binary_sensor.maximinos_door_sensor
state: "on"

when it detects that Iā€™m home, the door sensor is not open yet, so it returns false and donā€™t send the notification. Is it possible to do what I want?

Thanks.