-
Notifications
You must be signed in to change notification settings - Fork 8
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
Attempting to make it work with my SUN-6K-SG03LP1-EU #12
Comments
Hi, Looking at the traceback it fails on reading the system clock, which means that the register layout of this inverter is completely different. If you find the modbus documentation, please share it as I'm interested in expanding this lib. Probably the sunsynk mapping for single phase inverters can be used. root@pi:~# deye-regtest 192.168.192.12 2913021234 22 3 as a value to a DeviceTime instance and see if the formatted result: from deye_controller import HoldingRegisters
dt = HoldingRegisters.DeviceTime
dt.value = [6148, 6144, 3597]
dt.format() matches the time shown by the inverter. |
Hello. Reg 22 seems to have the Date and Time, it matches:
Cheers. |
Hello. I found this document elsewhere that seems to be accurate for my inverter, be aware that some registries return different values according what type of inverter you are connecting to. Also, I detected some descriptions are not very good and some translations that are there are also not accurate. I made some tests with deye-regwrite and deye-regtest and I think I will manage to do what I need with it. Cheers. |
Hi, Thanks for the documentation . Will try to adapt it to the current codebase. |
Hi, Basic support for single phase Hybrid/Micro/String inverters has been added in the single-phase branch. |
Hi,
See for changes in register 242. |
Hi, If I understand correctly register 242 controls the Grid/Gen signal options by changing the least significant bits:
while the AC couple on options are controlled by register 326 by as follows:
If the above is correct the AC couple options can be controlled from Python as: Check (AND): ac_couple_on_grid_on = (inverter_value & 64) == 64
ac_couple_on_load_on = (inverter_value & 128) == 128 Toggle (XOR): ac_couple_on_grid_off = (inverter_value ^ 64)
ac_couple_on_load_off = (inverter_value ^ 128) assuming that we work with the integers returned from |
Hello. Seems good to me. I'm currently focusing on sending the data I read from the inverter to EmonCMS. I already gathered all the values I want and put them in the order I want, I will now investigate how to construct the query to send them to EmonCMS. Cheers. |
Hello.
I have one SUN-6K-SG03LP1-EU with one Pylontech 5000 and I'm trying to use this code to read and write from/to the inverter.
I'm having a bit of a hard time understanding how it work as I don't recognize the language/coding show in the examples despite having some programming background (mostly C).
I managed to install it, but doesn't seem to be reading the inverter correctly:
I read the inverter serial number correctly, so it is working up to some level.
Is there any hint hot to get this working, possibly need to adapt some code to my inverter, but I don't yet have a ModBus manual that I'm sure is accurate for my inverter.
Thanks in advance.
Cheers.
The text was updated successfully, but these errors were encountered: