šŸŒ Zone Notification Extended

:globe_with_meridians: ZONE NOTIFICATION EXTENDED :globe_with_meridians:

:email: notification when a person enters / leaves a zone

:busts_in_silhouette: define multiple persons in a single automation

:globe_with_meridians: define multiple zones in a single automation

:clapper: custom action when a person enters /leaves a zone

:control_knobs: modify your notifications in color, channel, group, ect.

:mobile_phone_off: enable / disable notifications easily

:x: custom condition for blocking / allowing notifications and actions

:earth_americas: notification button support to open an URL, e.g. shopping list

Latest version: 3.5.3


Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.

ko-fi

If you find bugs or if you have ideas for improvements let me know!

My blueprints
Advanced Heating Control
Scene based theatre mode
Simple scene toggle
Yet not another door/window/sensor open warning notification with auto close
Zone notification extended
More intelligent vaccum robot scheduling

14 Likes

When I try running this I get
UndefinedError: 'dict object' has no attribute 'entity_id'

Did you execute the action manually? Every person has an entity_id. The only trigger entities which are allowed are persons. If you want to test your automation you can change the state in the developer options of the observed persons.

I have an issue with this as well. If I manually change the state of the person entity from zone to zone, it works as intended, but it breaks if there is a ā€œnot_homeā€ state in-between. For example, I get this error when traveling from ā€œnot_homeā€ to ā€œhomeā€:

UndefinedError: ā€˜Noneā€™ has no attribute ā€˜attributesā€™

2 Likes

Thanks for your feedback. I will fix it these days, hopefully this evening!

1 Like

Iā€™ve updated the blueprint. Just check it out again. :wink:

Fantastic! That worked!

I found one other quirk. The blueprint doesnā€™t recognize zones with friendly names that have spaces.

For example:
Zone: example_zone_one
Friendly Name: Example Zone One

The blueprint ignores this zone and no actions occur. If I manually set the person entity to ā€œexample_zone_oneā€ it works, but that is not how HA handles it, apparently.

TL;DR is that the blueprint only recognizes single-word zones.

Still, this is soooo much better than making dozens of automations. Great work!

1 Like

Thanks for your feedback again. Check out the new version. The problem should be fixed.

This is working for all the zones I have tested, except for Home.

For some reason HA does NOT use the friendly name for Home, it uses the lowercase ā€œhome.ā€

1 Like

Thank you very much for your testing ambitions. I wish I could provide more stable code based on unit tests.
The zone handling in person entities especially the home zone is a little bit inconsistent. Iā€™ve updated the blueprint again. Hopefully it works now as expected. Feel free to give feedback again. :slight_smile:

Hi, Can you add manufl action to it? Not just notify. I would like to run for example script or tts instead of notify.

1 Like

Check out the new version. Now you can add custom actions.

Hello Panhans,
very cool blueprint!! May I make a suggestion? The GPS on my wifeā€™s mobile gets very erratic and enters and leaves ā€œthe Zoneā€ very often, even though the phone has not moved. At night this is really a pain, as the sleep tracker on her wrist keeps vibrating. So I previously used a time window from 06-22 hours for notification. Is it possible to implement that with your blueprint?
Thanks again for your work,
Robert from Mannheim, Germany

1 Like

Hi Robert,

there are several ways to solve that problem:

  1. toggling the automation itself (not quite elegant)
  2. add a binary entity to the condition
  3. two fields for defining a time window
  4. scheduler (helper) ā†’ more flexible

But I would wait until the next release (tomorrow). Blueprints will get a condition selector. So you will be able to set conditions by your self. :wink:

I will have a look into when its released!

Cool, looking forward to your next release!!!

While you are ā€œin thereā€, would it be a lot of work, to notify multiple devices?

Regards

1 Like

There seems to be a bug in the blueprint. Sylvia is no where close to IdAW 104, so she could not actually be entering it. Sorry for the terrible picture, canā€™t take a screen shot of the message screen on my S23.

Or is OwnTracks fooling with me?

Hey, I think I donā€™t understand the problem.

The blueprint is just based on the state of person entities. If the state changes a notification will be fired. I just use that blueprint for geo locations.

Your history shows Sylvia entered ldAW 104. So a notification will be fired if you configured your automation for that location. But if she never entered that location your integration that sets the state for her is fooling you. :wink:

That is what I am thinking, OwnTracks is fooling with me / us!

ā€œBlueprints will get a condition selectorā€, is that implemented already?

Right now! Just update the blueprint and you can add your custom conditions in order to block the notification for your purpose.

Cool, now if I could only figure out, how the ā€œgroupā€ thingy would work here. I want to notify my wifeā€™s and my device. New to this stuff and just can not figure it out.

Lieben GruƟ