Hub Shut down Status

Hello gurus!

I have a C-7 (software ver: 2.4.3.176), and recently, I'm having to shut the hub down due to Zigbee radio faults.

I get the notifications that the zigbee radio is off & comes back on. When it comes back on, I don't always get device syncs, which is another issue I need to find out why & how to fix that.

The purpose of this query is to find a way to get a notification, via sms txt, email, etc. or trigger another wifi device, that the hub is about to shut down.

I can then use this notification to start a timer, on my Tasmota Sonoff Basic to wait 1 min, before opening the relay, wait 30 sec & then close the relay that powers the C-7 to restart it.

I know there is a system restart flag, but what about a shut down in progress flag?

TIA.

Yes, getting to the root of the Zigbee issues is the real fix.

I would note that you can have the hub shutdown with a rule. You can also detect when Zigbee is off or initializing.

I had a Zigbee issue (resolved) and I was using this piston in Webcore:

You should be able to do it in Rule Machine.

The trigger is the system event Zigbee Off. I was triggering on the value INITIALIZING, as with my issue it would get stuck on initializing.

The reboot is done with an endpoint. http://hubIP:8080/hub/reboot

Thks chrisbvt.

I use Webcore ALOT, as I'm more familiar w/ that than RM.
This is a great solution for a programmed shutdown.

Rebooting does not always reinit the zigbee radios, thus a shutdown is required.

Unfortunately, this webcore piston does not take into account a shutdown from the settings menu, or a shutdown from my NAS/UPS configuration.
If the NAS shuts the C-7 down, I don't want to retrigger a startup, so I'd like to structure this accordingly.

Got it, you really need a wifi switch to shut power to the hub for that.

There is a hub event called Manual Reboot that comes up in Webcore. I'm not clear what the value would be, but maybe it is somewhere in the support pages. I'm guessing it is a boolean true or false? That would have to be tested.

Yes, I use the manual reboot in webcore already.

That's why I know this zigbee radio issue can't be fixed unless a hub shut down,
via wifi switch (Tasmota Sonoff) opens after the hub shuts down orderly.
The Sonoff relay closes after 30sec, to reboot he C-7