Would it be possible to add the Zigbee Network status to the hub information driver?
I'm having occasional Zigbee offline issues and it would help if I could monitor the Zigbee network status, then issue a notification when it's not ONLINE. AFAIK zigbee status is not available as a hub setting, nor is it available in the Hub Information Driver.
I wanted to do this in RM by loading hub_IP/hub/zigbeeInfo but could not figure it out. I already use Hub Information Driver, so this seems like the ideal place for it.
The /hub/zigbeeInfo page html should have string <h4>Zigbee Network State: ONLINE</h4>
Do a preg match for '$<h4>Zigbee Network State: *([^<]+)</h4>$' then set the status as captured result[1]
Sorry my regex skills are PHP oriented not Groovy
Logic and code In PHP
$bdy = (read the page and process any errors)
if (preg_match('$<h4>Zigbee Network State: *([^<]+)</h4>$',$bdy,$status))
zigbee_status = $status[1];
This technique could also be used to get the Zwave status requested by @alan564923
The driver already has a way of knowing if zigbee is online (the channel gets reset to null when it turned off or crashes) so an easy add, haven't found a similar tell tale for zwave, but you're right I could interrogate the details pages for the information.
@alan564923 Does the zwave actually go offline or just fail to respond for a period. If the latter, SiLabs release 7.17.1 just recently and if it passes HE Beta you could see it sooner rather than later.
Doesn't let me update an attribute to null so you're getting the last valid channel, but give me about 2 minutes and I'll get you a version that has a zigbeeStatus attirbute (enabled/disabled)
Fat fingered the check in the Configure area, would have corrected on the next poll, but if you don't mind doing a Repair the updated code is out there now.
Firmware looks to be for the 700 chip so C-7 only. If you not seeing a zwave crashed event, the only thing I could do would be to “scrape” the Zwaves detail screen and give you some type of indication that it was no longer reading Enabled. I have some “test” code laying around that does something similar so may be able to get you a zwaveStatus (enabled/disabled) later today.