I know many are using my Hub Rebooter app, but some people were asking about a different use case. They wanted the ability to reboot and shutdown the hub on demand. For example, I heard some people talking about hooking up the hub to a UPS and using the UPS to power down the hub safely during a power failure.
This is a different use and requires a totally different solution, instead of an app, you need a driver so you have commands that you can call from RM or whatever.
So introducing, Hubitat Hub Controller. This gives you access to the following APIs:
Shutdown - powers down the hub completely
Reboot - reboots the hub
Restart - restarts the Hubitat software on the hub
The driver supports hubs with and without hub security enabled, you just need to supply an admin username/password when it is enabled. You can also optionally specify the IP of the hub so that you can remotely control a different hub (I only have 1 hub so I couldn't fully test this!). The code is on Github at https://github.com/dcmeglio/hubitat-hubcontroller and will be available in Hubitat Package Manager in just a little bit.
Very cool, thanks for sharing! Just want to try to clarify, rule machine can send shutdown and reboot commands on its own, right? But not if hub security is enabled, I think?
This is very cool. I'm trying to figure how to get the attributes on my dashboard. I tried custom but that doesn't seem to work and in rule machine I'm unable to get at any action-reboot, shutdown, etc.
The virtual device does work, but I need to be able to do this remotely.
They're commands, not attributes, so there is no way to put them on a dashboard directly. You need to create virtual buttons or something like that and then create an RM rule, to trigger the custom commands when the button is pressed. You can find the custom commands by choosing the Actuator as the type.
AH HA- actuator was what I was missing. Thank You and thanks again for another great addition to this platform.
I'm just blown away everytime I'm visit the forum and see so many new features and functionality.
And it's great people, like you, that drive the innovations.
PS- is it safe to say, to access custom commands, we always use actuator in RM 4 ?
Is there a way to detect using Rules if another Hub has actually Shutdown so I can power it off?
I have to put in a routine to run every night to reboot the HE Hub as the ZWAVE crashes and loses connectivity to every zwave device.
I need to be able to do an orderly shutdown and then check it has actually shutdown, power off the HE Hub using a Hue Plug managed by my other HE, count to 10, then power it back on again.
Maybe through hub mesh? But I don't know since I am a single hub owner.
You really should not have to do this. What HW and FW version are you using? May want to raise a support request with @bobbyD to resolve the underlying Z-Wave issue versus forcing reboots.
Also, any specific reason you have multiple hubs? My understanding is that multiple hubs is generally a "power-user" type thing to differentiate meshes with problem devices or to spread out the load of the rules, but my understanding is that 90%+ of people would not need it given they use repeaters.
Yup I know But this is on the advice of Support ...
Looks like I have a ZWAVE Device Driver that causes the ZWAVE to crash and die in HE.
Unfortunately I cannot do without the device, it controls the house heating boiler for radiators and hot water. If I can't control the device I have to use different HA hub.
Support say the only way to reset the zwave system is to shutdown and power off for 10 seconds then power back up.
The ZWAVE system has only died twice in 30 days, so if I can reboot it every night then I am hopeful it can be avoided until I can figure out a way to get a working driver..
Rebooting doesn't reset the zwave radio. Only powering down does. Zooz 4-1's, power reporting devices, and sometimes temperature spamming devices can cause this. Also zwave ghosts. Check settings, zwave details for any devices without anything in the clusters column.
If the ghost is still pingable it won't let you remove it. If you know which device it is then air gap it or flip the breaker. Then run a repair once or twice till it shows failed then remove it.