-
-
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
[surepetcare] - API change ➡️ HANDLER_INITIALIZING_ERROR #16082
Comments
This issue has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/surepetcare-handler-initializing-error-openhab-4-0-4/152088/1 |
@pgfeller - can you try this JAR? org.openhab.binding.surepetcare-4.1.0-SNAPSHOT.jar |
Fixes openhab#16082 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Fixes openhab#16082 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
@jlaur - thanks; I did a quick experiment with a 4.1.0 snapshot (clean install with no other binding or addon present). The bridge reports online - but discovery does not work:
I'll investigate into this to provide more details later as soon as I have some free time ... |
That's a regression of #15411, I'll fix that also. |
Is the .jar available as an artifact of the CI - so I can test it; or do you need to build it manually? If a .jar is available I can test it again. |
Sure, I have added this fix also and built a new JAR - you can use the same link (it has been replaced). |
Fixes openhab#16082 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Fixes #16082 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
I'll test as soon as possible. |
Fixes #16082 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Fixes openhab#16082 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk> Signed-off-by: Jørgen Austvik <jaustvik@acm.org>
Fixes openhab#16082 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
after the upgrade to openHAB 4.0.4 & the subsequent system restart the surepetcare does no longer start (HANDLER_INITIALIZING_ERROR).
Expected Behavior
The binding (bridge) should connect and initialize.
Current Behavior
The bridge initialization failes (
HANDLER_INITIALIZING_ERROR
):The bridge properly authenticates but is not able to parse the .json response received from the server:
The following exception is thrown during the initialization:
The .json received seems to use a different timestamp format for
$.data.households[0].updated_at
:➡️
"2023-12-16T21:08:19.637892+00:00"
Possible Solution
The format of the timestamp seems to be defined in
openhab-addons/bundles/org.openhab.binding.surepetcare/src/main/java/org/openhab/binding/surepetcare/internal/utils/GsonZonedDateTimeTypeAdapter.java
Line 38 in d498b49
I assume that a possible approach to solve this issue could be to make the parsing more tolerant. I do not know the options
ZONED_FORMATTER
provides to achieve this. Another (ugly) approach would be to try the alternate (new?) format to parse in case the default triggers an exception.Advice what approach should be used would be appreciated.
Context
At the moment the binding can not be used in my setup. It might be that other users are not (yet) affected - as the timestamp indicates a configuration update. Therefore if no changes were made it might be the backend still uses the compatible format.
Your Environment
Links
The text was updated successfully, but these errors were encountered: