Python Plugin: GoodWe solar inverter via SEMS API

Python and python framework

Moderator: leecollings

RNEE
Posts: 70
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 »

@jan-jaap : update runs now ! Thank you !
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|
Jeweettoch13
Posts: 33
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 »

Awesome Work Jan-jaap!

It seems though that the data is coming trough is not what Domoticz expect it to be:
Error.jpg
Error.jpg (88.18 KiB) Viewed 112 times
I've reset the value but am not sure if im missing 3 days of generated power. Ill investigate further.
Jeweettoch13
Posts: 33
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 »

Also:

1 of 2 MPP-trackers is going to zero occasionally but they are working both as well in domoticz. Current output value is also none.
Error.jpg
Error.jpg (231.36 KiB) Viewed 104 times
RNEE
Posts: 70
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 »

I have the same problem in my dzVents script.

i think Goodwe now delivers sometimes nil- values, so domoticz calculaties te difference.

i think we need an otter variable witch always holds the cummelative total values.

Regarding time-out errors : the token has a live of 60 minuten, so it does not have to be renewed every time. Goodwe says renew every 50 minuts.
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|
Jeweettoch13
Posts: 33
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 »

Fair enough :).

In the fixed script no output current comes with the data. Could this be addressed?
Jeweettoch13
Posts: 33
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 »

Jeweettoch13 wrote: Saturday 26 September 2026 13:41 Awesome Work Jan-jaap!

It seems though that the data is coming trough is not what Domoticz expect it to be:

Error.jpg

I've reset the value but am not sure if im missing 3 days of generated power. Ill investigate further.
*update:

The total generated values as of 2020 comes with the total generated daily output (even after resetting the graphs from yesterday. Could this be a bug?
Error.jpg
Error.jpg (31.14 KiB) Viewed 34 times
RNEE
Posts: 70
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 »

Very strange; one moment it shows the correct daily value, and the next, the total quantity produced appears as a negative figure.

Image

Image
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|
RNEE
Posts: 70
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 »

Jeweettoch13 wrote: Saturday 26 September 2026 21:03 Fair enough :).

In the fixed script no output current comes with the data. Could this be addressed?
My dzVents script (seen here) only is capable of retrieving total and temperature, i can't find detail info on the api.
Anybody more info about the new Goodwe API?
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: 7007
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 »

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
Screenshot_20260927-130102_Chrome.jpg (164.28 KiB) Viewed 9 times
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