[RELEASE] Hub Information Driver

That's your choice. Others of us may like to automatically update our hubs based on rules related to the latest update version, if it has remained unchanged for several days, etc.

i was looking at integrating the new fw update stuff with my own modified version..

there is a typo/bug in your code

you call the new input paramter here

input("fwUpdatePollRate","number", title:"Poll rate (in seconds) for FW Update Check (Default:6000, Disable:0):", defaultValue:6000, submitOnChange:true)
}

fwUpdatePollRate

but reference it as a differnt name elsewhere fwUpdateCheckPollRate

if(fwUpdateCheckPollRate == null)
device.updateSetting("fwUpdateCheckPollRate",[value:6000,type:"number"])
if(fwUpdatePollRate > 0 ) updateCheck()
}

3 Likes

Thanks, I'll get that corrected.

4 Likes

For those that do not want to install your new app to notify here is a rule machine 5.1 rule to do the same.. the trigger is custom attribute. You cannot use notification app as you know as that does not support custom attributes.

1 Like

Not that I don't appreciate your work.. I just need finer control over the contents of the html attribute to have it display what I want and fit into the hubigraph tile I have on my dashboard.

Not a problem, customization of the output (along with the desire to combine multiple hubs into one output) is one of the reasons I wrote

I don't believe there is a one size fits all. Target is to try and hit the sweet spot for 80-85%, and then help those that want a more custom solution.

1 Like

To paraphrase The Beatles “Hold my hand”

Remember, I am an old fart. How the sam hill (sorry to any Sams here) do I use this? Read almost every post, and now I feel like I missed a few days of school.

This is a driver, so it needs to be associated with a device. Which one?

No chuckling please. This smart stuff is really stretching my capability.

It’s a virtual device driver, i.e. it is the device it defines.

  1. Install device driver

  2. Create a virtual device.

  3. Assign it a name and then at the drop down list where you select the device driver use the Hub information driver you installed.

  4. This device then becomes available for dashboards, RM, etc. For instance you could then put the Hub temp on a dashboard, just as you would put the temp of a temp sensor on a dashboard.

5 Likes

And, if you use the HTML device and corresponding tile, it puts all the useful information in a single tile.

3 Likes

Thanks for that I setup dashboards a while back with individual tiles and had not noticed the HTML attribute. That is much nicer.

1 Like

IMHO, this set of steps should be in the OP. @thebarber75

2 Likes

@terminal3

Got it. Devs need to realize there are people here like me.

Thanks for the reply.

1 Like

What a nifty device... And using your hub monitor app really is the icing on the cake.

1 Like

Hi @thebearmay
Just thought I'd pass on that I had defined a rule to notify me when a hub update was available as shown in you superb driver.
Guess what, notifications duly arrived on my phone. Brilliant.
Thanks again for this. :+1:

3 Likes

A couple things.

First, I could have sworn it had been discussed early on but what kind of numbers should we generally be concerned about (levels, that is)? Maybe add these as a suggested default value?

Also, is there an event that can be used as a trigger for when an update is started?

I posted my thoughts on CPU load as an edit on the first post some time back, but as for the rest everyone's setup, app/driver, and risk tolerance mix is different so it's difficult to say what is a good number.

For my hubs I'm using these numbers as alert levels, but they may or may not be acceptable for your use:

Max Temperature 140 °F (60 °C) - my C7s generally run between 98 °F-112 °F (36.7 °C - 44.5 °C) but will spike to as high as 141 °F (60.5 °C) at reboot

Max DB Size 80 - my production hub is generally in the neighborhood of 24-38, with my dev hub usually around 12-20

Min Free Memory 250000 - production hub usually drops to around 415000 a short time after reboot and then slowly drops over time, dev hub drops to about 520000 after settling in from a reboot and then very very slowly decreases over time

Assuming you mean an update of the hub firmware, I haven't seen anything directly but there are a couple of attributes you could look at and trigger on a change after update (firmwareVersionString, hubUpdateStatus).

3 Likes

My thinking was, to get out a command to Fully Kiosk to load a different screen while updating so no body interacts with the dashboards during the process.

Thank you for the other info.

The only thing I can think of there is if you would ping the hub and get a timeout error returned....

Installed this great app today and was concerned because my C-4's temperature reading was 68C/154.4F. A quick device surface scan with my IR Thermometer gives a 95.5F reading and the device's surface temperature does not feel hot when touched. No idea what to do with this information, everything else seems OK.