I am currently doing some work on the Neohub binding. The binding talks to the hub via TCP over Ethernet, and the hub talks to the devices via a Mesh RF Zigbee connection.
If a device loses its mesh RF connection to the hub, it remains “in” the hub. And the hub continues to provide the last known Channel values (albeit out of date). The hub also provides an OFFLINE flag that reflects the status of the RF mesh connection.
Currently the binding follows this OFFLINE flag, and it updates the device’s Thing Status On/Offline. I am wondering if this is the right thing to do? Another alternative option would be for the device Thing to have an On/Offline Channel? In addition to Thing.Status, or instead of it?
I can see the value of having a Channel since users can then link an Item to it. Which makes it easier to use in rules, sitemaps, or other UI.
What do you think? Is there some official preference or guidance on this?