Notify Entering and/or Leaving Zone

Hi,
Being new to HA, this is my first automation. That said, I need som help, and wonder if someone here can help. I imported the blueprint, and created some automations from, using zones I created and my familys devices. But when I click Run, I get no notification.

I tried once with the built-in blueprint, for leaving zones. That notifications reaches me just fine. Should I make any adjustments for this to work in the same way? Have I misconfigured something? I get no error message, in HA it looks like tha notifications has gone through just fine.

I think that is intended behaviour. When I click run on the automation, I don’t get a notification either.
I do get an warning in the log, since when the automation is run without a trigger, there is no from_state.

When I manually change the state of the person entity in Developer Tools -> States, I do get a notification. Can you try that as well?

That works for me too. I set the state to “away” and got a notification. Today, however, when I had some actual movment between zones, I didn´t. Can I somehow try this in the same way, to trigger a notification both on leaving the current state of “home”, and entering another zone?

Can you see in the history of your person entity if it actually changed stat?

Yes, in history I can see the switched zones. Again this morning, I got a notification on a person entity (my daughter) leaving Home, but I didn´t get a notification for entering a new zone (school). Again, in history it shows, and in the current state, it also shows the correct zone.

Both my kids just came home from school. I got notifications for both entering the Home zone. But nothing for leaving the school zone.
So, for Home everything seems ok, but for no other zones. Thoughts?

I got a notification both when leaving and entering my home zone today. I’ve now created a notification at another zone and will see tomorrow if it works. When I test that zone with the developer tools it gives me notifications as well.

Do you have any entries in the log about the blueprint?

Also, when you change the state of your person from home to other_zone, do you get two notifications? (Assuming you have two automations set up, one for home, and one for other_zone)

I am not exactly sure what you mean by:

But yes, i have entries i the log (looking in History for the person entity) that they arrived in the school zone this morning. And also when they arrived at home in the afternoon.
Looking in the Log book though, I don´t have anything about anyone leaving any zone. Only about entities being “detected at zoneName”.

About changing zones in the dev tools. I can´t get that to work. I looked up the names that the blueprint uses (zone.zone_name) and tried with that, but it only notified about leaving Home, not arriving in another zone. I also tried using the name I gave the zone (omitting the zone. ), but same thing. Am I doing it wrong?
I apologize, I´m at at the beginning of what I´m suspecting will be something of a learning experience.

With log I mean the error logs at config/logs.

When changing the state in developer tools, you just need the last part. So if the zone is zone.school just give the person the state school.

And just to confirm, you have an automation for each person/zone combination that you want notifications for?

I actually don´t have the logs directory in config. I do, however, have the home-assistant.log directly under config. Can´t find anything related there.

I tried changing zones in dev tools with just the last part. No difference. In Overview, the state shows on the person, but not as the zone is named in the UI, but just as I typed it in dev tools, som that doesn´t look quite right either. (underscore instead of space, no capital letter).

Yes, I have one automation, created from your blueprint, per person per zone. With notification for both entering and leaving enabled, and to the same device, which is my Iphone HA app.

Great…. But my hassio does this by default :roll_eyes: sending notifications to whoever enters or leaves a zone…. Annoying as hell!!! And no way to remove those notifications? :face_with_raised_eyebrow: I have seen a post from a hassio dev, that is will be fixed…… 7 years ago!!! So, am I missing something or this still cannot be turned off?

Hello @Sjorsa . I get this message when I try to use your blueprint.
image
Any help will be appreciated.

I do not understand how to use the notify_leaving_zone blueprint to notify when entering the zone. The default install only notifies when leaving. Is there another blueprint for arriving?

When you use this blueprint there are toggles at the bottom both for entering and leaving