I have few Zigbee devices that goes to offline after random periods of time. I have two plug-in switches and four Aquara temp sensors. I am aware there are issues with Aquara but the issue is with the plugin switches. After a while it will show offline in PaperUI but can actually turn them on and off through the app just fine.
Using Openhab 2.5.6
Device: HUSBZB-1 (Boost Mode, High Power)
Openhab-cli shows the devices are still online even though PaperUI/HABmin shows them offline.
Things are shown offline in paperui āConfiguration Thingsā but maybe switched on/of f.e. in paperui using āControlā. Even after switching on/of the Thing(s) stay marked offline.
The first Philips is really offline. The second OSRAM is the same device as the first but configured to āfollowā some other device status in paperui. Both ORAMS work as desired.
Note tat the State shown in the console is not linked at all to the state of the Thing. This state comes from the lower level zigbee libraries and is not used in the binding.
The binding will use reports from the device to decide if a device is online or not. If it doesnāt receive a report when it expects, then it will mark it offline. This assumes that a device respects the reporting that the binding configures (which it should as itās part of the standard) and some cheaper devices (eg Xiaomi) will ignore this. The lights I see in your device list should be fine, but if the RF link is not perfect, it could miss some reports.
Log files may help understand what is happening.
Distance isnāt everything. It depends on many other factors - antennas, antenna alignment, walls, radios, TVs and other devices nearly, any metal in the area, etc, etc. Distance is a good first approximation, but there can be a lot more to establishing if the RF link will work.
Thanks for explaning this. I didnāt know and just wanted to give some informations which might help.
Before grabbing the logs or generate some meaning full let me emphasize on the essential observation:
THINGS are marked offline i pUI
every ITEM is working as disired (afaik)
I never saw this before openhab 2.5.6
The attached logfile is default loglevel and starts right after the update to 2.5.6-2. there are errors an warning at the beginning, i normally ignore until i did the 2cnd or 3rd restart of openhab. This seems to be a known problem while starting after cache cleared: ITEMS not loaded when RULE already starts - you may know about that.
If this log does not show the information required, please let know, which actions to take. Iāll set the loglevel to debug as described for the binding and take the actions then.
I have had this issue for years.
I have two Zigbee dongles, and they both behave the same. Devices simply stop responding randomly and switch to offline. Only chances of getting them back is to remove the thing and include them again.
The distance is very close, aprox 1-5 meters.
I wonder if this will ever gona be stable. After my last try, it took a few weeks, and now the only device online is, funny enough, a xiaomi mija motion sensor.
Thatās interesting. I thought it was a dongle issue. Other than the Aquara temp sensors which gives no response, found out that they work just fine connecting to the dongle directly and not part of a hop. The switches still work and responsive but shows offlineā¦
So the channel I have my Zigbee is set to has no interference. I did a wifi scan and moved everything over to a different channel so make sure there were no overlap.
To get everything back online in PaperUI, I do a zigbee scan from inbox and just reset the devices. I donāt bother with removing the item.
I will reset all my zigbee devices so they are all working, then set my log to debug and attach it.
I appreciate you have had continued issues, and I donāt know why - Iām sorry Iāve not been able to help. This binding and libraries are used commercially by a number of companies - most of which I canāt mention, but I think itās clear that Qivicon / DT are using this since they were helping with the development for quite some time. Itās just a shame that weāve never got your system working, but thousands of other systems out there work very well.
Ok, hereās the debug log. Please download the zip file from here. The log is to big to place it here (only because of zigbee entries for one hour - hopefully this is ok for you).
I restarted openhab at the beginning and left it alone for about one hour. This is what i was presented in paperui, when i came back:
001788010337dd9f is really offline (no power intentionally). The others work as required even though shown as offline.
EDIT:
Just had a look at the online logviewer:
at ~18:14 there is āat system start ruleā running
near the end 7cb03eaa00acebf6 has been switched by hardwareswitch
So this all looks āokā to me. By this, I mean it is working as it is designed - there are no reports during this period (30 minutes) so the device is set to OFFLINE. This is how it is meant to work.
The question is why there is no reporting. A device should be configured to report every 15 minute in theory. This log does show the startup of the binding so I can confirm that this is what is happening (see below), and the binding sets the device OFFLINE if it doesnāt send 2 reports, so this all looks correct.
What i changed lately was the setup of the telegesis (19200 to 56700), while investigating these problems. This has been at about the same time i updated openhab and realized what we are writing about here.
My openhab needs some maintenance, some sort of backup/restore and i just received an ups for my rpi. When i implemented these topics, iāll give an other zigbee controler a chance i think.
Iāve changed the way this works now - after the ONLINE timer times out, it will attempt to poll the device. If there has still not been an update 30 seconds later, then it will set the device OFFLINE.
This should prevent the issue we see here where the device is not reporting for some reason. Please let me know if it helps.
I know you have tried Chrisā¦ And I know others out there are using Zigbee without any hassle. That just makes this (my problem) much more strange. Remember, I have been trying for a coupple of years now, with several different openhab setups and two different Zigbee coordinators. The only thing I can think of is some external devices which is messing things up. I have no idea how this should be possible, but I really doubt its a openhab core/dongle issue anymore. For the last year, my Odroid C2 has been used to test Zigbee only, except for running Velbus server. Thats all there is install on that openhab setup.
As for external devices, IĀ“ve got two. One is my Philips Hue brigde and then a Xiaomi hub (v2). They both communicate āalmostā the same 2.4ghz , but they havnt got any issue at all.
One of the latest Zigbee binding and lib released wouldnt even connect to my Philps Hue devices. They usually were the devices which only gave problems in the long run. A big surpise was, that I was able to add a Xiaomi motion sensor. This has always failed. But now its the only device running after weeks, and its still running. The rest eventually stopped responding, and after a while went offline, just as they used to, (beside the Hue devices wouldnt even connect).
I really have no idea whats going onā¦ But I have to be honest with you, I doubt IĀ“m the only one with this issue. As you can tell from this thread, there are a few more out there with the same experienceā¦ Maybe I have just been more patient than others, how may have given up insted.
Iām late to this party, so you may have already tried this: Iām using a USB CC2531 dongle on a Raspberry Pi 3B+. Iām using zigbee2mqtt rather than the Zigbee binding. Iād find that my device (yeah, Iāve only got one!) would go offline randomly, and the thing that seems to have fixed it is putting the dongle on a USB extender, and then plugging that extender into the Pi - i.e. moving the dongle away from the Pi.