[RELEASE] Hub Information Driver v3

Agreed, but I was addressing an issue that has apparently gone on for many months, such that a known uncorrupted backup may not exist.

1 Like

Good point

I'm having trouble with getting the Dashboard tiles to populate with the attributes. I've seen other posters who are able to show some or all of their chosen attributes on one tile. Although I can view that data on the device page . . .
Screenshot 2023-06-09 014310

. . . I can't get any or all of the attributes to show on a Dashboard tile. Here's the list of attributes I see, but when I choose one, the tile shows "Please select an attribute" rather than showing the data.

These are my current settings on the device page . . .
Screenshot 2023-06-09 020444

. . . but I've tried turning these on or off and then re-saving the device. I've also tried Configure, Initialize, and Refresh.

What am I missing? Thanks in advance.

Pick the html attribute on the Tile creation / edit dialog in the dashboard, two thirds of the way down the drop-down list you showed.

Basically, the Current Staite (attributes) you see on the Device Edit page are the one's you get access to in the tile creation. So if you see what you want is one of those attributes, that is the one you want to pick for the tile. More so some years ago I did find occassionally that the attribute selection would sometimes not stick, and I would need to go back into the tile setup and select it again. Not sure if that is still a thing or even your issue.

Below is one I prepared earlier (1 minute ago :slight_smile: ). I added the device to the dashboard setup, turned on the html preference setting like you showed, hit configure, then did the tile setup on the dashboard.

image

2 Likes

This driver has been extremely valuable, my many thanks for writing it.

5 Likes

Got it. Couldn't follow the reboot() action -- now see it as an actuator. Thanks for quick response.

Have been running multiple C-7s for several years and just now getting frequent low memory warnings. Guess I need to be proactive and reboot on a weekly basis, or upon low freeMemory.

1 Like

I have been using Hub Information Driver for quite some time and it is very helpful.
However, today I have noticed that one of my hubs stopped creating HTML files.

I have rebooted, Repaired HPM and enable/disable feature, but I still get the null value.

This is what I'm getting from the log files

Thank you for your help and creating this great driver.

Check the File Manager and make sure that the file you selected for HTML template is there. If it isn't, the normal default is at https://raw.githubusercontent.com/thebearmay/hubitat/main/hubInfoTemplate.res

4 Likes

I just checked the HTML file and the res file are both there. Should I delete one of them and allow it to recreate the HTML?

@thebearmay Thank you for your help. The res file was corrupted. I wrote it with your link uploaded and everything looks good now. Thank you.

5 Likes

C8 version 2.3.5.152

@thebearmay - I've just noticed that the free memory has stopped updating on my Hub Info Driver Device. It was working previously. Both the html and the current states are showing 328380KB, however the actual value from http://hub_IP/hub/advanced/freeOSMemoryHistory is 285916 (looking at that page it hasn't been 328000 for some days).

Is there anything I can check? Free Memory Polling is set to Queue 1 and Queue 1 poll time is 5 minutes. In the 'events' tab if I go back I'm seeing plenty of 'lastPoll' messages for 'poll2' and 'poll3' but nothing for 'poll1'. In the image below the error shown regarding 'invalid data' corresponds with the startup after updating from 2.3.5.146 to 2.3.5.152. Could that update have broken anything? Thanks

Check to see if there is a scheduled job at the bottom of the driver for poll1, if not click the Refresh button and see if it kicks it back off.

1 Like

I never thought to look there - it was listed as status pending but with no 'next run time':

However after clicking the refresh button it's scheduled it:

I'll make a point to check that table after next reboot or update. Thanks.

Never seen that happen before, but good to hear it's working again.

1 Like

Could the invalid data warning stop the rescheduling of the poll somehow? From the log screenshot? (Like @johnwill1 asked about)

If it gets to the point that it's created the scheduled job entry it's already past the warning message. Not sure how you create a scheduled job without a date/time, almost like it stared to fire and got hung up.

I briefly thought the "memory leak" was resolved and it was going to stay above 300000 permanently :rofl:

True, it is strange

Just in case the time stamps help @thebearmay - the below shows the error was first, followed by system start 12 secs later, then Hub info initialised 7 seconds later:

OK, I must be blind or stupid (more likely the latter). I've looked through everything and can't find how to do this.

I'm trying to use it in a rule machine rule for my UPS monitoring (NUT) to shut down the hub on low battery.