🌐 Zone Notification Extended

Thanks for the fast reply. I will give it a try.

It still fires even I came from home to the zone surrounding home.
Did I messed something up?

custom_conditions:
      - condition: time
        after: "08:00:00"
        before: "21:00:00"
      - condition: template
        value_template: >-
          {{ zone_from != state_attr('zone.home','W-Dorf') and zone_to !=
          state_attr('zone.w_dorf_3km','W-Dorf+3,5km') }}

{{ zone_from != state_attr('zone.home','friendly_name') and zone_to != state_attr('zone.w_dorf_3km','friendly_name') }}

1 Like

So the friendly name should not be the real friendly name?

Nope, state_attr('zone.w_dorf_3km','friendly_name') → this method takes the entity zone.w_dorf_3km and extracts the friendly name. The variables zone_from and zone_to store the friendly_names of the zone you’ve came from or you’ve entered.

You compare the arriving/leaving zone friendly names with the friendly name of your home or zone.w_dorf_3km.

1 Like

Ok, why is this condition true?

Hi, thank you so much for such an awesome blueprint. It’s been working great for my purposes. I just read through this thread and can see a lot of improvements have happened over the last year, and much of my experience has been on the finely tuned current version.

My inquiry: having been learning notifications recently on a project to have an alert related to a timer for our hot tub cover being left open after sanitization I learned about “tags” as an option on notifications. The idea being so that a subsequent notification can replace a previous notification.

I was wondering if there is a way to set a tag that I have overlooked, or if it’s possible to expose the tag option in a future version of the blueprint.

Much gratitude to you.

1 Like

Hi, thanks for your feedback. Just checkout the latest version. I’ve added the tag option. You can also use variables like person or zone to the tag to display the recent activities of a person or a zone.

1 Like

Awesome, you’re welcome and thank you! I’ll check it out. Tag = person is exactly what I was thinking.

I like your overwhelming blueprint!
I appreciate any help on my maybe special use case.

I just want to get a notification if a person enters the zone, which surrounds the home zone, from outside.

I need this to get announcements to have all dogs in the house because the driveway gate will open if the person arrives at home.

Thx in advance

Next try:

{{ trigger.from_state.state != 'home' and trigger.to_state.state != state_attr('zone.w_dorf_3km','friendly_name') }}

Note: This would allow this change: w_dorf_3km → home

Or do you want to block every interaction between this two zones?

1 Like

For this use case I want to block every interaction between this two zones.
It should only trigger if a person enters w_dorf_3km from outside (not_home/absend in German).

Then this should do the trick:

{% set restricted_zones = ['home',state_attr('zone.w_dorf_3km','friendly_name')] %}
{{ (trigger.from_state.state in restricted_zones and trigger.to_state.state in restricted_zones) == false}}
1 Like

It works, thank you very much!

When I change the location through developer mode,
on Android devices messages come through
on iOS devices messages are not delivered, in the logs there is such an error
[homeassistant.components.mobile_app.notify] [apns-collapse-id] header cannot be empty. This message is generated externally to Home Assistant.
If I send test messages through the notify service - messages are delivered normally on both iOS and Android.

Hi, a trace log would be great but the message points to an issue that something is way too long like maybe the notification tag.

Notification tag was empty, I added there some text and now its work! Thank you.

Oh, that’s good and bad in both ways. The good: it works, the bad: recent notification will overwrite old ones.

Could you check if you can get a notification on your iOS device with this service call? Did you also enabled critical notifications?

service: notify.YOUR_SERVICE_HERE
data:
  message: Test
  title: Test
  data:
    tag: "{{ none }}"

Thanks for this Blueprint
I am trying to configure the automation but I am getting error in between the traces as below

what could be the reason . I am using Andriod Phone

second question: are these field mandatory to be filled ?

Suggestion for improvment:
can you add one filed to select Alexa echo to announce the notification.

Thanks

Did you trigger you automation manually? If yes, see the FAQ in the initial post.

No, they are already filled with defaults.

Here in the thread is an example for this. You can simply add a custom action and copy the notification text into the fields of the alexa service call.