-
Notifications
You must be signed in to change notification settings - Fork 18
Hubitat How To : Check the device Online Offline Health Status
(Almost) All of my drivers support the **healthStatus **attribute. It may have the following values:
- **online **- the device is online to the HE hub
- **offline **- the device is offline (not paired, disconnected) to the HE hub
- **unknown **- health status is unknown to the driver.
How it works?
The healthStatus attribute is initally set to 'unknown' when the driver is installed for a first time. As soon as any Zigbee packet is received from the device, the heathStatus is set to 'online'. Then, a deviceHealthCheck timer is started. If nothing was received from the device for three consecutive deviceHealthCheck periods, it is considered that the device has dropped of the network and the healthStatus attribute is set to offline.
The activity checking period is configurable :
For most of the devices the default activity checking period is once per 4 hours, i.e. a device that has dropped off the network will be marked as offline after 12 hours.
See [Project] Device Health Status [Tuya, Aqara, Ikea, Sonoff, Lidl, ThirdReality and others] for more Hubitat community drivers that support the **healthCheck **attribute.
back to How To
back to Wiki Home
kkossev's custom drivers and apps for Hubitat back to https://github.com/kkossev/Hubitat/wiki