Replies: 10 comments 6 replies
-
I do not have such a system so I cannot speak with experience on this. But I can say that there is nothing known in the design of this component that should prevent you from achieve what you need to. Do you have you slave system up and operational? Does the information you are pulling from the Master already reflect the data from both system? In that case there is nothing further to do really. If not you will need to wire your RS-485 serial cable to both units. The configure a second instance of this component using a different name than the first one and setting the modbus drop number to match what you set in the inverter. |
Beta Was this translation helpful? Give feedback.
-
I do have the slave system up and operational. It is set to modbus SN: 2 per the SolArk manual. The master does not give slave specific info such as PV output since it uses different MPPTs. A second instance of the component is running within Home Assistant with a different name. Associated RS-485 adapter and wiring is in place. I do not see where to change the modbus drop number within HA-solark-PV. The master is to /dev/ttycom0 and the slave is at /dev/ttycom1. Am I overlooking something simple? |
Beta Was this translation helpful? Give feedback.
-
Tell me about your system. The above shows RTU commands from what looks like a windows box. What are you running home assistant on? Are you able to access these COM ports from your home assistant machine? |
Beta Was this translation helpful? Give feedback.
-
The production HA is running Ubuntu. It was easier at the time to use
Windows to run modpoll.
I've since run the same modpoll command from the Ubuntu box to prove out
the modpoll results. COM5 was changed to /dev/ttyUSB1.
Each Solark has an individual DSD TECH SH-11F connected to the Ubuntu
22.04.3 LTS server. Home Assistant is version 2023.9.2
…On Sun, Sep 17, 2023, 1:38 PM Paul Bixel ***@***.***> wrote:
Tell me about your system. The above shows RTU commands from what looks
like a windows box. What are you running home assistant on? Are you able to
access these COM ports from your home assistant machine?
—
Reply to this email directly, view it on GitHub
<#42 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABGFZHTDEYEN6KTNC5ULZ3DX247SDANCNFSM6AAAAAA426DYKM>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Installs 2nd inverter but then has error in log
[image: image.png]
[image: image.png]
[image: image.png]
This error originated from a custom integration.
Logger: homeassistant.config_entries
Source: custom_components/solark_modbus/hub.py:78
Integration: SolArk Inverter Modbus (documentation, issues)
First occurred: 7:01:59 PM (1 occurrences)
Last logged: 7:01:59 PM
Error setting up entry SolArk_Two for solark_modbus
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 387,
in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/solark_modbus/__init__.py", line 47, in
async_setup_entry
hub = SolArkModbusHub(hass, name, host, scan_interval)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/solark_modbus/hub.py", line 78, in
__init__
if (parsed.params) and isdigit(parsed.params) and (int(parsed.params) >
1) and (int(parsed.params) < 256):
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/curses/ascii.py", line 59, in isdigit
def isdigit(c): return 48 <= _ctoi(c) <= 57
^^^^^^^^
File "/usr/local/lib/python3.11/curses/ascii.py", line 50, in _ctoi
return ord(c)
^^^^^^
TypeError: ord() expected a character, but string of length 2 found
…On Sun, Sep 17, 2023 at 5:40 PM Paul Bixel ***@***.***> wrote:
I have created a development branch with changes which should allow you to
add your second inverter. Please use that branch and report your test
results. You will need to use a unique device name when you add your second
inverter and the URL "/dev/ttyUSB1/;2"
As I do not have this setup myself I am not willing to release it without
at least one test. If you want you can just copy this file to your machine
and then reboot.
https://github.com/pbix/HA-solark-PV/blob/Development/custom_components/solark/hub.py
<http://url>
Let me know how it goes and send me logs if you have any issues.
—
Reply to this email directly, view it on GitHub
<#42 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABGFZHRE4MRLNLRVZYSPT5LX2534XANCNFSM6AAAAAA426DYKM>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
/dev/ttyUSB1/;2
…On Sun, Sep 17, 2023, 8:57 PM Paul Bixel ***@***.***> wrote:
What URL did you use for the second inverter? I will test it here.
—
Reply to this email directly, view it on GitHub
<#42 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABGFZHRQEU2BRI3BDBRV5RDX26TCJANCNFSM6AAAAAA426DYKM>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
It is working after some changes in hub.py
I will detail the fix tomorrow.
Thanks again for the help!
[image: image.png]
…On Sun, Sep 17, 2023 at 10:01 PM Jim ***@***.***> wrote:
/dev/ttyUSB1/;2
On Sun, Sep 17, 2023, 8:57 PM Paul Bixel ***@***.***> wrote:
> What URL did you use for the second inverter? I will test it here.
>
> —
> Reply to this email directly, view it on GitHub
> <#42 (reply in thread)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ABGFZHRQEU2BRI3BDBRV5RDX26TCJANCNFSM6AAAAAA426DYKM>
> .
> You are receiving this because you modified the open/close state.Message
> ID: ***@***.***>
>
|
Beta Was this translation helpful? Give feedback.
-
Glad to hear you got it working. I made a commit to correct that syntax error. |
Beta Was this translation helpful? Give feedback.
-
The only other change would be to add "*self." *to line 78
![image](https://github.com/pbix/HA-solark-PV/assets/5004446/1f7a2eda-be68-4d50-8a86-76b6462479c9)
Again, I thank you for your help with this.
If you need further testing on a two Solark parallel system in the future
please let me know!
Thank you,
Jim
…On Mon, Sep 18, 2023 at 7:52 PM Paul Bixel ***@***.***> wrote:
Glad to hear you got it working. I made a commit to correct that syntax
error.
Did you have to do anything else?
—
Reply to this email directly, view it on GitHub
<#42 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABGFZHVYO45HWPXSO4F3C6LX3DUDFANCNFSM6AAAAAA426DYKM>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
This fix merged into main at v1.4.0 |
Beta Was this translation helpful? Give feedback.
-
I've been using HA-solark-PV since it came out successfully on a single Solark 12k system.
Recently I added a 2nd Solark in a master/slave parallel setup and would like to monitor it also. This is specifically for the PV watts of the slave unit.
Should monitoring the slave unit via HA-solark-PV work given the conflicting requirements of HA-solark-PV and Solark regarding the Modbus SN?
Solark Manual:
Assign a System as “Master” | Modbus SN: 1
Assign all other units as “Slave” | Modbus SN: 2,3,4…etc.
HA-solark-PV README.md:
On your inverter's basic setup screen under the parallel tab there may be a entry for the slave drop number "SN". This must be set to "01" for the modbus connection to function.
Any help would be appreciated!
Thanks
Beta Was this translation helpful? Give feedback.
All reactions