Skip to content
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

More inverters #300

Open
carstenit opened this issue May 18, 2023 · 13 comments
Open

More inverters #300

carstenit opened this issue May 18, 2023 · 13 comments

Comments

@carstenit
Copy link

carstenit commented May 18, 2023

I cannot get it to work with more than one inverter, i believe it could be a json error - dublicate key “name" or something like that?

I have both of them connected, but i am only getting data from one of them

@DHLF
Copy link

DHLF commented May 18, 2023

To add another inverter you MUST add another solarman integration.
DONT change the (first) one you got already running! Any change there will "drop" the first inverter and add the second!

Instead click on the gear(spiked circle) on the left(Configuration/Settings?)
The next page should be the one with all already found integrations like "sun", your solarman ..
Click the button in the lower right "add integration" and select AGAIN solarman.
Configure this to your needs.
BEWARE to "name" both inverter different, dont use the "stock" values as you will get TWO inverter prefixed with "solarman".

sensor.solarman_ac_output_frequency (first one)
sensor.solarman_ac_output_frequency (second one?!)

Rename the first to "inverter1" or whatever you like and also with the second.
Otherwise there is no wonder HA is throwing duplicate key errors..

Wait. KEY errors? Did you just copy and paste stuff in the config?? That should be avoided. Just use the userinterface with add integration!

Strange description due to other language settings. sorry.

@b1lei
Copy link

b1lei commented May 23, 2023

same problem.
Added slave invert as DHLF described above. The result:
Master is readable
Slave is not readable (all sensors unknown)

Does someone solved this issue with multiple inverters?

sensor:

  • platform: solarman
    name: DEYE_MASTER
    inverter_host: 192.168.1.41
    inverter_port: 8899
    inverter_serial: 2709xxxxxx
    inverter_mb_slaveid: 1
    lookup_file: deye_sg04lp3.yaml

sensor:

  • platform: solarman
    name: DEYE_SLAVE
    inverter_host: 192.168.1.42
    inverter_port: 8899
    inverter_serial: 2748xxxxxx
    inverter_mb_slaveid: 2
    lookup_file: deye_sg04lp3.yaml

deye_sg04lp3.txt

@DHLF
Copy link

DHLF commented May 25, 2023

I got a master-slave configuration working(mixed 600+2000).. where the 600 as first and the 2000 as last device in the "string" so output of the 2000 would went into the net.
*may NOT be as intended by manufacturer(mixing microinverters of different types) * so dont try this!!
I did NOT change the inverter slave ids.. so they stayed both at 1.

In this configuration both showed up with different "prefixes" in the entity names.


Things you may try:
If you mistyped the inverter_serial in the HA config/solarman it will NEVER be able to connect therefore unknown values so doublecheck this.

EDIT:
Confusion due to different microinverters:
it seems you are using those "string" stuff while i got 1 mppt/per module so no serial connection of the solar panels.
The Deye600 uses deye_2mppt.yaml and the Deye2000 uses deye_4mppt.yaml.
As I dont know nothing about the string stuff:
MAYBE it is right to switch the slave id to 2 but as stated above it worked without changing this parameter

@NikiSkaarup
Copy link

NikiSkaarup commented Jun 11, 2023

I finally got my second inverter working after some trial and error

So in order to get more than 1 inverter to work I had to make a copy of deye_sg04lp3.yaml as deye_sg04lp3_no_bat.yaml file and for the secondary inverter and add it in the const.py file so I could select it

in the deye_sg04lp3_no_bat.yaml file find

      - name: "Battery Temperature"
        class: "temperature"
        state_class: "measurement"
        uom: "°C"
        scale: 0.1
        rule: 1
        offset: 1000
        registers: [0x024A]
        icon: "mdi:battery"
        validation:
          min: 1
          max: 99
          invalidate_all:

and remove

        validation:
          min: 1
          max: 99
          invalidate_all:

since my second inverter isn't connected directly to the batteries, it reports battery temp as -100, so it failed the validation and invalidated all fields

@b1lei
Copy link

b1lei commented Jun 12, 2023

I finally got my second inverter working after some trial and error

So in order to get more than 1 inverter to work I had to make a copy of deye_sg04lp3.yaml as deye_sg04lp3_no_bat.yaml file and for the secondary inverter and add it in the const.py file so I could select it

in the deye_sg04lp3_no_bat.yaml file find

      - name: "Battery Temperature"
        class: "temperature"
        state_class: "measurement"
        uom: "°C"
        scale: 0.1
        rule: 1
        offset: 1000
        registers: [0x024A]
        icon: "mdi:battery"
        validation:
          min: 1
          max: 99
          invalidate_all:

and remove

        validation:
          min: 1
          max: 99
          invalidate_all:

since my second inverter isn't connected directly to the batteries, it reports battery temp as -100, so it failed the validation and invalidated all fields

Worked for me.
Thanks

@djsamlb
Copy link

djsamlb commented Jun 20, 2023

Finally!!
Worked for me too
Thank u!!

@robert10055
Copy link

Great
it works perfectly

@dlx295
Copy link

dlx295 commented Nov 9, 2023

Hi,

I added a new Deye Inverter to my system an want to add it to home assistant via Solarman integration.... unfortunately it is not working... the second inverter is just showing unknown values. did everything (also with changes to const.py) but it is not working at all...

image

image

@robert10055
Copy link

robert10055 commented Nov 9, 2023

Here you must setup number 1
image

@dlx295
Copy link

dlx295 commented Nov 9, 2023

thank you for your answer, but I do not see any changes when I use 1

@NikiSkaarup
Copy link

@dlx295 there might be more than one value that has

   invalidate_all:

which causes all values to become unknown

@dlx295
Copy link

dlx295 commented Nov 10, 2023

@dlx295 there might be more than one value that has

   invalidate_all:

which causes all values to become unknown

where do I have to search for it and how can I solve it? thanks

@ornulf
Copy link

ornulf commented Apr 7, 2024

I finally got my second inverter working after some trial and error
So in order to get more than 1 inverter to work I had to make a copy of deye_sg04lp3.yaml as deye_sg04lp3_no_bat.yaml file and for the secondary inverter and add it in the const.py file so I could select it
in the deye_sg04lp3_no_bat.yaml file find

      - name: "Battery Temperature"
        class: "temperature"
        state_class: "measurement"
        uom: "°C"
        scale: 0.1
        rule: 1
        offset: 1000
        registers: [0x024A]
        icon: "mdi:battery"
        validation:
          min: 1
          max: 99
          invalidate_all:

and remove

        validation:
          min: 1
          max: 99
          invalidate_all:

since my second inverter isn't connected directly to the batteries, it reports battery temp as -100, so it failed the validation and invalidated all fields

Worked for me. Thanks

Worked like a charm for me .

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

No branches or pull requests

8 participants