How Do I Use the Hub Information Driver?

I installed the Hub Information Driver mentioned in this post: [RELEASE] Hub Information Driver, but I can't figure out how to actually use it. :confused: The linked forum post talks about using it to track CPU temperatures, etc, so it could be quite useful. I know I should make an app for it, but I'm not sure how to get started. Do I code my own app with groovy, or is it linked somehow to rules in an existing app?

Create a Virtual Device of any type. then change the driver to use the Hub Information Driver.

Create a device under the Devices menu: Add Device: Virtual

Then, click Type and scroll down until you find the Hub Information driver.

4 Likes

Once you have installed the code, create a virtual device with it (in the Device Tab) using the driver as the Device Type, and hit Configure to populate some initial values. Then go down into the Preferences section, turn on polling for the attributes you’d like to have tracked, enter a polling rate (in seconds - I’d recommend 600), and click save. If you want to see the values on a dashboard tile turn on the preference to create the html attribute, use an attribute tile template to display it.

The device can now be used by any rules engine (RM, webCoRE, etc.) or you can export the values as they change into something like InfluxDB and Grafana to produce graphs of the changes.

6 Likes

Ahhh, thank-you for your answers! That was too easy. :grin:

1 Like

And if you use security (which you should), make sure you select that in the driver's preferences, hit save, and then enter your hub username/password, and hit save again.

1 Like

Download the Hubitat app