StephanJoubert / home_assistant_solarman

Home Assistant component for Solarman collectors used with a variety of inverters.
Apache License 2.0
510 stars 190 forks source link

Deye Micro Inverter SUN2000G3 #86

Open alessandroo23 opened 1 year ago

alessandroo23 commented 1 year ago

Has anyone managed to integrate Deye SUN2000G3 microinverters?

leonardolisboa commented 1 year ago

Here https://github.com/StephanJoubert/home_assistant_solarman/issues/46

kababoom commented 1 year ago

I have the 1600 version and it's working fine with below config, of course you need to add the deye_4mppt.yaml to the inverters definitions..

There's just one thing that I cannot change and that's the interval, it stays on every 5 minutes whatever setting I change...

  - platform: solarman
    name: DEYE
    inverter_host: 192.168.10.90
    inverter_port: 8899
    inverter_serial: 4130xxxxxx
    inverter_mb_slaveid: 1
    scan_interval: 30
    lookup_file: deye_4mppt.yaml

  - platform: template
    sensors:
      deye_pv1_power:
        unit_of_measurement: W
        device_class: power
        value_template: "{{ states('sensor.deye_pv1_voltage') | float * states('sensor.deye_pv1_current') | float }}"

      deye_pv2_power:
        unit_of_measurement: W
        device_class: power
        value_template: "{{ states('sensor.deye_pv2_voltage') | float * states('sensor.deye_pv2_current') | float }}"

      deye_pv3_power:
        unit_of_measurement: W
        device_class: power
        value_template: "{{ states('sensor.deye_pv3_voltage') | float * states('sensor.deye_pv3_current') | float }}"

      deye_pv4_power:
        unit_of_measurement: W
        device_class: power
        value_template: "{{ states('sensor.deye_pv4_voltage') | float * states('sensor.deye_pv4_current') | float }}"
danilodene commented 1 year ago

@kababoom same here

DHLF commented 1 year ago

Deye microinverter polling time is set to 5 minutes(default). If you want to change(shorten) this you MUST contact Deye(registration, serial number, etc. needed) and left your device connected to the internet(they will change it from afar..) AFAIK the shortest time would be 1 minute.

Rumours came up about WRITING to the microinverter with post commands may be possible but be aware: wrong registers-wrong values may cause unexpected harm- to YOU, your family or neighbours lifes!

Better stay at those time limits or contact deye.

Edit: Reducing the polling time in the config does NOTHING else than producing more "offline" errors..

DHLF commented 1 year ago

@kababoom Your solution looks great(adding POWER as I*U for the 4 PV) but.. I dont know where to put those stuff.. Just adding the lines into the deye_4mppt.yaml or into the /root/config/config.yaml?

As my /root/config/config.yaml does NOT contains stuff about the solarman integration..

kababoom commented 1 year ago

@kababoom

Your solution looks great(adding POWER as I*U for the 4 PV) but.. I dont know where to put those stuff..

Just adding the lines into the deye_4mppt.yaml or into the /root/config/config.yaml?

As my /root/config/config.yaml does NOT contains stuff about the solarman integration..

This goes in configuration for example..

image