I trying to figure out if there is an API to access admin functionality of the hubitat hub ? Not just devices like that Maker API provides but access to like the logs, status of the hub, etc itself. I see in the custom app developement you can access the hub id a few items. but dont see anything (like logs or status of hub) I want to create a interface for monitoring the status of multiple hubs to know if there are any system issues(access logging), obtain the os version, status of any radios, maybe even do system updates.,etc.
Is something like this possible ?
The hub information driver is probably the most comprehensive option:
Driver is a large scale rewrite of the original driver and brings added flexibility in the gathering of ~60 attributes related to general operation of the hub. Driver allows the assignment of these attributes to one of 4 user selectable polling queues and intervals in an effort to allow the impact of the data polling to be minimized (I average around 0.12% of total or less), and the generation of an html attribute for display on a dashboard (template is a text file that may be edited to allow …
1 Like
A list of the endpoints I’ve used at one point or another are at https://raw.githubusercontent.com/thebearmay/hubitat/refs/heads/main/libraries/endpoints.txt
If you want live logs you’ll need to use something like (only available for drivers):
interfaces.webSocket.connect("http://localhost:8080/logsocket")
For multiple hub firmware updates:
This virtual device is designed to allow a single button push to request that all hubs in a Hub Mesh check for and install an HE firmware update if available.
[IMG_0385]
Available via HPM or https://raw.githubusercontent.com/thebearmay/hubitat/main/hubUpdaterV2.groovy .
Setup:
Install the device driver on every hub you wish to participate
Determine which hub you want to use as the primary aka, publisher
Either:
a. Method 1 (Port 39501)
i. On each subscribing hub:
…
I have a few other relavent projects if you need something that isn’t in the above.
4 Likes
@dandiodati You can output logs to a syslog server.
Also lots of endpoints to control.