Hi, I've installed domoticz and required pymodbus modules on Windows 10. After coping with the known lib problems I had to correct some statements in the plugin module as "Frame" was not recognised and resulted in errors. Upon correction into "frame" the plugin operated and started logging. Is this a known issue?
My intention is to replace the EW-11 stick and app as it does not operate very relliable over here - i.e. losing its Wifi connection more than often.
Setup is a Waveshare RS485 to ETH and a SPRSUN CGK050-3L. Are all parameters covered by the plugin for this unit as well?
I'm still completing the setup and will create a RJ45 to Waveshare connection cable (power+RS485). I've configures the Waveshare as TCP server Modbus RTU. Apart from connecting RS485 are there any other settings I should take care of?
SPRSUN Modbus plugin
Moderator: leecollings
-
- Posts: 5
- Joined: Wednesday 27 November 2024 11:03
- Target OS: Windows
- Domoticz version:
- Contact:
Re: SPRSUN Modbus plugin
In addition to previous post. I've uninstalled python, pymodbus and removed the plugin. Re-install of python 3.9.2 (32 bits) and pymodbus and copying the plugin in the correct directory results in next error:
2024-11-30 11:28:36.264 Error: SPRSUN: (SPRSUN) failed to load 'plugin.py', Python Path used was 'C:\Program Files (x86)\Domoticz\plugins\SPRSUN-Modbus-master\;C:\Program Files (x86)\Python39-32\python39.zip;C:\Program Files (x86)\Python39-32\Lib\;C:\Program Files (x86)\Python39-32\DLLs\;C:\Program Files (x86)\Domoticz;C:\Program Files (x86)\Python39-32;C:\Program Files (x86)\Python39-32\lib\site-packages'.
2024-11-30 11:28:36.264 Error: SPRSUN: Traceback (most recent call last):
2024-11-30 11:28:36.264 Error: SPRSUN: File "C:\Program Files (x86)\Domoticz\plugins\SPRSUN-Modbus-master\plugin.py", line 43, in <module>
2024-11-30 11:28:36.264 Error: SPRSUN: from pymodbus import ExceptionResponse,Framer,ModbusException,pymodbus_apply_logging_config
2024-11-30 11:28:36.264 Error: SPRSUN: ImportError: cannot import name 'Framer' from 'pymodbus' (C:\Program Files (x86)\Python39-32\lib\site-packages\pymodbus\__init__.py)
Any suggestion would be helpful please...
2024-11-30 11:28:36.264 Error: SPRSUN: (SPRSUN) failed to load 'plugin.py', Python Path used was 'C:\Program Files (x86)\Domoticz\plugins\SPRSUN-Modbus-master\;C:\Program Files (x86)\Python39-32\python39.zip;C:\Program Files (x86)\Python39-32\Lib\;C:\Program Files (x86)\Python39-32\DLLs\;C:\Program Files (x86)\Domoticz;C:\Program Files (x86)\Python39-32;C:\Program Files (x86)\Python39-32\lib\site-packages'.
2024-11-30 11:28:36.264 Error: SPRSUN: Traceback (most recent call last):
2024-11-30 11:28:36.264 Error: SPRSUN: File "C:\Program Files (x86)\Domoticz\plugins\SPRSUN-Modbus-master\plugin.py", line 43, in <module>
2024-11-30 11:28:36.264 Error: SPRSUN: from pymodbus import ExceptionResponse,Framer,ModbusException,pymodbus_apply_logging_config
2024-11-30 11:28:36.264 Error: SPRSUN: ImportError: cannot import name 'Framer' from 'pymodbus' (C:\Program Files (x86)\Python39-32\lib\site-packages\pymodbus\__init__.py)
Any suggestion would be helpful please...
-
- Posts: 5
- Joined: Wednesday 27 November 2024 11:03
- Target OS: Windows
- Domoticz version:
- Contact:
Re: SPRSUN Modbus plugin
Finally got the plugin running. I'd like to share the settings for a W10 setup using a Waveshare RS485 ETH.
Steps:
Install 32bits version of python (3.9.13) use the advanced option and assure paths are set ok.
Install pymodbus version 3.6.2 using instructions earlier described in this topic.
Do Not Use the newest version 3.7.4 as error messages shown are confusing. See my former post - earlier one is referred to a section how to install pymodbus in windows to avoid problems with path problems. That didnot help.
Configure the WaveShare by logging in on its homepage and use shown settings.
Next post will show the VirCom settings.
Steps:
Install 32bits version of python (3.9.13) use the advanced option and assure paths are set ok.
Install pymodbus version 3.6.2 using instructions earlier described in this topic.
Do Not Use the newest version 3.7.4 as error messages shown are confusing. See my former post - earlier one is referred to a section how to install pymodbus in windows to avoid problems with path problems. That didnot help.
Configure the WaveShare by logging in on its homepage and use shown settings.
Next post will show the VirCom settings.
- Attachments
-
- D2.png (109.98 KiB) Viewed 254 times
-
- D6.png (87.61 KiB) Viewed 254 times
-
- Posts: 5
- Joined: Wednesday 27 November 2024 11:03
- Target OS: Windows
- Domoticz version:
- Contact:
Re: SPRSUN Modbus plugin
The WaveShare RS485 ETH uses the tool VirCom for configuration. Next snapshots show settings applied. Note it is configured as a TCP client.
- Attachments
-
- D5.png (260.03 KiB) Viewed 256 times
-
- D4.png (215.54 KiB) Viewed 256 times
-
- D3.png (142.78 KiB) Viewed 256 times
-
- Posts: 5
- Joined: Wednesday 27 November 2024 11:03
- Target OS: Windows
- Domoticz version:
- Contact:
Re: SPRSUN Modbus plugin
And the last one, didn't fit into one post. Hopefully this helps, good luck ![Smile :)](./images/smilies/icon_e_smile.gif)
![Smile :)](./images/smilies/icon_e_smile.gif)
- Attachments
-
- D6.png (87.61 KiB) Viewed 256 times
Re: SPRSUN Modbus plugin
I have applied the same settings as described above by asgaard, but somehow the plugin does not receive any data?!? I'm using the ZLAN 5143D as Modbus/TCP device server which can be also configured with VirCom. I have Domoticz installed on a Ubuntu 24.04 LTS virtual server and everything else is correctly working and SPRSUN-Modbus plugin installs without errors,
But the following error appears at every heartbeat call2025-01-10 15:05:44.910 Status: SPRSUN Heat Pump: Started.
2025-01-10 15:05:44.911 Status: SPRSUN Heat Pump: Entering work loop.
2025-01-10 15:05:45.058 Status: SPRSUN Heat Pump: Initialized version 2, author 'Sateetje'
2025-01-10 15:50:09.901 SPRSUN Heat Pump: Unexpected err=AttributeError("'ModbusIOException' object has no attribute 'registers'"), type(err)=<class 'AttributeError'>
2025-01-10 15:50:09.902 SPRSUN Heat Pump: SPRSUN Modbus Data
2025-01-10 15:50:09.902 SPRSUN Heat Pump: Return water temperature: 0.0 C
2025-01-10 15:50:09.902 SPRSUN Heat Pump: Outlet temperature: 0.0 C
2025-01-10 15:50:09.902 SPRSUN Heat Pump: Ambient temperature: 0.0 C
2025-01-10 15:50:09.902 SPRSUN Heat Pump: Hot water temperature: 0.0 C
2025-01-10 15:50:09.902 SPRSUN Heat Pump: Unit on: 0
2025-01-10 15:50:09.902 SPRSUN Heat Pump: Fan output: 0.0
2025-01-10 15:50:09.902 SPRSUN Heat Pump: Pump output: 0.0
2025-01-10 15:50:09.902 SPRSUN Heat Pump: Required cap: 0.0
2025-01-10 15:50:09.902 SPRSUN Heat Pump: Actual cap: 0.0
2025-01-10 15:50:09.902 SPRSUN Heat Pump: Power: 0.0
2025-01-10 15:50:09.902 SPRSUN Heat Pump: Voltage: 0
2025-01-10 15:50:09.902 SPRSUN Heat Pump: Current: 0.0
2025-01-10 15:50:09.902 SPRSUN Heat Pump: Hot water setpoint: 0.0
2025-01-10 15:50:09.902 SPRSUN Heat Pump: Heating setpoint: 0.0
2025-01-10 15:50:09.902 SPRSUN Heat Pump: Mode: 0
2025-01-10 15:50:09.902 SPRSUN Heat Pump: Status: Unknown
2025-01-10 15:50:09.902 SPRSUN Heat Pump: Three-way valve: 0
2025-01-10 15:50:09.902 SPRSUN Heat Pump: Heater: 0
2025-01-10 15:50:09.902 SPRSUN Heat Pump: AC_Linkage: 0
2025-01-10 15:50:09.902 SPRSUN Heat Pump: Fan mode: 0
2025-01-10 15:50:09.902 SPRSUN Heat Pump: Temp diff hot water: 0.0
2025-01-10 15:50:09.902 SPRSUN Heat Pump: Temp diff cooling/heating: 0.0
2025-01-10 15:50:09.902 SPRSUN Heat Pump: Eco_Mode_Cooling_X1: 0.0
2025-01-10 15:50:09.902 SPRSUN Heat Pump: Eco_Mode_Cooling_X2: 0.0
2025-01-10 15:50:09.902 SPRSUN Heat Pump: Eco_Mode_Cooling_X3: 0.0
2025-01-10 15:50:09.903 SPRSUN Heat Pump: Eco_Mode_Cooling_X4: 0.0
2025-01-10 15:50:09.903 SPRSUN Heat Pump: Eco_Mode_Cooling_Y1: 0.0
2025-01-10 15:50:09.903 SPRSUN Heat Pump: Eco_Mode_Cooling_Y2: 0.0
2025-01-10 15:50:09.903 SPRSUN Heat Pump: Eco_Mode_Cooling_Y3: 0.0
2025-01-10 15:50:09.903 SPRSUN Heat Pump: Eco_Mode_Cooling_Y4: 0.0
2025-01-10 15:50:09.903 SPRSUN Heat Pump: Eco_Mode_Heating_X1: 0.0
2025-01-10 15:50:09.903 SPRSUN Heat Pump: Eco_Mode_Heating_X2: 0.0
2025-01-10 15:50:09.903 SPRSUN Heat Pump: Eco_Mode_Heating_X3: 0.0
2025-01-10 15:50:09.903 SPRSUN Heat Pump: Eco_Mode_Heating_X4: 0.0
2025-01-10 15:50:09.903 SPRSUN Heat Pump: Eco_Mode_Heating_Y1: 0.0
2025-01-10 15:50:09.903 SPRSUN Heat Pump: Eco_Mode_Heating_Y2: 0.0
2025-01-10 15:50:09.903 SPRSUN Heat Pump: Eco_Mode_Heating_Y3: 0.0
2025-01-10 15:50:09.903 SPRSUN Heat Pump: Eco_Mode_Heating_Y4: 0.0
2025-01-10 15:50:09.903 SPRSUN Heat Pump: Eco_Mode_Hot_Water_X1: 0.0
2025-01-10 15:50:09.903 SPRSUN Heat Pump: Eco_Mode_Hot_Water_X2: 0.0
2025-01-10 15:50:09.903 SPRSUN Heat Pump: Eco_Mode_Hot_Water_X3: 0.0
2025-01-10 15:50:09.903 SPRSUN Heat Pump: Eco_Mode_Hot_Water_X4: 0.0
2025-01-10 15:50:09.903 SPRSUN Heat Pump: Eco_Mode_Hot_Water_Y1: 0.0
2025-01-10 15:50:09.903 SPRSUN Heat Pump: Eco_Mode_Hot_Water_Y2: 0.0
2025-01-10 15:50:09.903 SPRSUN Heat Pump: Eco_Mode_Hot_Water_Y3: 0.0
2025-01-10 15:50:09.903 SPRSUN Heat Pump: Eco_Mode_Hot_Water_Y4: 0.0
2025-01-10 15:50:09.903 SPRSUN Heat Pump: Setpoint cooling eco mode: 0.0
2025-01-10 15:50:09.903 SPRSUN Heat Pump: Setpoint heating eco mode: 0.0
2025-01-10 15:50:09.903 SPRSUN Heat Pump: Setpoint hot water eco mode: 0.0
2025-01-10 15:50:09.903 SPRSUN Heat Pump: Cooling setpoint: 0.0
2025-01-10 15:50:09.903 SPRSUN Heat Pump: Pump mode: 0
Who is online
Users browsing this forum: No registered users and 0 guests