🌐 Zone Notification Extended

That’s bad, I am sure you have backups? Get rid of that Pi for a NUC, best thing I ever did.

No faults and colour is working great, I only have it set up for one person so will add a few more and report back asap.

1 Like

Thanks for your feedback.

Yes, I purchased a nuc like mini-pc with an intel n100 (TDP: 6 Watts). I am I little courious about it. :smiley:

Mine is on a celeron nuc with 4gb ram and 128gb ssd and has been solid since (been running about 3 yrs now), the re-use market is great. I also now have a Lenovo Thinkcentre i5 running proxmox for a homelab with 2 x nas servers for my media etc. You won’t look back.

As for the blueprint, excellent thank you, working as expected.

1 Like

Hi. Still kind of new to HA and just discovered your blueprint. Looks great. However, I was not able to test is, with your instructions (set status Karin from not_home to zone.sint_augustinus).
This is how it looks in my HA:

Thx for your feedback. Greetings from Belgium.

1 Like

Hey! Thanks for your feedback! Just set it to the friendly name. Not the entity id zone.sint_augustinus but the human readable name you gave.

That was quick, Hans. Many thanks.
Zones are now:
zones:

  • Sint-Vincentius
  • Sint-Augustinus
    Status person.karin: zone.sint_augustinus

Still no luck with the test.
(Strange that I had to change the zone into the friendly name. In the many examples you give throughout the posts/replies, you never mentioned this.)

1 Like

Can you just provide your trace log after changing the state of the person?

  1. Navigate to your automation
  2. Klick the 3 dots menu than open your trace
  3. Klick 3 dots menu again, download trace
  4. post it for example here and share it with me :wink:

Hi panhans,
That would be:

Many thanks.

Update:
Thinking I may have misunderstood, I change the status of person.karin into Sint-Augustinus (using the friendly name). And set the zone back to the entity_id in your blueprint. I’ll check that:-).
After trying: no good either. This is the related trace.

Sorry for the trouble.

(Thought I would think your UI is so convenient that you miss. Where it refers to the zone, the UI presents the entity id, not the friendly name.)

There is something wrong with your zones. Seems they dont have friendly names.

Check them in your developer options. Did you define them over ui (map) or yaml? If yaml then add a friendly_name.

Here is how it looks when you specified in using the build in map:

That works. Thank you so much. Can I buy you a coffee?

Wanted to show off to my wife and it didn’t work.
Let me summarize your feedback:

  • I need to give a friendly name to the zones
  • in the states attributes the yaml is now:
editable: true
id: karin
latitude: 27.140311910796107
longitude: 33.83025689053706
gps_accuracy: 8.690756394656912
source: device_tracker.karin_iphone
user_id: 536573ee05f84290819db1e842dc51e9
device_trackers:
  - device_tracker.karin_iphone
friendly_name: Karin

Friendly name in the code being my wifes name. Then I get this error:

Executed: 21 oktober 2023 om 17:17:10
Error: UndefinedError: ‘dict object’ has no attribute ‘entity_id’

Hey, here is how you edit/add zones: Zone - Home Assistant

In the developer menu you can check your zones by filtering with “zone.”

Or just have a look on your map (you can find it in the menu bar).

Add your zones and persons you want using this blueprint to your automation.

Once you did this. Everything is setup.

For testing:

  1. Pick a zone name
  2. open developer settings
  3. filter and click the observed person
  4. Set the state of the person to the zone name

Explanation: If you enter a zone in real life the state of the person will be set to the friendly name of the zone. That will trigger the automation and the notification. If you have trouble please share your trace log again. :slight_smile:

I’m trying but I don’t see any mistakes.
— Person is added: person.karin with friendly name Karin
— zones are added: zone.sint-augustinus with friendly name Sint-Augustinus
— set state of person.karin/Karin to Sint-Augustinus (see screenshot)

This is the status code:

latitude: 51.17459973293442
longitude: 4.417934383994718
radius: 139.53221380348157
passive: false
persons:
  - person.karin
editable: true
icon: mdi:map-marker
friendly_name: Karin

The automation is set to send a notification when my wife enters or leaves that zone.

Yaml config is checked and restarted.

This is the code again.

(Two coffees?)

1 Like

Could you double check the trace log again? It’s cut off. (select all text → ctrl/cmd + A (if you don’t know otherwise: sorry :smiley: ))

This should be it. Looks the same, though.

Oh, sry. Seems Home Assistant has a bug. It cut offs the log when converting the color for notification. Will see if I could fix this with a test version of the blueprint.

Ok. And that’s why the automation doesn’t run? Or does this bug only affect the log?

For me the blueprint works fawlessly. Just want to figure out whats wrong with your configuration or maybe there is a unknown bug in my blueprint.

This version should generate a complete log. Coloring for notificatons don’t work with this one. I will open an issue in the home assistant repository. For some reason trace logs will cut off if there is a hashtag in a string. Everything after is handles like a comment.

Please try this version and share the trace again, thank you! :smiley:

This should be it: