openhab / openhab-addons

Add-ons for openHAB
https://www.openhab.org/
Eclipse Public License 2.0
1.9k stars 3.59k forks source link

The p1 meter stays in status unknow #17758

Open bucofski opened 3 hours ago

bucofski commented 3 hours ago

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!!

lsiepel commented 3 hours ago

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