StephanJoubert / home_assistant_solarman

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

no connected homeassistant ethernet dongle #336

Open Antoniocampo opened 1 year ago

Antoniocampo commented 1 year ago

I have a DEYE 5k inverter

Until recently, I was monitoring it with HomeAssistant.

But recently I have changed the inverter wifi dongle for an adapter to RJ45 cable and connect it directly to the router.

Since then, HomeAssistant has not received information from the inverter.

However, on the solarman website the inverter data is updated (when I have modified the data of the logger).

I have the same IP address in inverter.

and I have modified the device serial number in home assistant solarman integration, but all entities are shown as not available.

I have used the same template that worked before: deye_hybrid.yaml

Some idea how to receive data from inverter to homeassistant?

Thanks.

NemesisXB commented 1 year ago

As far as I understand this integration is specifically for the dongle. And even though it is an RJ45 connector, it is not a network connection, it is an RS485 connection so you can not and should not connect it directly to your router.

sanderbaks commented 1 year ago

As far as I understand this integration is specifically for the dongle. And even though it is an RJ45 connector, it is not a network connection, it is an RS485 connection so you can not and should not connect it directly to your router.

If this is the case, how come the Solarman website does receive the data using this cable connected to a router? Seems strange ?

NemesisXB commented 1 year ago

As far as I understand this integration is specifically for the dongle. And even though it is an RJ45 connector, it is not a network connection, it is an RS485 connection so you can not and should not connect it directly to your router.

If this is the case, how come the Solarman website does receive the data using this cable connected to a router? Seems strange ?

I misread. I see OP is using an adapter. @Antoniocampo can you share link to the adapter you are using?

Antoniocampo commented 1 year ago

This is adapter photo_2023-07-03_16-30-32 photo_2023-07-03_16-30-49 photo_2023-07-03_16-30-46 photo_2023-07-03_16-30-43 photo_2023-07-03_16-30-37

sanderbaks commented 1 year ago

This is adapter photo_2023-07-03_16-30-32 photo_2023-07-03_16-30-49 photo_2023-07-03_16-30-46 photo_2023-07-03_16-30-43 photo_2023-07-03_16-30-37

I have the same! And still not connected to Home Assistant..

Antoniocampo commented 1 year ago

So, if the same thing happens to @sanderbaks, I no longer doubt that it is a problem with my installation, because I have already tried everything and homeassistant still does not show data from the inverter.

sanderbaks commented 1 year ago

@Antoniocampo My installation will not connect. I can see that in the log. But installation states it is succesful. I think we are having exactly the same issue.

NemesisXB commented 1 year ago

@sanderbaks, @Antoniocampo are you able to log into the web page of the dongle? As shown here: https://github.com/StephanJoubert/home_assistant_solarman#preparation

Have you tried making the IP 0.0.0.0 and serial number 0 for auto discovery in the integration?

sanderbaks commented 1 year ago

@sanderbaks, @Antoniocampo are you able to log into the web page of the dongle? As shown here: https://github.com/StephanJoubert/home_assistant_solarman#preparation

Have you tried making the IP 0.0.0.0 and serial number 0 for auto discovery in the integration?

Yes I can access the Dongle. Will try auto discovery now and let you know

sanderbaks commented 1 year ago

@NemesisXB Just did the installation. Notification was Succes. Found the Dye-Hybrid. (I have Sofar inverter) But I continued installation. No Error messages. However, No connection: See screenshot.

Screenshot 2023-07-04 at 09 10 37
sanderbaks commented 1 year ago

BTW: I am using the Solarman_LSW3 .. I have a 3phase inverter, and the LSW dongle. Am i correct?

NemesisXB commented 1 year ago

BTW: I am using the Solarman_LSW3 .. I have a 3phase inverter, and the LSW dongle. Am i correct?

The 3-phase registers are quite different, rather try one of the 3 phase definition files like deye_sg04lp3.yaml

Maybe even try all of them one at a time. Remember to wait a minute or 2 as it does not update immediately.

NemesisXB commented 1 year ago

@sanderbaks, @Antoniocampo. Looks like the port is different for the LAN logger. It is 30003.

sanderbaks commented 1 year ago

And what is the Config file ? Can I use the Sofar_LSW3 ?

On 4 Jul 2023, at 11:36, Christiaan Alberts @.***> wrote:

30003

NemesisXB commented 1 year ago

And what is the Config file ? Can I use the Sofar_LSW3 ? On 4 Jul 2023, at 11:36, Christiaan Alberts @.***> wrote: 30003

No harm in trying them all. But start with the one that is the closest match for your inverter, so I would start with that the Sofar_LSW3

sanderbaks commented 1 year ago

This did not work yet.. I will try all of them..

On 4 Jul 2023, at 11:53, Christiaan Alberts @.***> wrote:

And what is the Config file ? Can I use the Sofar_LSW3 ? … <x-msg://25/#> On 4 Jul 2023, at 11:36, Christiaan Alberts @.***> wrote: 30003

No harm in trying them all. But start with the one that is the closest match for your inverter, so I would start with that the Sofar_LSW3

— Reply to this email directly, view it on GitHub https://github.com/StephanJoubert/home_assistant_solarman/issues/336#issuecomment-1619928640, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJWRLWWOW3LANZPXDAH5IPTXOPR3PANCNFSM6AAAAAAZ25D63A. You are receiving this because you were mentioned.

sanderbaks commented 1 year ago

Is there a way to check activity on the port ?

On 4 Jul 2023, at 11:36, Christiaan Alberts @.***> wrote:

@sanderbaks https://github.com/sanderbaks, @Antoniocampo https://github.com/Antoniocampo. Looks like the port is different for the LAN logger. It is 30003.

— Reply to this email directly, view it on GitHub https://github.com/StephanJoubert/home_assistant_solarman/issues/336#issuecomment-1619900268, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJWRLWX2JVD46VVFAUEMXHLXOPP2PANCNFSM6AAAAAAZ25D63A. You are receiving this because you were mentioned.

NemesisXB commented 1 year ago

Is there a way to check activity on the port ? On 4 Jul 2023, at 11:36, Christiaan Alberts @.***> wrote: @sanderbaks https://github.com/sanderbaks, @Antoniocampo https://github.com/Antoniocampo. Looks like the port is different for the LAN logger. It is 30003. — Reply to this email directly, view it on GitHub <#336 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJWRLWX2JVD46VVFAUEMXHLXOPP2PANCNFSM6AAAAAAZ25D63A. You are receiving this because you were mentioned.

Seems you can configure the dongle Server B to use port 8899 but there are 4 options for mode as per: https://github.com/jmccrohan/pysolarmanv5/issues/22#issuecomment-1301938184

Seems the default mode for port 30003 is standard Modbus-TCP and not Solarman V5. Maybe try setting up server B and maybe select the solarman-ethernet mode.

sanderbaks commented 1 year ago

Pff .. This getting soooo complicated :)

Dou you guys have it working? Or is it also giving issues?

I have got to go now.. Will try more later.

PV-Joe commented 1 year ago

And what is the Config file ? Can I use the Sofar_LSW3 ?

Try the Sofar files: IMG_3836

Antoniocampo commented 1 year ago

Hi @NemesisXB ,

I have change port to 30003 in homeassistant (see image), restart and wait about 5 minutes, but still not working.

the same thing that happens to @sanderbaks

image

image

Antoniocampo commented 1 year ago

@sanderbaks, @Antoniocampo are you able to log into the web page of the dongle? As shown here: https://github.com/StephanJoubert/home_assistant_solarman#preparation Have you tried making the IP 0.0.0.0 and serial number 0 for auto discovery in the integration?

Yes I can access the Dongle. Will try auto discovery now and let you know

YES, I can log into the web page of the dongle.

NemesisXB commented 1 year ago

@sanderbaks, @Antoniocampo are you able to log into the web page of the dongle? As shown here: https://github.com/StephanJoubert/home_assistant_solarman#preparation Have you tried making the IP 0.0.0.0 and serial number 0 for auto discovery in the integration?

Yes I can access the Dongle. Will try auto discovery now and let you know

YES, I can log into the web page of the dongle.

It seems the ethertnet dongle does not use the solarmanv5 protocol. It uses pure modbus-tcp. This integration is written specifically for the solarmanv5 protocol. Which should mean you can read the data directly from HA using https://www.home-assistant.io/integrations/modbus/

sanderbaks commented 1 year ago

OMG .. This sucks ..

@Antoniocampo Lets help each other shall we? I'll try to find an other plugin

sanderbaks commented 1 year ago

@Antoniocampo I am looking at this now: https://www.youtube.com/watch?v=pnP-DLMsIPE

Antoniocampo commented 1 year ago

Hello.

It's quite difficult for me to do all that.

My knowledge of HomeAssistant is very limited.

However, I offer my collaboration to solve this problem :-)

NemesisXB commented 1 year ago

@Antoniocampo I am looking at this now: https://www.youtube.com/watch?v=pnP-DLMsIPE

This one seems to be for sofar inverters: https://github.com/wills106/homeassistant-solax-modbus Here is list of compatible inverters: https://github.com/wills106/homeassistant-solax-modbus/wiki/Compatible-Inverters

sanderbaks commented 1 year ago

@NemesisXB This wiki also states that you can only use the COM port not the Ethernet port. Man, this is driving me crazy..

I will soldier on :)

sanderbaks commented 1 year ago

I think I solved it. :)

Use this plugin:

Screenshot 2023-07-05 at 12 44 56

Select HTML and run it. It worked for me. Html means port 80. So, I will also try other plugins using port 80.. Very curious

Antoniocampo commented 1 year ago

It don´t works for me @sanderbaks .

I attach some images files with that I do

image image image

sanderbaks commented 1 year ago

pff super strange :-/. i am not sure what to do.. I mam now investigating the Solax tool ..

Antoniocampo commented 1 year ago

I have a raspberry pi 3 connected to the Deye 5kw inverter with a software called ICM solar.

I have installed docker + portainer + hacs + homeassistant on the rapsberry pi 3

Home assistant has immediately detected 3 shelly devices that I have at home and shows data reading, but when I have installed the solarman integration and entered the IP of the inverter, it does not show data.

I think the solarman integration only works with the wifi dongle.

Finally, I think I'm going to switch back to the wifi dongle.

sanderbaks commented 1 year ago

You are right, it is super strange. I wish there was someone in here that could help tackle this issue from the bottom up. Is there not some kind of piece of code to read the raw modbus communication? Or a very simple "trail and error" yaml profile in order to try to find one single register that can be easily found. I can confirm that 8899 is the port to use for communication.

Who can help ??

Screenshot 2023-07-09 at 20 39 33
sanderbaks commented 11 months ago

So, Update from my side: I removed the Ethernet logger and replaced it with a WiFi logger (they are not very expensive) .. It immediately worked. I also mailed with solarman in China. The confirmed that the Ethernet logger does not transit Modbus data.

So conclusion:

The Ethernet logger (LSE-3) does NOT work with any Home Assistant or Modbus depending app.

fluccats commented 11 months ago

Hey Guys !

Do you know here I can find the version 4 of component? I believe that my Logger is an old version and is not working with the last version....

Step 2 of preparation https://github.com/StephanJoubert/home_assistant_solarman#preparation

Check the version of the solarman logger. If the serial number starts with 17xxxxxxx, 21xxxxxxx or 40xxxxxxx (protocol V5), the component should work. If not, you may need to try the component for V4 of the protocol mentioned above.

Antoniocampo commented 11 months ago

So, Update from my side: I removed the Ethernet logger and replaced it with a WiFi logger (they are not very expensive) .. It immediately worked. I also mailed with solarman in China. The confirmed that the Ethernet logger does not transit Modbus data.

So conclusion:

The Ethernet logger (LSE-3) does NOT work with any Home Assistant or Modbus depending app.

I have done the same as you.

I have removed the ethernet dongle and bought the wifi dongle.

With the wifi dongle, he was connected to homeassistant in no time.

Turbotrent commented 10 months ago

Can you tell me where you bought the Wifi dongle?

axxel70 commented 10 months ago

Has anyone found a solution for the lse-3 ethernet logger? I've been looking for a solution for days but nothing!!!

michaelcorradi commented 10 months ago

I have the LSE-3 ethernet logger connected with an inverter ZCS HYD 6000 HP. And I'm looking for a solution to comunicate with solarman.

The LSW-3 is not expensive, but I don't want to use wireless configuration, because cabled configuration is more stable.

Do you think that we can find a solution?

axxel70 commented 10 months ago

I'm in the same situation, I would like to switch to the Ethernet version, it's much more reliable!!! but to date I haven't found any solution