[RELEASE] Device Activity Check - Get notifications for "inactive" devices

Looks.like it to me

Looks like it, thanks! I assume you've verified that refresh() is actually being called on the devices? If so, something must be wrong with my estimated delay time calculation. If you feel like it, after about line 445 you could add a line like log.trace "waitTime = $waitTime" to see what it's returning (you'll probably see that a couple times in the logs--that would be normal and doesn't mean it's getting scheduled twice).

Or I could just give up on these estimates and let the user provide a wait time, a tempting option. :slight_smile:

1 Like

A huge THANK YOU Robert for making this.

I just installed it and it is working as a charm. Only improvement suggestion would be to add the possibility to have the same devices in a dashboard (red/green)... But I can easily live with the current.

Thx...

Firstly thanks for the useful app, @bertabcd1234! I´ 'm using it to track offline devices on a tile, but if the status of the devices are ok the tile remains empty.

Is there a way to show something, like "Everything is OK" instead of an empty tile when there isn´t a notification, or to send an alternative notification with a predefined text when the result of the verification is empty?

I'm not sure how you're using it with Dashboard, as I do not have such functionality built in. I suppose it could work if you're using a custom attribute tile with the notification text as the custom attribute, but it never sends a blank notification; it will just skip it if there is nothing to send.

So ... I guess I'd need to know more. :slight_smile:

I´m using the Notification Tile Driver posted by @thebearmay at Getting more out of notifications - #2 by thebearmay. It create a virtual device to receive notifications and display it in a tile, I find it very useful.

This is the result:

The question is that when there isn´t a notification because all the monitored devices are ok, the tile stays empty, so I thought that an alternative text when the query returns zero problematic devices would be great. Something like "Everything is fine!"

Hmm, so I'm not familiar with that driver, but it might be possible to supplement it with a rule or custom app that just detects blank text and replaces it with whatever you want.

It's possible I can add something in a future version to always send some text, even if all is OK, but no guarantees on if or when that would be.

1 Like

Yes, I think it may be done through RM: if there isn´t one notification, the rule send another...

Anyway, thanks not only for the useful app, but also for the fast response!

Several questions.
My 85 year old dad has a hub and I have a hub, I setup my phone on his hub and if I was signed into the app with his account, I DID get the notification, however if I was signed into my hub I do not get the notification.
Q1. Is there a way in this case to get the notification when signed into my account?
Q2.Could you add an option to skip the date time missing for each device.... so if you had 3 devices missing, just notify "kitchen light, garage light, bathroom light" (skipping all the date/time) which is really extra noise.
Q3.Any chance the notification could be to an email address...this would make it better to get an email for my dads hub and my hub.... i have several gmail filters that forward to text so I could get email and text.
Thanks for a great app, back when i had to rely on battery reports it was a mess.

The Hubitat mobile app can only be signed in to one account and be associated with one hub at a time. To get notifications from multiple huhs, you'll need either another solution (Pushover, etc.) or to share the notification device between multiple hubs, possibly with something like HubConnect.

Building in email functionality directly is not possible, or at least not something that is easily done or I'd be interested in trying. However, there are at least a couple community options you can use for email, so if you're able to find one and it can use the same command as a device notification, you can just use that with this or any app.

I'm not sure if I'll consider removing date/time; keep in mind that there are various options and time is only one, and I personally find it helpful to know why a specific devce us in the list. There are some options that can format this differently already if that's helpful, though.

I second the idea of using pushover. It has a one time cost and I believe has a limit of 1000 notifications per month. There is a community driver that extends its configurability and it can still push notifications even when the phone is in silent or sleep modes.

2 Likes

All Pushover users can send notifications to their own devices or to any other user's devices through our API, E-mail Gateway, or any Pushover-enabled app or service. Each user can send up to 10,000 messages per month for free. Users needing to send larger amounts of notifications can easily upgrade sending capacity through our website.

3 Likes

Thank you for the correction.

1 Like

I think the free version has the limited amount of messages.

Been using Device Activity Check for a long while (thank you for it) using HEmail app to get a full report from two hubs daily.

Recently got a new phone and switched the communication path to the built-in HE notifications mechanism. Now when these Device Activity notifications flash up on the phone I get two lines with no apparent means to expand on what I know to me a little longer list of devices.

This is likely going to get a " welcome to the world of HE notifications on iPhone " response...but before I go back to using HEmail to get this routed to an sms email in order to "see it all" I thought I'd ask if there's something I don't have set right. Even when I use the HE App on the phone to look at the last 20 notifications I don't see a means to get the full DA Check List.

Thanks in advance for responding to something everybody else probably already knows about.

If you're talking about the notification preview, this is more of an iOS question than anything Hubitat-specific, but it's been discussed before, notably in the posts around here in this thread:

Or, since you mentioned iPhone: just a press-and-hold on the notification preview (e.g., on the lock screen or banner from the OS) should expand to the full text, or at least as much as can fit on your screen.

However, in the Hubitat app itself: apparently, Android uses can press and hold on the notification text in Tools > Notifications to see the full thing, with this place providing a history of the last several notifications. That part seems to be broken. I think it was informally reported here a while back but doesn't appear to have been addressed.

Much obliged, for the reply & discussion references. The iOS stuff is new ground for me.

I get the following on one of my C7 hubs on platform 2.3.2.127 when I try to manually run the Device Activity Check:

Logs show the following:

@bertabcd1234, any recommendations? I’m thinking of uninstalling and reinstalling unless there are other steps that could be tried.

1 Like

I recently saw this myself on 2.3.2 and suspect it might be related to a change in the update. Unfortunately, like you, there is nothing in the logs for me to actually see where the error is, so I'll have to do some guessing. A protect for this weekend, maybe. :slight_smile: FWIW, "regular" notifications still work for me.

3 Likes

Same error here. Uninstall and reinstall didn't solve the problem.

1 Like