Python Plugin: GoodWe solar inverter via SEMS API

Python and python framework

Moderator: leecollings

Jeweettoch13
Posts: 36
Joined: Saturday 23 July 2022 16:42
Target OS: NAS (Synology & others)
Domoticz version: 2026.2
Location: Netherlands
Contact:

Re: Python Plugin: GoodWe solar inverter via SEMS API

Post by Jeweettoch13 »

Looks like everything is on order again:
correction.jpg
correction.jpg (322.65 KiB) Viewed 86 times
Tnx for the hard work everyone.

Only the inverter output current stays at zero for the moment. Is this maybe a mismatch in a datapoint?
JanJaap
Posts: 242
Joined: Thursday 12 October 2017 20:46
Target OS: Raspberry Pi / ODroid
Domoticz version: Dev
Location: the Netherlands
Contact:

Re: Python Plugin: GoodWe solar inverter via SEMS API

Post by JanJaap »

That is quite strange as for me all devices are being updated:
Screenshot 2026-09-29 153157.png
Screenshot 2026-09-29 153157.png (80.06 KiB) Viewed 84 times
input - boven and input onder are the 2 strings attached to the inverter

Details for output current:
Screenshot 2026-09-29 153349.png
Screenshot 2026-09-29 153349.png (43.47 KiB) Viewed 84 times
Bw: there is still a whole bunch of legacy code in the plugin, I'll work a bit on cleaning that up the coming days. You will see in the logfiles now that it default to the old endpoint and then as fallback uses the new one, which is a bit stupid
RPi 3, Domoticz dev version, Aeon ZWave stick (with a whole bunch of slaves), Zigbee using Zigbee2MQTT, Nest thermo, P1 smart meter on RPi Zero
RNEE
Posts: 77
Joined: Sunday 05 August 2018 10:13
Target OS: Raspberry Pi / ODroid
Domoticz version: 2026.1
Location: NL/Eindhoven area
Contact:

Re: Python Plugin: GoodWe solar inverter via SEMS API

Post by RNEE »

Watch this :
- My physical Goodwe Inverter says 15,94 Mwh produced (E-Total)
- My Goodwe website says 15.847,30 Kwh produced

Difference about 100 kwh

After the previous update of the plugin i had a negative value in Domoticz, this means that de Total in Domoticz previously was calculated from another variable.

To me it seems that the plugin previously calculated the right value but now uses another variable?

I deleted wrong values but now " Meter_Calender" reads in Domoticz.db :

Code: Select all

2107	10700	15814600	2026-09-20	0
2107	16500	15831100	2026-09-21	0
2107	  9600	15840700	2026-09-22	0
2107	  0	15840700	2026-09-23	0
2107	  0	15840700	2026-09-24	0
2107	10600	15835300	2026-09-28	0
Domoticz (since 2016) on Docker on Raspberry PI 5 with 500 Gb NVMe|Milight|KaKu + RFXCOM|Goodwe|Smartstuff P1 meter|Buienradar|Afval kalender|Tuya-wifi|Zigbee + deCONZ Conbee II|Marstek Homebattery 5,12Kwh via Modbus on Pusr-dr134|MQTTMapper|Quatt v2|
User avatar
waltervl
Posts: 7011
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2026.3
Location: NL
Contact:

Re: Python Plugin: GoodWe solar inverter via SEMS API

Post by waltervl »

waltervl wrote: Monday 28 September 2026 19:36
waltervl wrote: Sunday 27 September 2026 13:07 It works now again but it has some strange results.
It seems it sometimes sends values with factor 1000 (Wh -KWh) too much.

The totals for the day are correct so not sure what is going on here. The red bar is because of the few days of errors and not counting.
Screenshot_20260927-130102_Chrome.jpg
I made a github issue for this as the plugin resets the counter due to receiving partial values from the portal. https://github.com/JanJaapKo/domoticz-G ... /issues/38
Issue solved
Screenshot_20260929-191456_Chrome.jpg
Screenshot_20260929-191456_Chrome.jpg (77.8 KiB) Viewed 61 times
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Jeweettoch13
Posts: 36
Joined: Saturday 23 July 2022 16:42
Target OS: NAS (Synology & others)
Domoticz version: 2026.2
Location: Netherlands
Contact:

Re: Python Plugin: GoodWe solar inverter via SEMS API

Post by Jeweettoch13 »

JanJaap wrote: Tuesday 29 September 2026 15:34 That is quite strange as for me all devices are being updated:
Screenshot 2026-09-29 153157.png

input - boven and input onder are the 2 strings attached to the inverter

Details for output current:
Screenshot 2026-09-29 153349.png

Bw: there is still a whole bunch of legacy code in the plugin, I'll work a bit on cleaning that up the coming days. You will see in the logfiles now that it default to the old endpoint and then as fallback uses the new one, which is a bit stupid
Youre right at that, thats the DC output current, I'm having zero data at the AC output current.
User avatar
waltervl
Posts: 7011
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2026.3
Location: NL
Contact:

Re: Python Plugin: GoodWe solar inverter via SEMS API

Post by waltervl »

There is probably a Goodwe.log file in your Domoticz home folder. Check the values in that log in a time it is producing more than 1A. I see 0A in Domoticz when the panels are producing less then 1 A. In the graph of the device that should be visible.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Post Reply