Restart after shutdown when power fails

I recently added a Ring zwave repeater to monitor for power failures. My C8 hub is on a ups, and I'd like to gracefully shutdown when the power goes out but I've run into problems trying to restart.

With a rule I can gracefully shut down when power fails. If the ups depletes and shuts power off, the hub will restart when power is restored. But if the power fail is short and ups provides constant power, how do I make the hub restart?

I'm using the Hub Information Driver with other Rules so shutdown isn't a problem. Just how to restart if the hub is shutdown and power is never removed.

You could get a Wifi power plug or USB switch to remove and re-add power via their app.

To automate this, you may need to get a second hubitat hub.

2 Likes

Just my scenario, maybe helpful maybe not :wink:
When the power is out the UPS keeps my server alive for 5 minutes. Meanwhile the hub is always pinging the server IP.
Once the server shuts down the hub gets a bad ping and initiates a shutdown.
When the power returns the server boots on AC Bios interrupt from the UPS coming back online. The hub boots at the same time when the UPS comes back online as well.
In a perfect outage everyone comes back.

1 Like

My hubs plug into a Tuya Zigbee power strip (controllable at each outlet via SmartLife). The power strip plugs into a UPS. When power goes out and stays out for 90 minutes (setup with Ring Range Extenders and automation), the hubs power down. It the power is out long enough for the UPS to drain, then the Tuya strip loses power. In that case, when power returns, the Tuya strip returns to its previous state with the hubs' outlets still off.

I do not automatically power on the hubs. I wait until power restores long enough to charge the UPS. If the hub restarts and another power outage occurs before the UPS charges, the UPS, power strip, and hubs could lose power before the hubs gracefully shut down. Instead, after notifications indicate restored power for a few hours, I manually turn on the Tuya power outlets for the hubs.

2 Likes

I actually don't worry about losing power to the hub much anymore.

I've had hub power interrupted numerous times will no ill effects, knock on wood.

I have Hub Protect, along with regular backups, so that should cover any database problem, if it does happen.

Just yesterday though, I re-instituted the TalentCell battery backups, only because Zigbee sensors weren't working while on inverter generator (Honda EU200i) power during an outage, but that's another topic. :slight_smile:

I also have to figure out how to extend the life of the hub backup battery longer than the last one, which failed unexpectedly. Again, another topic. :slight_smile:

My hub is at a 2nd location, so I want to automate the shutdown/restart process. I was hoping a rule or something i might have missed would point me in the right direction. It seems that once gracefully shut down, there’s not a way to restart other than power cycle. But this doesn’t work if the power outage is short and the UPS continually supplies power.

I have been thru a few power fails and the hub comes back online afterward. The forums seem to point to failures when the power fails. How common is this? I have Hub Protect — if there’s a failure can that be relied on to restore my Apps, Rules, Devices and the zwave radio ? What exactly does the database in Hub Protect save?

Hub Protects adds the extra security of having an automated off-site backup. It also backs-up your Radios (Zigbee and Z-Wave Radios information). It will allow you to easily replace your hub (on warranty) if something gets physically broken.

Otherwise the local backup will provide you with what you need.

That said, if your hub goes down due to a power outage and the DB is corrupted upon restart, it still comes up (with broken rules and such), restoring a previous backup will be a viable option.

Many CyberPower UPS have “monitoring” connections to hook up to a computer using USB.

USB Port to PC
The USB communication port allows communication between the USB port on the computer and the UPS unit.

———

What interests me more is the DB9 port on several of them. This is the totality of the data I can find from them.

DB9 Port
This port is used for connecting between the UPS and equipment designed to operate with a dry contact closure.

It sounds like we could maybe get a shutdown warning as a contact closure?!?

Anyone know how to learn more?

Does the local backup include the z-wave and zigbee radio information? In other words, with just a local backup, can I fully restore a hub if it doesn't have hardware issues?
I have Hub Protect, but also have a NAS with off-site backups. Just want to confirm that if other than a hardware issue I can restore my Apps, Rules, Devices and the zwave radio with the local backup.

No.

Not possible with a local backup, but the Hub Protect cloud backup backs up the radios too, so that would be needed for a full restore.

1 Like

Doing a little searching revealed this
Maybe the terminal block wired to a Zigbee/Z-Wave contact would be all you'd need.
Note pinout of DB9 in document.

But actually, this Relay Mini module has some utility of interest.

Thanks, I found that CyberPower supplies a similar card for their larger UPS systems. But some of their smaller backups have permanent USB and DB9 sockets.
They don’t supply connection information for the DB9, but I guess I could do some testing to see if that wiring is “universal”.

https://www.amazon.com/gp/product/B00429N19W/

1 Like

Let us know. If getting one of those terminal blocks and wiring in a contact sensor is all that's necessary.... then that's a nice option.

Got this from CyberPower support:


I haven’t tried it yet.

2 Likes

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.