Page 3 of 5
Re: New Python plugin: Domoticz SolarEdge_ModbusTCP
Posted: Thursday 15 October 2020 19:18
by Sjonnie2017
Thanks Eddie!
It does seem impossible to do it yourself, even with the display
I just contacted the supplier to "pump up the pressure" a bit
Greetz,
Sjonnie
Re: New Python plugin: Domoticz SolarEdge_ModbusTCP
Posted: Thursday 15 October 2020 19:21
by eddieb
Re: New Python plugin: Domoticz SolarEdge_ModbusTCP
Posted: Thursday 15 October 2020 19:36
by Sjonnie2017
Thanks again Eddie,
Will have a look at it tomorrow. I'll see if I can figure it out and have the stomach for it
Greetz,
Sjonnie
Re: New Python plugin: Domoticz SolarEdge_ModbusTCP
Posted: Thursday 29 October 2020 16:11
by Sjonnie2017
Well... the company that installed the panels sent a specialist over today. He enabled modbus_tcp in a matter of minutes. As a result I have a sh1tload of devices presenting me with information about the inner working of the converter.
Happy camper
Greetz,
Sjonnie
Re: New Python plugin: Domoticz SolarEdge_ModbusTCP
Posted: Thursday 29 October 2020 16:59
by eddieb
Sjonnie2017 wrote: ↑Thursday 29 October 2020 16:11
Well... the company that installed the panels sent a specialist over today. He enabled modbus_tcp in a matter of minutes.
Nice to read, that is how it should be !
welcome to the club
Re: New Python plugin: Domoticz SolarEdge_ModbusTCP
Posted: Thursday 29 October 2020 17:34
by Sjonnie2017
Well, since I am in the club now... do I get a pin or a badge or a sticker?
Seriously though: It is nice to see the data stored in the converter and being able to display it on my Dashticz dashboard. I am thinking graphs and dials as we speak
Greetz,
Sjonnie
Re: New Python plugin: Domoticz SolarEdge_ModbusTCP
Posted: Sunday 10 January 2021 19:57
by Naqua
First Thank you for the plugin it works very good except for:
2021-01-10 20:31:04.934 MQTT: Topic: domoticz/in, Message: {"idx":124,"nvalue":0,"svalue":"2;529436.8","Battery":100,"RSSI":10}
2021-01-10 20:31:04.278 Error: (Solar_modbus) 'onHeartbeat' failed 'KeyError'.
2021-01-10 20:31:04.278 Error: (Solar_modbus) ----> Line 537 in '/home/pi/domoticz/plugins/domoticz-solaredge-modbustcp-plugin/plugin.py', function onHeartbeat
2021-01-10 20:31:04.278 Error: (Solar_modbus) ----> Line 386 in '/home/pi/domoticz/plugins/domoticz-solaredge-modbustcp-plugin/plugin.py', function onHeartbeat
2021-01-10 20:31:05.059 MQTT: Topic: domoticz/in, Message: {"idx":120,"nvalue":0,"svalue":"231","Battery":100,"RSSI":10}
is there a solution for this?
Kind regards
Naqua
Re: New Python plugin: Domoticz SolarEdge_ModbusTCP
Posted: Tuesday 09 March 2021 9:37
by eddieb
thanks to @StasDemydiuk this plugin is now added to the python plugins manager !
https://github.com/stas-demydiuk/domoti ... ns-manager
great work and thanks
Re: New Python plugin: Domoticz SolarEdge_ModbusTCP
Posted: Sunday 21 March 2021 12:57
by Sjonnie2017
Having some trouble getting the plugin to work after I migrated my Domoticz installation to a new Pi. I installed Domoticz and all required plugins on the new Pi and restored the database of the old Pi. Easypeasy (I thought). Everything seems to work; my DeCONZ plugin and my HomeWizard plugin all are responding. Youless works without a glitch.
But I cannot get the modbus plugin to work. It installed OK and the hardware is created but the plugin won't connect to my inverter. I removed the hardware in Domoticz and recreated it. As a result all devices are removed (Yay!
) but still no connection to the inverter. IP and port of the inverter are unchanged.
A part of the log filtered for the modbus plugin:
- Spoiler: show
Code: Select all
2021-03-21 12:20:08.746 Status: (Zonnepanelen) Stop directive received.
2021-03-21 12:20:08.746 Status: (Zonnepanelen) Exiting work loop.
2021-03-21 12:20:08.946 Status: (Zonnepanelen) Stopping threads.
2021-03-21 12:20:08.946 Status: (Zonnepanelen) Stopped.
2021-03-21 12:20:08.946 Status: (Zonnepanelen) Started.
2021-03-21 12:20:09.193 Status: (Zonnepanelen) Initialized version 1.0.6, author 'Addie Janssen'
2021-03-21 12:20:09.193 Status: (Zonnepanelen) Entering work loop.
2021-03-21 12:28:59.771 (Zonnepanelen) Retrying to communicate with inverter after: 2021-03-21 12:30:09.740639
2021-03-21 12:29:04.796 (Zonnepanelen) Retrying to communicate with inverter after: 2021-03-21 12:30:09.740639
2021-03-21 12:29:09.757 (Zonnepanelen) Retrying to communicate with inverter after: 2021-03-21 12:30:09.740639
2021-03-21 12:29:14.780 (Zonnepanelen) Retrying to communicate with inverter after: 2021-03-21 12:30:09.740639
2021-03-21 12:29:19.756 (Zonnepanelen) Retrying to communicate with inverter after: 2021-03-21 12:30:09.740639
2021-03-21 12:29:24.766 (Zonnepanelen) Retrying to communicate with inverter after: 2021-03-21 12:30:09.740639
2021-03-21 12:29:29.776 (Zonnepanelen) Retrying to communicate with inverter after: 2021-03-21 12:30:09.740639
2021-03-21 12:29:34.800 (Zonnepanelen) Retrying to communicate with inverter after: 2021-03-21 12:30:09.740639
2021-03-21 12:29:39.764 (Zonnepanelen) Retrying to communicate with inverter after: 2021-03-21 12:30:09.740639
2021-03-21 12:29:44.773 (Zonnepanelen) Retrying to communicate with inverter after: 2021-03-21 12:30:09.740639
2021-03-21 12:29:49.803 (Zonnepanelen) Retrying to communicate with inverter after: 2021-03-21 12:30:09.740639
2021-03-21 12:29:54.763 (Zonnepanelen) Retrying to communicate with inverter after: 2021-03-21 12:30:09.740639
2021-03-21 12:29:59.776 (Zonnepanelen) Retrying to communicate with inverter after: 2021-03-21 12:30:09.740639
2021-03-21 12:30:04.797 (Zonnepanelen) Retrying to communicate with inverter after: 2021-03-21 12:30:09.740639
2021-03-21 12:30:09.838 (Zonnepanelen) Connection Exception when trying to contact: 192.168.16.160:1502
2021-03-21 12:30:09.838 (Zonnepanelen) Retrying to communicate with inverter after: 2021-03-21 12:32:09.838721
2021-03-21 12:30:14.797 (Zonnepanelen) Retrying to communicate with inverter after: 2021-03-21 12:32:09.838721
2021-03-21 12:30:19.768 (Zonnepanelen) Retrying to communicate with inverter after: 2021-03-21 12:32:09.838721
2021-03-21 12:30:24.778 (Zonnepanelen) Retrying to communicate with inverter after: 2021-03-21 12:32:09.838721
2021-03-21 12:30:29.788 (Zonnepanelen) Retrying to communicate with inverter after: 2021-03-21 12:32:09.838721
2021-03-21 12:30:34.812 (Zonnepanelen) Retrying to communicate with inverter after: 2021-03-21 12:32:09.838721
2021-03-21 12:30:39.773 (Zonnepanelen) Retrying to communicate with inverter after: 2021-03-21 12:32:09.838721
2021-03-21 12:30:40.353 (Zonnepanelen) requeuing 'onHeartbeatCallback' message for 'ConBee2'
2021-03-21 12:30:40.632 (Zonnepanelen) Debug logging mask set to: PYTHON PLUGIN QUEUE IMAGE DEVICE CONNECTION MESSAGE ALL
2021-03-21 12:30:40.632 (Zonnepanelen) onStart Address: 192.168.16.160 Port: 1502
2021-03-21 12:30:40.667 (Zonnepanelen) Connection Exception when trying to contact: 192.168.16.160:1502
2021-03-21 12:30:40.667 (Zonnepanelen) Retrying to communicate with inverter after: 2021-03-21 12:32:40.667011
2021-03-21 12:30:40.667 (Zonnepanelen) Processing 'PollIntervalDirective' message
2021-03-21 12:30:40.667 (Zonnepanelen) Heartbeat interval set to: 5.
2021-03-21 12:30:40.221 Status: (Zonnepanelen) Stop directive received.
2021-03-21 12:30:40.221 Status: (Zonnepanelen) Exiting work loop.
2021-03-21 12:30:40.421 Status: (Zonnepanelen) Stopping threads.
2021-03-21 12:30:40.421 Status: (Zonnepanelen) Stopped.
2021-03-21 12:30:40.422 Status: (Zonnepanelen) Started.
2021-03-21 12:30:40.629 Status: (Zonnepanelen) Entering work loop.
2021-03-21 12:30:40.629 Status: (Zonnepanelen) Initialized version 1.0.6, author 'Addie Janssen'
2021-03-21 12:30:50.631 (Zonnepanelen) Pushing 'onHeartbeatCallback' on to queue
2021-03-21 12:30:50.659 (Zonnepanelen) Processing 'onHeartbeatCallback' message
2021-03-21 12:30:50.659 (Zonnepanelen) Calling message handler 'onHeartbeat'.
2021-03-21 12:30:50.659 (Zonnepanelen) onHeartbeat
2021-03-21 12:30:50.659 (Zonnepanelen) Retrying to communicate with inverter after: 2021-03-21 12:32:40.667011
2021-03-21 12:30:55.632 (Zonnepanelen) Pushing 'onHeartbeatCallback' on to queue
2021-03-21 12:30:55.668 (Zonnepanelen) Processing 'onHeartbeatCallback' message
2021-03-21 12:30:55.668 (Zonnepanelen) Calling message handler 'onHeartbeat'.
2021-03-21 12:30:55.669 (Zonnepanelen) onHeartbeat
2021-03-21 12:30:55.669 (Zonnepanelen) Retrying to communicate with inverter after: 2021-03-21 12:32:40.667011
2021-03-21 12:31:00.633 (Zonnepanelen) Pushing 'onHeartbeatCallback' on to queue
2021-03-21 12:31:00.679 (Zonnepanelen) Processing 'onHeartbeatCallback' message
2021-03-21 12:31:00.680 (Zonnepanelen) Calling message handler 'onHeartbeat'.
2021-03-21 12:31:00.680 (Zonnepanelen) onHeartbeat
2021-03-21 12:31:00.680 (Zonnepanelen) Retrying to communicate with inverter after: 2021-03-21 12:32:40.667011
2021-03-21 12:31:05.634 (Zonnepanelen) Pushing 'onHeartbeatCallback' on to queue
2021-03-21 12:31:05.648 (Zonnepanelen) Processing 'onHeartbeatCallback' message
2021-03-21 12:31:05.649 (Zonnepanelen) Calling message handler 'onHeartbeat'.
2021-03-21 12:31:05.649 (Zonnepanelen) onHeartbeat
2021-03-21 12:31:05.649 (Zonnepanelen) Retrying to communicate with inverter after: 2021-03-21 12:32:40.667011
2021-03-21 12:31:10.635 (Zonnepanelen) Pushing 'onHeartbeatCallback' on to queue
2021-03-21 12:31:10.660 (Zonnepanelen) Processing 'onHeartbeatCallback' message
2021-03-21 12:31:10.660 (Zonnepanelen) Calling message handler 'onHeartbeat'.
2021-03-21 12:31:10.660 (Zonnepanelen) onHeartbeat
2021-03-21 12:31:10.660 (Zonnepanelen) Retrying to communicate with inverter after: 2021-03-21 12:32:40.667011
2021-03-21 12:31:15.635 (Zonnepanelen) Pushing 'onHeartbeatCallback' on to queue
2021-03-21 12:31:15.671 (Zonnepanelen) Processing 'onHeartbeatCallback' message
2021-03-21 12:31:15.671 (Zonnepanelen) Calling message handler 'onHeartbeat'.
2021-03-21 12:31:15.671 (Zonnepanelen) onHeartbeat
2021-03-21 12:31:15.671 (Zonnepanelen) Retrying to communicate with inverter after: 2021-03-21 12:32:40.667011
Anyone any idea?
TIA
Greetz,
Sjonnie
Re: New Python plugin: Domoticz SolarEdge_ModbusTCP
Posted: Sunday 21 March 2021 14:36
by eddieb
Did you read the first-time install instructions on
https://github.com/addiejanssen/domotic ... tcp-plugin ?
Go to the plugin folder and install all required addons:
cd domoticz/plugins/domoticz-solaredge-modbustcp-plugin
sudo pip3 install -r requirements.txt
...
Re: New Python plugin: Domoticz SolarEdge_ModbusTCP
Posted: Sunday 21 March 2021 15:04
by Sjonnie2017
eddieb wrote: ↑Sunday 21 March 2021 14:36
Did you read the first-time install instructions on
https://github.com/addiejanssen/domotic ... tcp-plugin ?
Go to the plugin folder and install all required addons:
cd domoticz/plugins/domoticz-solaredge-modbustcp-plugin
sudo pip3 install -r requirements.txt
...
Well I installed as per the instructions. But I can try to re-install. (Sjonnie is re-installing plugin). This is the output:
Code: Select all
~/domoticz/plugins/domoticz-solaredge-modbustcp-plugin $ sudo pip3 install -r requirements.txt
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: solaredge_modbus==0.6.2 in /usr/local/lib/python3.7/dist-packages (from -r requirements.txt (line 1)) (0.6.2)
Requirement already satisfied: pymodbus>=2.3.0 in /usr/local/lib/python3.7/dist-packages (from solaredge_modbus==0.6.2->-r requirements.txt (line 1)) (2.5.0)
Requirement already satisfied: pyserial>=3.4 in /usr/lib/python3/dist-packages (from pymodbus>=2.3.0->solaredge_modbus==0.6.2->-r requirements.txt (line 1)) (3.4)
Requirement already satisfied: six>=1.15.0 in /usr/local/lib/python3.7/dist-packages (from pymodbus>=2.3.0->solaredge_modbus==0.6.2->-r requirements.txt (line 1)) (1.15.0)
All seems to be satisfied
Unfortunately even after recreating the hardware the devices don't show up. It seems unable to connect to the inverter.
EDIT: Restarted Domoticz but that didn't change much :s
Re: New Python plugin: Domoticz SolarEdge_ModbusTCP
Posted: Wednesday 31 March 2021 10:08
by JakeOfOz
I have the same issue. I have a SE10K inverter, recently installed (march 2021).
As Sjonnie2017, I installed the plugin per the instructions, but get the same in the logging:
Code: Select all
2021-03-31 09:54:51.017 (Omvormer) Processing 'onHeartbeatCallback' message
2021-03-31 09:54:51.017 (Omvormer) Calling message handler 'onHeartbeat'.
2021-03-31 09:54:51.017 (Omvormer) onHeartbeat
2021-03-31 09:54:51.017 (Omvormer) Retrying to communicate with inverter after: 2021-03-31 09:56:10.998333
I enabled the Modbus TCP port on the inverter (took a while without the installer, but figured it out). The port should be 1502, but it does not want to connect. Any suggestions?
Could it be that the inverter itself needs to be restarted in any way? (I would have no idea how that would be achieved though..)
Re: New Python plugin: Domoticz SolarEdge_ModbusTCP
Posted: Wednesday 31 March 2021 10:23
by waltervl
Perhaps you can debug with the base python library this plugin is based on
https://github.com/nmakel/solaredge_modbus
Download the example.py from the link below and run it in a terminal window with your parameters:
example.py [-h] [--timeout TIMEOUT] [--unit UNIT] [--json] host port
https://github.com/nmakel/solaredge_mod ... example.py
Re: New Python plugin: Domoticz SolarEdge_ModbusTCP
Posted: Wednesday 31 March 2021 10:31
by waltervl
And there is also the following issue on github
https://github.com/addiejanssen/domotic ... n/issues/9
Looks like PyModbus has been updated and the plugin is not handling this yet.
The solaredge_modbus library is also updated to 0.6.5 (plugin uses 0.6.2) so there could be some library dependency issues....
Re: New Python plugin: Domoticz SolarEdge_ModbusTCP
Posted: Wednesday 31 March 2021 11:24
by JakeOfOz
Ah, a temporary solution is this,
Run on your pi:
sudo pip3 uninstall pymodbus
sudo pip3 install pymodbus==2.4.0
Then restart domoticz ( sudo service domoticz.sh restart )
It works now!
Re: New Python plugin: Domoticz SolarEdge_ModbusTCP
Posted: Wednesday 31 March 2021 19:01
by Sjonnie2017
Indeed! It works. All devices reappeared without a glitch. Let's hope Addie updates the plugin to work with the new library.
Re: New Python plugin: Domoticz SolarEdge_ModbusTCP
Posted: Monday 05 April 2021 16:57
by Zenek1961
Hello
I have the same problem,
I installed the plugin from the first post and it does not find devices
LOG 2021-04-05 16:56:27.546 (SolarEdge) Retrying to communicate with inverter after: 2021-04-05 16:56:30.2596192021-04-05 16:54:23.846 Status: Domoticz V2020.2 (c)2012-2020 GizMoCuz
2021-04-05 16:54:23.847 Status: Build Hash: b63341bc0, Date: 2020-04-26 13:47:55
2021-04-05 16:54:23.847 Status: Startup Path: /home/pi/domoticz/
2021-04-05 16:54:24.249 Status: PluginSystem: Started, Python version '3.7.3'.
2021-04-05 16:54:24.262 Status: WebServer(HTTP) started on address: :: with port 8080
2021-04-05 16:54:24.270 Status: WebServer(SSL) started on address: :: with port 443
2021-04-05 16:54:24.272 Status: Proxymanager started.
2021-04-05 16:54:24.320 Status: RxQueue: queue worker started...
2021-04-05 16:54:24.320 Status: TCPServer: shared server started...
2021-04-05 16:54:26.320 Status: (Zigbee2MQTT) Started.
2021-04-05 16:54:26.321 Status: (Tuya) Started.
2021-04-05 16:54:26.321 Status: (Python Plugin Manager) Started.
2021-04-05 16:54:26.321 Status: (SolarEdge) Started.
2021-04-05 16:54:26.321 Status: (Zigbee2MQTT) Started.
2021-04-05 16:54:26.321 Status: (ZigbeeMQTT) Started.
2021-04-05 16:54:26.321 Status: NotificationSystem: thread started...
2021-04-05 16:54:26.322 Status: EventSystem: reset all events...
2021-04-05 16:54:26.325 Status: EventSystem: reset all device statuses...
2021-04-05 16:54:26.485 Status: Python EventSystem: Initalizing event module.
2021-04-05 16:54:26.485 Status: EventSystem: Started
2021-04-05 16:54:26.486 Status: EventSystem: Queue thread started...
2021-04-05 16:54:26.537 Status: PluginSystem: Entering work loop.
2021-04-05 16:54:27.047 Status: (Zigbee2MQTT) Entering work loop.
2021-04-05 16:54:27.047 Status: (Zigbee2MQTT) Initialized version 3.0.0
2021-04-05 16:54:28.538 Status: (Tuya) Entering work loop.
2021-04-05 16:54:28.539 Status: (Tuya) Initialized version 1.0.0, author 'Wagner Oliveira'
2021-04-05 16:54:28.830 Status: (Python Plugin Manager) Entering work loop.
2021-04-05 16:54:28.830 Status: (Python Plugin Manager) Initialized version 1.0.0
2021-04-05 16:54:29.338 Status: (SolarEdge) Initialized version 1.0.6, author 'Addie Janssen'
2021-04-05 16:54:29.349 Status: (SolarEdge) Entering work loop.
2021-04-05 16:54:29.751 Status: (Zigbee2MQTT) Initialized version 3.0.0
2021-04-05 16:54:29.753 Status: (Zigbee2MQTT) Entering work loop.
2021-04-05 16:54:30.054 Status: (ZigbeeMQTT) Entering work loop.
2021-04-05 16:54:30.055 Status: (ZigbeeMQTT) Initialized version 3.0.0
2021-04-05 16:54:34.528 Status: Incoming connection from: 192.168.8.144
2021-04-05 16:54:41.711 Status: PROXY: Authenticate result: success.
2021-04-05 16:55:14.842 Status: Incoming connection from: 192.168.8.123
2021-04-05 17:00:01.169 Status: Starting automatic database backup procedure...
2021-04-05 17:00:01.240 Status: Ending automatic database backup procedure...
Re: New Python plugin: Domoticz SolarEdge_ModbusTCP
Posted: Monday 05 April 2021 18:11
by Sjonnie2017
Zenek1961 wrote: ↑Monday 05 April 2021 16:57
Hello
I have the same problem,
I installed the plugin from the first post and it does not find devices *snip*
You are giving us little to work on but have you tried the temporary fix from @JakeOfOZ? It works wonders on a Pi so give it a try
Re: New Python plugin: Domoticz SolarEdge_ModbusTCP
Posted: Monday 05 April 2021 18:47
by Zenek1961
Yes I have 2.4.0
Re: New Python plugin: Domoticz SolarEdge_ModbusTCP
Posted: Monday 05 April 2021 18:51
by Sjonnie2017
OK, that's something to work on. You are on a Pi if I interpret the log correctly. Have you checked the IP of your inverter? Have you tried to remove the plugin, reboot Domoticz and add the hardware again?