Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[deconz] Sensors may appear Offline after been Unreachable and becoming Reachable again. Comes Online after disable/enable #13368

Closed
olemr opened this issue Sep 9, 2022 · 7 comments · Fixed by #14622
Labels
bug An unexpected problem or unintended behavior of an add-on

Comments

@olemr
Copy link
Contributor

olemr commented Sep 9, 2022

Expected Behavior

I would expect the sensor Item to appear Online after "reachable": true & "lastupdated": "2022-09-09T18:52:36.769" becomes current.

Current Behavior

After my Fyrtur battery sensor was unreachable and became reachable again, OH 3.3.0 release still shows it as Offline: (browser refresh does not help.)
Note that everything is working Ok, it's just that the Thing is flagged as Offline in the Things view:
image

{
  "config": {
    "on": true,
    "reachable": true
  },
  "ep": 1,
  "etag": "f9968364c4ecac629519e0b7b1a1ad98",
  "lastannounced": "2022-09-09T18:54:28Z",
  "lastseen": "2022-09-09T18:54Z",
  "manufacturername": "IKEA of Sweden",
  "modelid": "FYRTUR block-out roller blind",
  "name": "FYRTUR block-out roller blind ",
  "state": {
    "battery": 50,
    "lastupdated": "2022-09-09T18:52:36.769"
  },
  "swversion": "2.3.088",
  "type": "ZHABattery",
  "uniqueid": "08:6b:d7:ff:fe:57:c4:64-01-0001"
}

image

Just pressing
image
then
image
makes the item become Online:
image

This behaviour is also seen on Switches and other Aqara/Lumi sensors so it is probably a common cause.

Steps to Reproduce (for Bugs)

I am not sure how to reproduce, but it seems to happen more often when restarting deconz while OH is still running.
The above example happened sometimes during a 32 day uptime of the whole system.

Context

Your Environment

  • Version used: (e.g., openHAB and add-on versions)
  • OH 3.3.0 Release, deconz 2.16.1
  • Environment name and version (e.g. Chrome 76, Java 8, Node.js 12.9, ...):
omr@shs2:~$ java --version
openjdk 11.0.16 2022-07-19
OpenJDK Runtime Environment (build 11.0.16+8-post-Ubuntu-0ubuntu118.04)
OpenJDK 64-Bit Server VM (build 11.0.16+8-post-Ubuntu-0ubuntu118.04, mixed mode, sharing)
omr@shs2:~$

  • Operating System and version (desktop or mobile, Windows 10, Raspbian Buster, ...):
omr@shs2:~$ uname -a
Linux shs2 4.15.0-66-generic #75-Ubuntu SMP Tue Oct 1 05:24:09 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
omr@shs2:~$

@olemr olemr added the bug An unexpected problem or unintended behavior of an add-on label Sep 9, 2022
@jlaur
Copy link
Contributor

jlaur commented Sep 10, 2022

@olemr - is the bridge also OFFLINE when this happens, or only the sensor thing? Can you provide TRACE logs?

@olemr
Copy link
Contributor Author

olemr commented Sep 10, 2022

Only the sensor/switch thing is listed as Offline, but the device/channels works just fine, so this is just cosmetic ...

@lhurt
Copy link

lhurt commented Nov 11, 2022

@olemr - is the bridge also OFFLINE when this happens, or only the sensor thing? Can you provide TRACE logs?

In my case the bridge is mostly also offline.

@Redsandro
Copy link

Redsandro commented Nov 18, 2022

This appears similar to issue #13740 but not identical because of these differences:

  1. 13740 doesn't show anything as offline
  2. 13740 happens in the opposite case of what you describe.

To elaborate on that second point, you describe this happens often when deconz is restarting. Could you double-check to see if it's not the other way around as described in #13740? E.g.: restart OpenHAB while deconz is offline, and then start deconz after OpenHAB is up?

@lhurt
Copy link

lhurt commented Dec 18, 2022 via email

@Redsandro
Copy link

@jlaur it seems like multiple issues boil down to the same problem: The bridge loses the connection and OpenHAB never reconnects properly. If DeCONZ goes down temporarily, the bridge will not work until OpenHAB is restarted.

These issues can be fixed with a docker-compose restart in the OpenHAB directory, but until you manage to login and do that, all the OH+DeConz dependent domotics in the house will be unavailable.

@jlaur
Copy link
Contributor

jlaur commented Dec 22, 2022

@jlaur it seems like multiple issues boil down to the same problem: The bridge loses the connection and OpenHAB never reconnects properly. If DeCONZ goes down temporarily, the bridge will not work until OpenHAB is restarted.

I still have a hope that @MHerbst will backport fixes provided in the smarthomej repository since this would probably fix multiple issues - and we have many. See #12223 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of an add-on
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants