Inverter: Deye - dalathegreat/Battery-Emulator GitHub Wiki

[!CAUTION] Working with high voltage is dangerous. Always follow local laws and regulations regarding high voltage work. If you are unsure about the rules in your country, consult a licensed electrician for more information.

Compatible Deye inverters

  • Deye SUN 5-25K-SG01HP3-EU-AM2 ✅
  • Deye SUN 29.9-50K SG01HP3-EU-BM3 ✅
  • Deye SUN 8/10/12/15K-SG01HP2-US-AM2 âœ…ī¸
  • Deye SUn 80K-SG02HP3 âœ…ī¸

Most likely way more Deye inverters work, since they are all BYD / Pylon compatible!

Notes on dual battery input :battery: :battery:

Most Deye inverters have two ports for adding batteries. The smaller 25k and lower units have non-isolated ports, which means there are two ports that behind the scenes are merged as one. The larger 30k-50-etc. have totally independent battery ports. This means you can easily connect two batteries, they can even differ in size and type.

When using the larger >30k inverters with two batteries, you will need one BE for each BMS port. This means you will have two totally independent BE systems, and the inverter treats them as separate batteries.

When using the smaller <25k inverters with two batteries, you will need to join them together in parallel using the Double-Battery support. You will need one single BE unit with Double-CAN for this, and the Deye will see 1 single battery (even though you have 2 in parallel!)

Notes on geo-lock :world_map:

[!WARNING] Sol-Ark manufacturer has turned on location validation in recent firmwares. This in turn disabled the inverters if they are used in the UK, US, Canada and Pakistan. Be careful with connecting your Deye inverter to the internet!

Picture of remotely disabled unit in the US:

image

Communication wiring

The Deye inverter works via CAN. The LilyGo board can have both a CAN battery and a CAN inverter connected on the same pins. When the board is used with two CAN devices at the same time that have termination resistors in all ends, the terminating resistor needs to be removed from the board. Please measure CAN termination if you have issues. This is explained in CAN-troubleshooting

â„šī¸ Always check the termination resistance of the system! That way you know if resistor needs to be removed or not.

â„šī¸ Grounding is extremely important. Make sure the battery case is connected to protective earth, and the shield part of the twisted pair CAN is connected to PE also! Failing to do this will result in CAN errors.

Which protocol to use

For this inverter type, use the option called "BYD Battery-Box Premium HVS over CAN Bus" under the "Inverter Protocol" setting

Manual charge voltage limits

The Deye inverters can rely on charge voltage instead of only SOC%. To enable this feature, go to the Settings page on BE, and enable manual voltage control and set charge voltage max and min discharge voltage.

Connecting the low voltage wiring

  • Use the BMS1 (or BMS2) port on the Deye
    • Pin 4 CAN-H , and Pin 5 CAN-L (See Deye manual for RJ45 pinout)

bild

Set the Deye to Lithium Mode, 01

bild

If you connected everything correctly, you will see data on the display:

bild

Installation examples

bild

Special notes on usage with BMW i3

[!NOTE]
If you intend on using BYD-CAN with the BMW i3, the battery needs to be on a separate CAN bus. The BMW i3 is using the same CAN IDs as BYD do, so if you try to run them both on the same bus the IDs will collide and values get interpreted wrong. There are a few ways to solve this:

Troubleshooting

  • If you see F58 BMS_COMMUNICATION_FAULT, make sure the Max Discharge Speed is not set too high, this will make the Deye fault (For instance having it set to 150.0A will crash it)
  • If the inverter appears to be OFF on the LCD, make sure that both power switches on the inverters are ON. One switch which apparently is only for PV panels - the one that you turn 90 degrees AND another one which is a push button that is ONLY for battery side