-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[opensprinkler] Offline detection does not work reliably #8942
Comments
I can take a look into this when my unit arrives in a few weeks time. |
I have the non PI version based on esp8266 and I can reproduce this here. Just need some time to get used to the API and the binding before making changes. |
Thank you for looking into this @Skinah ! |
Try this build to see if it works and if any new bugs have cropped up. |
I'm not on openHAB 3 yet and currently have some hardware issues with my openSprinkler, so it will take some time before I can test this. Thank you again for the fix! |
I just wanted to test this, but it seems it's not compatible with my OH version?
I'm currently on 3.0.2. |
Your Environment
4 Things in openHAB:
Expected Behavior
When the OpenSprinkler is offline (e.g. network cable on the Raspberry is pulled where OpenSprinkler is installed), openHAB should reflect this correctly in Things status (after a while).
Current Behavior
When I disconnect the OpenSprinkler Pi, the following happens:
(2020-11-02 14:31:12.460 [hingStatusInfoChangedEvent] - 'opensprinkler:station:2a99e487' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Could not get the station channel 2 current state from the OpenSprinkler thing. Error: There was a problem in the HTTP communication with the OpenSprinkler API: Request to OpenSprinkler device failed: java.net.SocketTimeoutException: Connect Timeout)
All the time the HTTP Interface is in ONLINE state
Only after disabling / reenabling the thing the HTTP interface goes to OFFLINE - COMMUNIATION_ERROR and the Stations to INITIALIZING (I would also have expected OFFLINE (BRIDGE_OFFLINE) here according to https://www.openhab.org/docs/concepts/things.html).
Possible Solution
Correctly show offline status. When The Pi is not reachable, all things should be OFFLINE.
Steps to Reproduce (for Bugs)
Context
I'm using the Thing state for detection when something goes wrong and with most other bindings this works fine, sending me an email after 1 Minute continuous downtime. But not here. If my OpenSprinkler Pi failed (like it did some days ago) I would not notice it and my garden would be too dry.
The text was updated successfully, but these errors were encountered: