Feature request: Device health

throwing one more out ... rooms manager also supports monitoring device "health" for all devices specified in settings for both rooms manager and rooms child. going to release that feature this weekend:

Eric,

[UPDATE] Nevermind. I found it in your Hubitat Github repository. It has already found two of my devices that had issues which I have now corrected.

Just curious if you’ve posted a Hubitat version of your Device Monitor app yet?

Thanks,
Dan

[UPDATE] For others looking for a simple App to monitor your devices to see if they've gone inactive or have low battery levels, @ericm's Device Monitor App is very convenient.

11 Likes

I installed this app and it seems to work fine EXCEPT I am not getting a text alert. I formatted my phone number as +15553331111 like Hubitat likes it. Do I format another way?

Not sure about SMS. I am using it with Pushover and it works great.

@ogiewon how did you get it working with pushover? I can't seem to find how to setup pushover, Hubitat posts seem to say it has native support?

Thanks,

@ericm's Device Monitor App works great with Pushover. In the Device Monitor 'Settings' page, under 'Send a push notification?', simply select your Pushover Device.

To set up Pushover, you can follow my instructions from when I originally wrote the Pushover Driver. No need to use the custom driver now that Hubitat has included it in the firmware.

1 Like

Thanks. I was missing the step of manually adding a new "Virtual Device" :slight_smile:

1 Like

Is there a recommended time for what is considered "Inactive". I guess it will boil down to how often I want to receive notifications - so just wondering what other users have setup.

Hi @ericm I've installed your app, but seems that it's looking at last event received instead of latest activity, do you think that it's possible to add an option for this? See below some screenshots.

Device monitor reports that "Presa taverna" device is inactive since 99 hours:

But last activity for "Presa taverna" was around 7 hours ago:

For reference, latest event was around 99 hours ago:

Thanks

Since this has been an ongoing issue, I've created another option... :grin::sunglasses::grin:

2 Likes

Seems that it has the same issue:

I believe this is a bug in the last activity method pulling the wrong value. I had reported it to support and hopefully will be fixed in a future update to pull the last activity info instead of the last event info.

1 Like

Probably you are right because also @bptworld one is reporting the same.

Yes, this is a known issue. See the end of this thread:

I've seen a "ACTIVE/INACTIVE" option, but it's not clear what it changes, maybe meanwhile getlastactivity is fixed this option (or a new one) could be used and if active, independently from timing, devices will be reported considering only ACTIVE/INACTIVE status?

A device is marked as inactive if there hasn’t been an event in the last 24hrs. Essentially you get the same info using either method.

Just because it’s marked as inactive though doesn’t mean it’s offline. If I don’t flick on my dining room light for a day it becomes inactive but is still fully function. It’s a bit confusing.

No, active/inactive is not based on last event but on last activity, as you can see in above screenshot the device "presa taverna" is active and with latest activity today, despite latest event is from few days ago. Probably your light doesn't report anything else than on/off so last activity (and so the state) it's the same of last event.

If it's not possible to get the latest activity now, I think active/inactive seems more reliable.

You are correct. Got the terms mixed up as I was messing around in code.

It also depends on how the driver was written. I've been throwing code in my driver to get these values updated so I have a true representation of when my device goes offline. I also wrote specific checks for the xiaomi devices as they have a custom lastcheckin attribute you can pull from. These were the most troublesome devices for me at one point.

Either way, it will probably be fixed with the next update. The Hubitat devs are good like that with fixing issues. Once they do I can clean up a bunch of my code.

Use the two settings shown and you will only get alerts if a device becomes INACTIVE regardless of what getLastActivity returns. I think this is what you want.

Yes, that's what I was looking for. I'll give it a try!
Thank you