-
-
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
[hyperion] Binding not working due to NPE in HyperionNgHandler #6377
Comments
Maybe @tavalin can help fixing this NPE? Looks like the |
Incorporate changes to HyperionNG serverInfo API - alpha6. HyperionEnabled state channel is now determined by special component state "ALL". See: https://docs.hyperion-project.org/en/json/ServerInfo.html Signed-off-by: Łukasz Serwicki <[email protected]>
Hi, I just hit this issue while migrating from
As Daniel (@tavalin) discussed in 97747, Hyperion API was changed and the "hyperion" object seems to be missing in serverInfo response (hence NPE after deserialization). Example response from my NG server: serverInfo.txt According to API docs, now HyperionNG state "as a whole" is handled by special component called "ALL". For test, I removed the channel "state" logic from "updateHyperion" and added it to "updateComponent" in HyperionNgHandler.java, rebuilt binding and now testing it. If it works, I will try to go ahead with PR. |
Incorporate changes to HyperionNG serverInfo API - alpha6. HyperionEnabled state channel is now determined by special component state "ALL". See: https://docs.hyperion-project.org/en/json/ServerInfo.html Signed-off-by: posseydon6891 <[email protected]>
Incorporate changes to HyperionNG serverInfo API - alpha6. HyperionEnabled state channel is now determined by special component state "ALL" for newer APIs. See: https://docs.hyperion-project.org/en/json/ServerInfo.html Signed-off-by: posseydon6891 <[email protected]>
* [hyperion] Fixes #6377 hyperion NPE Incorporate changes to HyperionNG serverInfo API - alpha6. HyperionEnabled state channel is now determined by special component state "ALL" for newer APIs. See: https://docs.hyperion-project.org/en/json/ServerInfo.html * Update bundles/org.openhab.binding.hyperion/src/main/java/org/openhab/binding/hyperion/internal/handler/HyperionNgHandler.java Signed-off-by: Łukasz Serwicki <[email protected]> Co-authored-by: Connor Petty <[email protected]>
* [hyperion] Fixes openhab#6377 hyperion NPE Incorporate changes to HyperionNG serverInfo API - alpha6. HyperionEnabled state channel is now determined by special component state "ALL" for newer APIs. See: https://docs.hyperion-project.org/en/json/ServerInfo.html * Update bundles/org.openhab.binding.hyperion/src/main/java/org/openhab/binding/hyperion/internal/handler/HyperionNgHandler.java Signed-off-by: Łukasz Serwicki <[email protected]> Co-authored-by: Connor Petty <[email protected]>
* [hyperion] Fixes openhab#6377 hyperion NPE Incorporate changes to HyperionNG serverInfo API - alpha6. HyperionEnabled state channel is now determined by special component state "ALL" for newer APIs. See: https://docs.hyperion-project.org/en/json/ServerInfo.html * Update bundles/org.openhab.binding.hyperion/src/main/java/org/openhab/binding/hyperion/internal/handler/HyperionNgHandler.java Signed-off-by: Łukasz Serwicki <[email protected]> Co-authored-by: Connor Petty <[email protected]> Signed-off-by: CSchlipp <[email protected]>
* [hyperion] Fixes openhab#6377 hyperion NPE Incorporate changes to HyperionNG serverInfo API - alpha6. HyperionEnabled state channel is now determined by special component state "ALL" for newer APIs. See: https://docs.hyperion-project.org/en/json/ServerInfo.html * Update bundles/org.openhab.binding.hyperion/src/main/java/org/openhab/binding/hyperion/internal/handler/HyperionNgHandler.java Signed-off-by: Łukasz Serwicki <[email protected]> Co-authored-by: Connor Petty <[email protected]>
* [hyperion] Fixes openhab#6377 hyperion NPE Incorporate changes to HyperionNG serverInfo API - alpha6. HyperionEnabled state channel is now determined by special component state "ALL" for newer APIs. See: https://docs.hyperion-project.org/en/json/ServerInfo.html * Update bundles/org.openhab.binding.hyperion/src/main/java/org/openhab/binding/hyperion/internal/handler/HyperionNgHandler.java Signed-off-by: Łukasz Serwicki <[email protected]> Co-authored-by: Connor Petty <[email protected]>
* [hyperion] Fixes openhab#6377 hyperion NPE Incorporate changes to HyperionNG serverInfo API - alpha6. HyperionEnabled state channel is now determined by special component state "ALL" for newer APIs. See: https://docs.hyperion-project.org/en/json/ServerInfo.html * Update bundles/org.openhab.binding.hyperion/src/main/java/org/openhab/binding/hyperion/internal/handler/HyperionNgHandler.java Signed-off-by: Łukasz Serwicki <[email protected]> Co-authored-by: Connor Petty <[email protected]>
* [hyperion] Fixes openhab#6377 hyperion NPE Incorporate changes to HyperionNG serverInfo API - alpha6. HyperionEnabled state channel is now determined by special component state "ALL" for newer APIs. See: https://docs.hyperion-project.org/en/json/ServerInfo.html * Update bundles/org.openhab.binding.hyperion/src/main/java/org/openhab/binding/hyperion/internal/handler/HyperionNgHandler.java Signed-off-by: Łukasz Serwicki <[email protected]> Co-authored-by: Connor Petty <[email protected]>
* [hyperion] Fixes openhab#6377 hyperion NPE Incorporate changes to HyperionNG serverInfo API - alpha6. HyperionEnabled state channel is now determined by special component state "ALL" for newer APIs. See: https://docs.hyperion-project.org/en/json/ServerInfo.html * Update bundles/org.openhab.binding.hyperion/src/main/java/org/openhab/binding/hyperion/internal/handler/HyperionNgHandler.java Signed-off-by: Łukasz Serwicki <[email protected]> Co-authored-by: Connor Petty <[email protected]> Signed-off-by: Daan Meijer <[email protected]>
* [hyperion] Fixes openhab#6377 hyperion NPE Incorporate changes to HyperionNG serverInfo API - alpha6. HyperionEnabled state channel is now determined by special component state "ALL" for newer APIs. See: https://docs.hyperion-project.org/en/json/ServerInfo.html * Update bundles/org.openhab.binding.hyperion/src/main/java/org/openhab/binding/hyperion/internal/handler/HyperionNgHandler.java Signed-off-by: Łukasz Serwicki <[email protected]> Co-authored-by: Connor Petty <[email protected]>
Expected Behavior
Thing shows up as online, however Im unable to control my Hyperion-ng server using OpenHAB.
Tested using both thing and item files as well as PaperUI.
Current Behavior
Following shows up in the log:
Steps to Reproduce (for Bugs)
Your Environment
OpenJDK Runtime Environment (Zulu 8.42.0.23-CA-linux64) (build 1.8.0_232-b18)
OpenJDK 64-Bit Server VM (Zulu 8.42.0.23-CA-linux64) (build 25.232-b18, mixed mode)
The text was updated successfully, but these errors were encountered: