-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SH10RT Master & Slave #43
Comments
Good question. I will be installing a second one soon. Can we keep this in English please. |
hey, that should work. See #16 Recently, one guy in the home assistant forum confirmed that he got it working: |
Unfortunately, the method described in #16 does not work. i tried to avoid duplicate names by using the designation 2 or slave. but dying didn't help. |
copied this together with just 2 sensors, but I obviously cannot check without a second inverter, so I need your help here :) When this works, the next step is more or less copy / paste for the other sensors
|
This works with my two SH10RT! I've completed the 2nd yaml, see below. I have an additional question: when I try to write a modbus register like this, it's not working. Do you have any idea? Actually the "Set battery SoC reserve" doesn't work either. Perhaps the same problem?
|
great to know that this is working. I will put this on the "ToDo" list, but final integration and documentation will take some time. If you want to write to modbus register 13100 (reserved soc for backup), you need to decrement the address to 13099 copied from modbus_sungrow.yaml (arount line 1470)
|
Yes, it works! Thanks!! |
This is known, I haven't seen it..
|
I tried to adjust the max_charge_power because battery system SunGrow SBR265 supports up to 17.520 W
|
In the secret.yaml, the slave inverter must be set as a Modbus slave from 1 to 2 in order to be able to query data via the sh10rt's Modbus port z.B ` ######################################################################## #second inverter Slave |
Thankyou. |
Quick heads up RE the dual YAML files - reduce increase the scan_interval time ...the default will flood the Winet-s devices and knock them offline. |
hi, i have problems with the power mppt 1/2. I don't understand how the code works and my mistake lies. I just don't get any values for the power. Could you please help me `
name: MPPT2_inv2 power |
Since the last update i get no data from my second inverter... Does anybody have an idea? |
Last HA Update broke my complete Sungrow INtegration for SH and SG... Think there are some issues between Modbus in HA Core and the Code (there is something with regards to uint/int16 needs swap: none ... but this did not help... I will get deeper into this during the next week. |
Are you using the latest version of modbus.yaml file? There the error with Since HA 2023.9.x there are some new, weird ModBus issues. See 158 There you will find a link to the HA issue regarding the problems with ModBus. |
I created a .yaml config file for my second inverter that works with Home Assistant 10.1. If you want to use this, please follow the instructions given earlier in this thread. |
Has anyone two SH10RT-V112 as Master/Slave working and both combined shown in a flow chart? |
While waiting for the YAML-generator to be available, I attempted to automate the process of editing the modbus_sungrow.yaml to add a second inverter, using regular expressions. This was a quick and partial solution, but it might help someone avoid some manual work. The process is as follows:
Since I'm on Windows, I tested this only in Notepad++, but it should still be helpful for others. :) Step 1: copy the current modbus_sungrow.yaml and rename it to
|
I believe these are all the sensors referenced throughout the modbus_sungrow.yaml. To finish off our modbus_sungrow_2.yaml properly, we should append "_2" to all of these terms throughout;
If you have the Terminal addon you can use
Note: this will unfortunately not adjust the sensors for monthly and yearly export, as their names are concatenated in the yaml. You can edit these by hand, currently at lines 2165-2230. |
Hi, can you send the eddited version again, please? Seemed Pastebin deleted it already. Regards |
Absotively. I've created a gist for you. Hopefully it's allowed to stay up. :P |
Thank you! |
Could you maybe make a github action out of it and auto-create the file whenever the modbus_sungrow.yaml changes? I really like having the second inverter stuff in the git, but I am afraid of the maintenance (have barely time to maintain the one file...) |
@mkaiser I am a complete child when it comes to git and github, but I do try to be helpful. hahaha :D I forked your repo and tried setting up an action. Here's what I got so far. It runs whenever a commit touches modbus_sungrow.yaml, but I've got a syntax error in one my sed-commands that I can't figure out. Here's the output from my test-run:
However, when I run this block on my own terminal it works as expected. Can anyone see what I'm missing? UPDATE: nevermind! I changed the block to invoke sed once for each edit instead of trying to do all edits in one go, and now it all works. Just need to figure out how to place the generated file in the repo? |
Yes! I've set it up in a fork over here. I know nothing about git so... just do what you need to copy .github/workflows/ back to your repo and you should be off to the races. Remaining work: this action does not yet adjust the sensors for monthly and yearly export, as their names are concatenated in the yaml (currently at lines 2165-2230) and I don't know the yaml (or python?) syntax well enough to touch any of that. If somebody could come up with a good line of sed to touch those up, that would be great. :) |
well, you have grown fast :) Thanks a lot I just merged it (but the file has an "experimental" in its name. I do not have any time to look at this:
... maybe someone will fix it :) Thanks again! |
Gibt es die Möglichkeit 2 Wechselrichter einzubinden wenn man die Konstellation im Master und Slave hat?
The text was updated successfully, but these errors were encountered: