Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

Mathajas
Copy link

This PR updates the deye_sg04lp3.yaml inverter definition file to include the complete set of Modbus registers available for Deye SUN-8/10/12K-SG04LP3-EU inverters, based on the official Modbus documentation.

🔧 Key Changes:

  • Added full Internal CT (0x025C–0x025E) and External CT (0x0268–0x026A) readings for L1, L2, L3 phases.
  • Extended PowerControl section with Export Limitation statuses:
    • PQ Mode (0x0083)
    • V(Q) Control (0x0084)
    • F(W) Control (0x0085)
  • Added detailed ExportControlStatus with proper limit readings (0x0081–0x0082).
  • Introduced SystemInfo group:
    • Inverter runtime, inverter mode, MPPT1/MPPT2 status, battery status.
    • RTC Time readings (Year, Month, Day, Hour, Minute, Second).
  • Added InverterStatus:
    • Work Mode (0x0055) with lookup table for operational states.
    • Grid Synchronization status (0x0059).
  • Lookup tables added to replace raw Modbus values with human-readable statuses (e.g., "Not Connected", "Producing", "Charging", etc.).
  • Handled edge case values like 65535 for MPPT statuses and RTC when data is unavailable.

Technical Improvements:

  • Preserved compatibility with existing entity names to avoid breaking history tracking in Home Assistant.
  • Improved grouping and readability of the YAML definition.
  • Corrected scaling factors and offsets based on official Modbus documentation.

Tested Environment:

  • Inverter Model: Deye SUN-10K-SG04LP3-EU
  • Firmware Version: LSW3_15_FFFF_1.0.91R
  • Home Assistant Integration through logger

This PR ensures that all data points exposed by Deye via Modbus are available for monitoring and automation purposes, enhancing energy management in Home Assistant.

Let me know if further adjustments are required!

feat: Full parameter update for deye_sg04lp3 with CT readings and power control statuses, based on Dyey documentation received from Deye
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant