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

[homewizard] The p1 meter stays in status unknow #17758

Closed
bucofski opened this issue Nov 17, 2024 · 5 comments · Fixed by #17792
Closed

[homewizard] The p1 meter stays in status unknow #17758

bucofski opened this issue Nov 17, 2024 · 5 comments · Fixed by #17792
Labels
bug An unexpected problem or unintended behavior of an add-on

Comments

@bucofski
Copy link

I Upgraded to 4.3m4 and there is one problem with the homewizard binding. It stays in status unkown.

2024-11-16 20:38:37.735 [WARN ] [mmon.WrappedScheduledExecutorService] - Scheduled runnable ended with an exception:
com.google.gson.JsonSyntaxException: java.lang.NumberFormatException: Expected an int but was 226.800 at line 1 column 515 path $.active_voltage_l1_v
at com.google.gson.internal.bind.TypeAdapters$7.read(TypeAdapters.java:251) ~[?:?]
at com.google.gson.internal.bind.TypeAdapters$7.read(TypeAdapters.java:241) ~[?:?]
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.readIntoField(ReflectiveTypeAdapterFactory.java:212) ~[?:?]
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$FieldReflectionAdapter.readField(ReflectiveTypeAdapterFactory.java:433) ~[?:?]
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:393) ~[?:?]
at com.google.gson.Gson.fromJson(Gson.java:1227) ~[?:?]
at com.google.gson.Gson.fromJson(Gson.java:1137) ~[?:?]
at com.google.gson.Gson.fromJson(Gson.java:1047) ~[?:?]
at com.google.gson.Gson.fromJson(Gson.java:982) ~[?:?]
at org.openhab.binding.homewizard.internal.handler.HomeWizardDeviceHandler.pollData(HomeWizardDeviceHandler.java:140) ~[?:?]
at org.openhab.binding.homewizard.internal.handler.HomeWizardDeviceHandler.pollingCode(HomeWizardDeviceHandler.java:160) ~[?:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) ~[?:?]
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) ~[?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]
at java.lang.Thread.run(Thread.java:840) [?:?]
Caused by: java.lang.NumberFormatException: Expected an int but was 226.800 at line 1 column 515 path $.active_voltage_l1_v
at com.google.gson.stream.JsonReader.nextInt(JsonReader.java:1218) ~[?:?]
at com.google.gson.internal.bind.TypeAdapters$7.read(TypeAdapters.java:249) ~[?:?]
… 16 more

If i can do somthing let me know!
thank you in advance!!

@bucofski bucofski added the bug An unexpected problem or unintended behavior of an add-on label Nov 17, 2024
@lsiepel
Copy link
Contributor

lsiepel commented Nov 17, 2024

Clear issue, I’ll try to come up with a fix

@bucofski
Copy link
Author

Thx let me know if I have to test something!

@lsiepel
Copy link
Contributor

lsiepel commented Nov 20, 2024

Could you try this jar: https://1drv.ms/u/s!AnMcxmvEeupwjvhXkfIKBYTP1txbyg?e=jrQzDU

  1. make sure you have openHAB 4.2.2 (or better 4.3.0M4)
  2. uninstall the current binding. All things, channels, links etc will not be affected.
  3. drop the jar file in your addon folder.
  4. observe the logs and functionality of the binding
  5. report test results (if nok, provide logs)

@lsiepel lsiepel changed the title The p1 meter stays in status unknow [homewizard] The p1 meter stays in status unknow Nov 20, 2024
@bucofski
Copy link
Author

Ok Friday I will do the test. I have 4.3m4 running so that will not be a problem keep you posted!

@bucofski
Copy link
Author

bucofski commented Nov 22, 2024 via email

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.

2 participants