Page 1 of 1

Plugin Homewizard Wifi P1 meter erreur décodage

Posted: Thursday 19 September 2024 19:07
by prz24
Depuis Domoticz 2024.7 (du moins je le pense), la valeur de puissance instantanée affichée par le widget P1 Meter- Total Power Usage est 10x trop élevée. J'ai comparé avec le chiffre renvoyé par mon compteur (page web http://192.168.1.17/api/v1/data)
Tandis que Domoticz affiche 7620 W
Le compteur renvoi : (la puissance instantanée est "active_power_w")
{"wifi_ssid":"HOME","wifi_strength":38,"smr_version":50,"meter_model":"Fluvius 253769484_A","unique_id":"3153414733313030363531333635","active_tariff":1,"total_power_import_kwh":4545.117,"total_power_import_t1_kwh":2179.446,"total_power_import_t2_kwh":2365.671,"total_power_export_kwh":3615.351,"total_power_export_t1_kwh":2512.603,"total_power_export_t2_kwh":1102.748,"active_power_w":762.000,"active_power_l1_w":472.000,"active_power_l2_w":102.000,"active_power_l3_w":187.000,"active_voltage_l1_v":231.300,"active_voltage_l2_v":225.100,"active_voltage_l3_v":229.800,"active_current_a":4.950,"active_current_l1_a":2.560,"active_current_l2_a":0.950,"active_current_l3_a":1.440,"active_power_average_w":99.000,"montly_power_peak_w":3828.000,"montly_power_peak_timestamp":240913153000,"external":[]}
Quelqu'un peut-il m'indiquer où se trouve le code du plugin ?
Merci

Re: Plugin Homewizard Wifi P1 meter erreur décodage

Posted: Thursday 19 September 2024 19:25
by waltervl
This is an English forum so please react in English!!!

Re: Plugin Homewizard Wifi P1 meter erreur décodage

Posted: Sunday 22 September 2024 10:28
by gvandick
Usage power shows not right value multyple by 10

I change in plugin

self.active_power_w = Data['active_power_w']

self.active_power_w = (Data['active_power_w'] / 10)

Now is shows right value

Re: Plugin Homewizard Wifi P1 meter erreur décodage

Posted: Sunday 22 September 2024 13:23
by WouterO
This occurs after a firmware update of the Homewizard P1 meter.
There is an improved version of the python plugin around that also repairs the error at:
https://github.com/gettevan/HomeWizard-Wifi-p1-plugin
I contacted the original programmer Eraser3 but he didn’t react.

Re: Plugin Homewizard Wifi P1 meter erreur décodage

Posted: Sunday 22 September 2024 18:30
by prz24
I install the new plugin It works fine. Thank you and sorry for may post in french

Re: Plugin Homewizard Wifi P1 meter erreur décodage

Posted: Monday 30 September 2024 9:16
by CronoS
I did a Git Pull; updated the plugin to it's latest version; but the value didn't change. Updates the plugin.py manually as described, after that it was working OK.

Re: Plugin Homewizard Wifi P1 meter erreur décodage

Posted: Wednesday 09 October 2024 9:24
by mvdp
WouterO wrote: Sunday 22 September 2024 13:23 This occurs after a firmware update of the Homewizard P1 meter.
There is an improved version of the python plugin around that also repairs the error at:
https://github.com/gettevan/HomeWizard-Wifi-p1-plugin
I contacted the original programmer Eraser3 but he didn’t react.
According to https://github.com/Eraser3/HomeWizard-W ... 2241626357 Eraser3 moved away from domoticz. It seems we should be continuing this very useful plugin with gettevan's fork at https://github.com/gettevan/HomeWizard- ... /tree/main.

Part of the problem of the factor 10 is due to the function `numStr()` which just removes a comma from a resulting value to string conversion.
Instead it should break the string after the comma. Now we use int types there is no comma anymore, but that is not clear from the `numStr` interface.
I'll put this comment in the github code as well.