DEYE-controller

October 11, 2024 · View on GitHub

  • A library and simple tools for interaction with DEYE hybrid inverters

  • The communication with the inverter requires a SOLARMAN datalogger

  • pysloarmanv5 <https://github.com/jmccrohan/pysolarmanv5>_ based library

  • Command line tools (exposed after install):

    • deye-read - read everything from the inverter (use --help for filters/options)
    • deye-regcheck - for quick check on specific register(s)
    • deye-scan is a scanner for dataloggers in the local network (not DEYE related)
    • deye-regwrite - for writing to individual registers
  • Monkey patching:

    • direct value assignment on read for the Register and RegistersGroup types (see the examples dir)
  • Tested with:

    • SUN-12K-SG04LP3 / LSW-3

INSTALL

.. code-block:: console

pip install deye-controller

TODO List

  • Support single phase inverters, eventually with auto detection.

Examples

Notes

  • It is possible the inverter to be completely deactivated by writing 0 to register 80 WritableRegisters.SwitchOnOff.set(False) but it will raise an alarm and will show error F19. The normal state is restored as soon as the register is set to its default value 1.
  • The WritableRegisters.GridExportLimit register can be used if the grid export is not desired when the battery is charged and the PV generation exceeds the load.