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

any way to get access to the new zigbee ping status on the c8.

1 Like

The external report sounds handy. Sometimes when I get the notification if I just check back a little bit later the device is not showing anymore for whatever reason, so this would let you check that more easily.

Yes this would be handy, I have a TON of devices in this app with 4-5 separate groups depending on the device type.

1 Like

No, this is (intentionally) not stored in the database or accessible as part of the device object.

Why

The explanation from staff previously is that there is generally too much traffic for this to be considered a good idea (presumably expense and size considerations, etc., for the database). If you have more questions about this, I would take them to another topic since it's a platform decision unrelated to any particular app, including this one.

6 Likes

For anyone curious about the first change I mentioned, new reports (with both LAN and cloud options available), I'm ready to share some progress on that. If you want, you can try that out by manually updating your app and following a couple other instructions:

  1. Update the app code: Under Apps Code, update your copy of Device Activity Check by copying/pasting or importing the following code: https://raw.githubusercontent.com/RMoRobert/Hubitat/master/apps/DeviceActivityCheck/deprecated/DeviceActivityCheck2.groovy
  2. Enable OAuth: Select OAuth, select Enable OAuth in App, and then select Update.
  3. Re-initialize the app: Navigate to Apps, open Device Activity Check, and simply select Done at the bottom (repeat if you have multiple instances, though the intent of the app is for you to really only need one...).

If you open the app again, you should now have LAN and cloud report links towards the bottom of the app. LAN is recommended unless you need other access. Either should take you to a report page with the same information as the "View current report" page, except this lives outside the regular app UI (and communicates to it using some HTTP endpoints, hence the need to enable OAuth above). I'm leaving the "old" page available for now, though it may be removed at some point if everyone finds the new pages a good replacement.

I'm still working on the second change I mentioned, separate child apps for each "group," ideally without the need to re-create everything to make in-place upgrades easier, but no updates on that yet. :slight_smile: Just a sort of preview/beta for now in case anyone wants to try!

8 Likes

Has there been any consideration given to activity checking a Konnected I/O system. For example checking if the boards are on the WiFi network every hour? I don't see Konnected hardware in the list of devices to check.

If there was a spare output/input I could pulse the output and monitor the "loopback" input ... but that is "expensive" in terms of cost and I/O utilization and most of my board's I/O are fully utilized.

Any suggestions would be useful.

What detection methods are you using? "Last Activity At" shows literally every device, so there's no reason this should be happening there. If you need a custom attribute, that will depemd on what is implemented. I'm not familiar with how those drivers work.

Thanks for responding so rapidly.

So given I probably don't know what I am talking about ... I think the difference is that the Konnected boards are not actually devices. The boards and the Konnected driver allow "devices" like doors and windows to be seen by Hubitat. So the boards are not shown in Device Activity Check "Select devices to monitor" dialog ... the doors and windows are.

Rick Lithgow happened to mention a solution to my problem in another thread. What I have done is used Hubitat to ping the two boards and I publish a notification based on whether the boards are "pingable."

If this can be done in in Device Activity Check I would still be interested to hear about the method.

@bertabcd1234 Is there any chance of having an Advanced Option that will only run the report if a switch is set, or will not run if a switch is set? Either option would work for me.

I assume you mean regarding the daily schedule? If so, I would suggest using the "switch" or "button" options for the notification instead of a daily schedule, then turn on the switch or push that button, etc. (either likely virtual) based on whatever schedule or other criteria you want. My hope was more intricate needs could use one of these options--the schedule in-app isn't required.

3 Likes

That works!

@bertabcd1234 Now another question. I have a group set up with an interval of three days for "Last Activity At" and want to change it to 1 day. I don't see any way to change it, and would have to delete it and create a new one. It appears that the value group1.intervalD is the value to change, but I see no way to change it. Am I stuck having to recreate this instance?

You're looking too hard. :smiley:

Click/tap into the group (in the regular UI, of course), and you'll get all options, including the ability to change the interval.

1 Like

I'm such an idiot. :flushed: Thanks, Robert.

@bertabcd1234 Thanks for a nice app. I have just installed in. However it has an issue... when I get my daily inactivity notifications in the Hubitat app, they stay for like 3 sec and disappear... not enough time to review.

go in the app on your phone and select notifications to review all prior notifications..

1 Like

Is there anyway to append the activity report to a variable for RM usage? I am trying to use custom notification sound for a specific report as I use pushover for my notifications. Or a clever way to append custom verbiage to the notification?

Would it make sense to setup another instance of the app and then you can send the notification to a different notification device? I think you can setup multiple pushover "devices" if I am not mistaken.

Otherwise, would it work if you pushed the notification to a virtual notification device (that stores it as an attribute)? Then you could grab the attribute from RM.

Here is a link to the Virtual Notification driver I have used before: Getting more out of notifications - #2 by thebearmay

2 Likes

Awesome. I didn't even think of making another pushover device and setting the default sound to a custom selection.

However, the virtual notifications is a fantastic approach. I could utilize this even further for other needs. Thank you, @jtp10181. :raised_hands: