Better Blueprint to report when any battery device (Zigbee/Zwave etc) or Zigbee/Zwave SmartSwtich has gone offline

Again thanks for this quick answer, the V18 is fully functional as expected.

Both variables are exposed and allow me to pass both information in the additional actions option.

Well done :sunglasses: i can now easily detect any offline devices like my cat’s GPS or any ZHA entity. I will try your low batterie notification ASAP :smile:

I’ve just use the blueprint in an automation and got the follow result:

:warning:🛜 The following Zigbee devices are unavailable:
Dishwasher
eWeLink SNZB-01P
eWeLink SNZB-03P
IKEA of Sweden TRADFRI remote control
SONOFF ZBMINIL2

The problem is that it does not seem to show “frendly” name of the device I have configured and shows just brand and model (unless I miss something). Might be hard to digure which of my 10 light switches went offline by the brand name of model as they are all the same :upside_down_face:


Figure: example of an offline device

I’d expect it to write “Entrance Motion Sensor (eWeLink SNZB-03P)”.

It also keeps mentioning some “Dishwasher” offline zigbee device that I’ve never had and it does not show up in the list if devices or on the map :thinking:

Will do some debugging later today.

Turns out the original Blueprint was reporting Wi-Fi devices too

Thanks for this blueprint… i mostly have problems with zigbee devices within ZHA, is there a way to show only this offline parts?

Can someone explain in fairly simple terms how I’d extend this blueprint to includes lights? I see mention of it in various places in the thread above as being a possible but I’m a relative novice so would need hand holding.

I had some smart bulbs that should be powered on all the time so would like to know if they go offline.

Thanks in anticipation

hi Ltek, thank you for your updates. I just switched to your blueprint as I could not exclude switches and other devices from the dropdown list.
Thing you could improve also is the list of notify entities, any reason this is not a dropdown list like the exclude devices part?

Keep up the good work!

edit: hmm it seems the “Exclude entities with this Text (optional)” doesn’t seem to work. I tried excluding “Child lock” devices from the list but they still come in the notification. Tried it between and without quotes, no luck.
Another thing is that the first item in the list has no hyphen while all others do get the hyphen when using a different notification service/action and accessing the {{ offline_devices }} variable. Any chance you can fix this?

@RezzZ happy to look at it. I use Text Pattern Exclusions but maybe you found a bug. You may have old code also, I do not use hyphens in the latest version, it uses bullets.
Please post in the thread for the blueprint here… https://community.home-assistant.io/t/battery-report-easy-customize-includes-excludes-to-do-list-notifications-more

ahh thanks. Ill try ou the new blueprint soon!

hmm is that blueprint only for battery devices? I started using your Offline Devices Report by LTek that you mentioned in this thread. Seems a different blueprint?

There is separate BPs for battery reporting… Please see here for all my BPs… Ltek’s gists · GitHub

ok, I checked and I am using the latest version. The offline devices uses hyphens when accessing the {{offline_devices}} variable that I use to send notifications to my ntfy server.
When sending persistant UI notifications I do see a buttet list where the first item has a bullet too.

I found out why the exclude “Child lock” devices did not work. I used the “pretty” sensor name instead of the entity id name (child_lock). So that part is working.

update:
ugh ha doesn’t like me at the moment. I tried to take control of the blueprint and update the file to add the extra hyphen at the start. That worked for my published ntfy message but now the ui notification has a double bullet :rofl:


and ntfy:

So I reverted back, removing the automation and creating a new one, but now the HA persistant message still shows the double bullet :sweat_smile:

I use Google Chrome on Windows, this is what mine looks like. Please note that your screenshot shows the Offline Devices, -not- the Battery Report. My screenshot below shows both so you know what they look like

it seems like the (current?) ha blueprint import module doesn’t import blueprints as is.
It alters the blueprint like removing white lines and linefeeds… Perhaps there is something wrong on HA’s import side… :thinking:

I pasted your raw blueprint from github and now it works for both my ntfy server and persistant messages.

Btw, I like the persistant message too! So thanks for that. The notifications received in my companion app are gone as soon as I click them, sometimes to fast without reading what I clicked :smile:

1 Like