GoodWe Solar: get data from the new semsportal (lua script)

Moderator: leecollings

franzel
Posts: 34
Joined: Saturday 24 October 2015 18:40
Target OS: Raspberry Pi / ODroid
Domoticz version: 20.2
Location: Wijchen, The Netherlands
Contact:

Re: GoodWe Solar: get data from the new semsportal (lua script)

Post by franzel »

I use the LUA script since some months and AFAIK in most cases the script works ok.
In the previous Domoticz version most, if not all devices seem to work properly so there was no need to look at the logfile and therefor I hardly ever checked the log so I didn’t notice whether there actually were errors. From te moment I reinstalled my PI with the 2020.2 Version I experienced some issues so to try to solve these issues I checked the log much more then before. From that moment I noticed errors like this.

Code: Select all

2020-05-24 23:55:10.329 Error: EventSystem: Warning!, lua script Opbrengst has been running for more than 10 seconds
2020-05-25 00:13:10.058 Error: EventSystem: Warning!, lua script Opbrengst has been running for more than 10 seconds
2020-05-25 00:55:10.073 Error: EventSystem: Warning!, lua script Opbrengst has been running for more than 10 seconds
2020-05-25 04:37:10.238 Error: EventSystem: Warning!, lua script Opbrengst has been running for more than 10 seconds
I still think that the script shows the proper values but I still wonder where these errors come from.

Regards

Frans
franzel
Posts: 34
Joined: Saturday 24 October 2015 18:40
Target OS: Raspberry Pi / ODroid
Domoticz version: 20.2
Location: Wijchen, The Netherlands
Contact:

Re: GoodWe Solar: get data from the new semsportal (lua script)

Post by franzel »

Has all the support on this board vanished or has noone an idea what be the cause of this? :(
bofisko
Posts: 23
Joined: Sunday 22 November 2020 17:44
Target OS: Windows
Domoticz version:
Contact:

Re: GoodWe Solar: get data from the new semsportal (lua script)

Post by bofisko »

HI
Can you help me. How can I get tokken. I I tried it but it is not working. [DEBUG] 06:55:04: 2020-12-27 06:55:04.312152 [ fatal] Unknown exception: /opt/fibaro/scenes/29.lua:82: attempt to index global 'otherdevices_lastupdate' (a nil value)
Thanks
Last edited by bofisko on Sunday 27 December 2020 6:57, edited 2 times in total.
CrazyFrog
Posts: 21
Joined: Sunday 21 April 2019 13:39
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: GoodWe Solar: get data from the new semsportal (lua script)

Post by CrazyFrog »

I will look into it, i use macos.
Give me some time to find it out
Mareg
Posts: 1
Joined: Sunday 04 April 2021 17:38
Target OS: -
Domoticz version:
Contact:

Re: GoodWe Solar: get data from the new semsportal (lua script)

Post by Mareg »

Hello, thanks for the script!
But I have a question - there isn't a way to get data directly from inverter?
There isn't an API on the inverter interface?

Thanks
--
Mareg
fojtp
Posts: 1
Joined: Wednesday 25 July 2018 10:13
Target OS: Linux
Domoticz version:
Contact:

Re: GoodWe Solar: get data from the new semsportal (lua script)

Post by fojtp »

Mareg wrote: Sunday 04 April 2021 17:45 Hello, thanks for the script!
But I have a question - there isn't a way to get data directly from inverter?
There isn't an API on the inverter interface?

Thanks
--
Mareg
this works for me:
https://github.com/mletenay/home-assist ... e-inverter
script: inverter_test.py
franzel
Posts: 34
Joined: Saturday 24 October 2015 18:40
Target OS: Raspberry Pi / ODroid
Domoticz version: 20.2
Location: Wijchen, The Netherlands
Contact:

Re: GoodWe Solar: get data from the new semsportal (lua script)

Post by franzel »

Version: 2021.1
Build Hash: 8547c5b7e
Compile Date: 2021-04-17 17:29:11
dzVents Version: 3.1.7
Python Version: 3.7.3 (default, Jan 22 2021, 20:04:44) [GCC 8.3.0]

The Lua script from Raymond has worked flawlessly until some weeks ago. Some days showed a negative revenue of my solarpanels where the data from Semsportal is ok. I added some pictures.

Anyone knows what goes wrong in my situation?
Attachments
EDF0E8E0-4D94-4688-A048-BB4642F3A15A.jpeg
EDF0E8E0-4D94-4688-A048-BB4642F3A15A.jpeg (33.23 KiB) Viewed 595 times
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests