Jumpy07 / Solis---SolisCloud-and-Home-Assistant

Interconnect solution to allow Solis inverter to connect to Home Assistant without loosing the Solis Cloud functionality
32 stars 3 forks source link

Done the hardware now connection issues... #10

Closed ececconi99 closed 2 months ago

ececconi99 commented 4 months ago

I've logged into the ELFINEW11 hotspot and changed everything over to my home guest wifi network. I can access its web page using the new credentials. I also entered the ip address and port into the HA Solax integration configuration gui. HA says success but then shows no devices.

It occurs to that although I entered ip and port, how can there be any communication when there is nowhere to enter my guest wifi network name and password? What am I missing here?

Jumpy07 commented 4 months ago

You need to attach it to network ...SSID and WPA keySent from Outlook for Android

ececconi99 commented 4 months ago

Yes I’ve done that in the Elfin setup web page, but how does Home Assistant / Solax integration get to know about my guest wifi login?

Jumpy07 commented 4 months ago

Dont undestand the question...why are you using guest wifi.....is HA on the same subnet as the ElFIN ?Sent from Outlook for Android

ececconi99 commented 4 months ago

Yes both on 255.255.255.0 Elfin is 192.168.0.250 - I can see it and log into its setup page on a tablet on the same guest wifi.

HA is on a dedicated laptop with a wired ethernet connection. The solax integration configuration ends with "success" but then shows no devices (and obs. no entities)

ececconi99 commented 4 months ago

I'd really appreciate some more help on this, please. I've built the hardware and can login to the ELFIN hotspot and can change the web page access credentials. I think I can also change the SSID and password, but I have no idea how to change the WAN , LAN, STA or AP configurations. Your GITHUB page doesn't say anything about how to set up those fields. AFAICS, you only show the comms settings page. Jevjev's YT doesn't go into that either.

Jumpy07 commented 4 months ago

This is my config… WAN set your DNS server.. which will be your home router IP normally.

Set a static IP in LAN in case you loose DHCP.. and also set DHCP on..

Set Wifi as STA and add your SSID and Key

Once you have changed the settings don’t forget to hit save at bottom.. reboot the ELFIN

Use an IP scanner to find the ELFIN IP on the network… or check your DHCP table in your router.. you can take a note of the MAC address of ELFIN which will help you identify it on your network..

From: ececconi99 @.> Sent: Friday, March 1, 2024 11:51 AM To: Jumpy07/Solis---SolisCloud-and-Home-Assistant @.> Cc: Jumpy07 @.>; Comment @.> Subject: Re: [Jumpy07/Solis---SolisCloud-and-Home-Assistant] Done the hardware now connection issues... (Issue #10)

I'd really appreciate some more help on this, please. I've built the hardware and can login to the ELFIN hotspot and can change the web page access credentials. I think I can also change the SSID and password, but I have no idea how to change the WAN , LAN, STA or AP configurations. Your GITHUB page doesn't say anything about how to set up those fields. AFAICS, you only show the comms settings page. Jevjev's YT doesn't go into that either.

— Reply to this email directly, view it on GitHub https://github.com/Jumpy07/Solis---SolisCloud-and-Home-Assistant/issues/10#issuecomment-1973049590 , or unsubscribe https://github.com/notifications/unsubscribe-auth/A4HT5RFAQ4AO43ODVRINVJLYWBTTPAVCNFSM6AAAAABEALDUHSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZTGA2DSNJZGA . You are receiving this because you commented. https://github.com/notifications/beacon/A4HT5RASJU5RF77DKC4AJW3YWBTTPA5CNFSM6AAAAABEALDUHSWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTVTJMPM.gif Message ID: @. @.> >

ececconi99 commented 4 months ago

ELFINsetup

This is my config… WAN set your DNS server.. which will be your home router IP normally. Set a static IP in LAN in case you loose DHCP.. and also set DHCP on.. Set Wifi as STA and add your SSID and Key Once you have changed the settings don’t forget to hit save at bottom.. reboot the ELFIN Use an IP scanner to find the ELFIN IP on the network… or check your DHCP table in your router.. you can take a note of the MAC address of ELFIN which will help you identify it on your network. >>

Thanks for the reply. Can you clarify the WAN settings, please? There are 5 fields when the DCHP switch is OFF: DCHP - on or off? WAN IP - is this my router ip address? Subnet Mask 255.255.255.0 Gateway - ? (this is where I had put my router IP address - is that wrong?) DNS - ?

As you can tell, I don't understand why a WAN section is needed. I thought one logged into the hotspot, changed the default login credentials, changed the device IP and and changed its WIFI ssid and password. From then on the ELFIN should be on my network. Clearly not so and there is more to this than I understand. Sorry.

ececconi99 commented 4 months ago

Update: I think I have the measure of it now. Many thanks for all your help and patience.

Your last response implied that only my router IP address was required for the WAN DNS entry and this was the only field visible if DHCP was left ON. So that s what I did. You said to leave DHCP on in the LAN setting too. This seems to result in the device ignoring what I had entered in the LAN IP. I could not access the browser page at the IP address I had set (192.168.0.250) ; nor could I ping it. So, I went looking in my router DHCP table and found it had given the ELFIN the address 192.168.0.91 So I set that as the fixed IP in my router and all was well from then on in. I'll tap in beteween the inverter and dongle as soon as I get mains for the power adapter in the loft sorted.

ececconi99 commented 4 months ago

Connected it all today. Ran the Solax integration using MODBUS address 1 (a guess), Solis inverter, EW11 IP address and port. HA Solax said "success" and "initialising" but ended with no devices no entities. I emailed Solis support for the miodbus number (I could not find it on soliscloud or my inverter webpage). Meanwhile, I tried various modbus numbers and worked my way down the SOLAX integration inverter list starting at Growatt. No dice until I tried SRNE. Success! HA SOLAX int now reports 1 device and 24 entities. So FYI, the Solis inverter congfig in the SOLAX integration does not seem to work. I will switch over to asking questions of wills106/homeassistant-solax-modbus If you have any thoughts on this, I'd love to know.

Jumpy07 commented 4 months ago

Its working fine for many people...so must be your config......do you see any data in the EW11 status screen ?...Sent from Outlook for Android

ececconi99 commented 4 months ago

No, not at all. All zeros on the status page Serial Port State and .Communication State - 'netp' sections. I must be missing something. Maybe a wire has come loose. I'll keep digging

On Sun, 3 Mar 2024 at 14:30, Jumpy07 @.***> wrote:

Its working fine for many people...so must be your config......do you see any data in the EW11 status screen ?...Sent from Outlook for Android

— Reply to this email directly, view it on GitHub https://github.com/Jumpy07/Solis---SolisCloud-and-Home-Assistant/issues/10#issuecomment-1975181809, or unsubscribe https://github.com/notifications/unsubscribe-auth/BFHBWVEQAUETG6UNLKJXZVTYWMXXVAVCNFSM6AAAAABEALDUHSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZVGE4DCOBQHE . You are receiving this because you authored the thread.Message ID: @.*** .com>

-- Enrico Cecconi 53 Punch Croft New Ash Green DA3 8HR 01474 873640 @. @.>

ececconi99 commented 4 months ago

Checked the wiring - no fault found. This is what I bought https://www.aliexpress.com/item/1005005201834192.html?spm=a2g0o.order_list.order_list_main.10.7c5d1802sRvjp4 I notice yours has GC-1201R in the picture, Mine is GC-1201S (two master and one slave RS485 repeater photoelectric isolation Modbus Dual Host Hub)

The inverter datalogger has all its light on and the Soliscloud is working fine so I'm thinkuing the first RS485 feed through is working. The second one going to the EW11 measures ok continuity-wise. Does it matter which one goes to the datalogger and which to the ELFIN? A1/B1 or A2/B2? Did You use any terminating resistors at any point on the busses? Port no, 502 or 8899? Protocol Modbus - correct?

The EW11 ethernet light is on and flashes occasionally. The EW11 browser page still has only zeros in Serial Port and communication State sections. I'm out of ideas for further checking. Can you suggest anything?

I'm thinking until I get some non zero data throughput I can't really progress any further :-(

Jumpy07 commented 4 months ago

Check you have A-A and B-B

From: ececconi99 @.> Sent: Monday, March 4, 2024 2:59 PM To: Jumpy07/Solis---SolisCloud-and-Home-Assistant @.> Cc: Jumpy07 @.>; Comment @.> Subject: Re: [Jumpy07/Solis---SolisCloud-and-Home-Assistant] Done the hardware now connection issues... (Issue #10)

Checked the wiring - no fault found. The Solis cloud is working fine so the first RS485 feed through is working. The second one going to the EW11 measures ok continuity-wise. The EW11 ethernet light is on and flashes occasionally. The EW11 browser page still has only zeros in Serial Port and communication State sections. I'm out of ideas for further checking. Can you suggest anything?

— Reply to this email directly, view it on GitHub https://github.com/Jumpy07/Solis---SolisCloud-and-Home-Assistant/issues/10#issuecomment-1976775102 , or unsubscribe https://github.com/notifications/unsubscribe-auth/A4HT5RGOK7E6U4QMJWTTAB3YWSD2BAVCNFSM6AAAAABEALDUHSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZWG43TKMJQGI . You are receiving this because you commented. https://github.com/notifications/beacon/A4HT5RFGFTWR2RZANROIQD3YWSD2BA5CNFSM6AAAAABEALDUHSWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTV2MY34.gif Message ID: @. @.> >

ececconi99 commented 4 months ago

I checked and I had A-A and B-B. Still no data in the EW11 status screen.

So... I swapped the wires around A-B and B-A. Lights started flashing and I got data in the EW11 status screen! I guess the GC-1201 and EW11 manufacturers uses a different naming convention.

Back to Home assistant and I deleted and re-installed the SOLAX Modbus integration. Then I configured it, using slave/master, port 502 and "solis". It took much longer to initialize but then still nothing; no devices, no entities.

Can you confirm that slave/master, port 502 and "solis" are the correct HA SOLAX integr configuration parameters, please?

ececconi99 commented 4 months ago

I'm reminded of RS232 cables BITD when connecting to dumb peripherals you used a straight cable; when connecting computer to computer you had to use a so called "null-modem" cross-wired cable. I guess I can close this now that the hardware seems to be working. I'll transfer over to wills106/homeassistant-solax-modbus to try to sort out the HACS Solax Modbus config.

Many thanks for all your help and patience. Do you have a "buy me a coffee" somewhere?

I think you and JevJev should consider mentioning that RS485 naming conventions can be a bit flakey and that trial and error may be necessary. Your wiring diagram may not apply.

ececconi99 commented 4 months ago

I've had two replies via facebook and YT telling me "You can't split the rs485 out and use the ha solax modbus addon. It clearly states in the manual for the add on its needs (sic) sole access or the rs485 port." I assume they are wrong and the GC-1201 RS485 / Modbus Dual Host Adapter gets round this. Can you confirm this?

Can you also confirm that it's the inverter which is the slave and the datalogger and elfin that are the two masters?

Jumpy07 commented 4 months ago

Did you read what the GC-1201 does ? clearly states two masters... Did you read the Github page ?

RS485 and Modbus are a single master multiple slave in theory.. hence why you need the GC-1201... otherwise I would have wasted my time writing the Github entry...

There are other solutions that you are free to Google as well...

------ Original Message ------ From: "ececconi99" @.> To: "Jumpy07/Solis---SolisCloud-and-Home-Assistant" @.> Cc: "Jumpy07" @.>; "Comment" @.> Sent: Thursday, 7 Mar, 24 At 15:23 Subject: Re: [Jumpy07/Solis---SolisCloud-and-Home-Assistant] Done the hardware now connection issues... (Issue #10)

I've had two replies via facebook and YT telling me "You can't split the rs485 out and use the ha solax modbus addon. It clearly states in the manual for the add on its needs (sic) sole access or the rs485 port." I assume they are wrong and the GC-1201 RS485 / Modbus Dual Host Adapter gets round this. Can you confirm this? — Reply to this email directly, view it on GitHub https://github.com/Jumpy07/Solis---SolisCloud-and-Home-Assistant/issues/10#issuecomment-1983746971 , or unsubscribe https://github.com/notifications/unsubscribe-auth/A4HT5RENKEEP3KKLIU5L4FLYXCA7FAVCNFSM6AAAAABEALDUHSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBTG42DMOJXGE . You are receiving this because you commented.Message ID: @.***>

ececconi99 commented 4 months ago

Yes, absolutely read your page many times... I didn't mean to cause offence, I just thought you'd be amused that I could get those sort of comments when I'd linked to both your Github page and Jevjev's YT video in my questions!!! I specifically opted for your solution because it only needed one relatively simple hardware addition and then everything else should be possible within HA via wifi. I didn't want to have to run an ethernet cable up to the loft (although my ELFIN seems to keep going to sleep, so I may reconsider) I have finally got a sensible suggestion from Solis re the inverter modbus address. Looks promising, but I have to go up into the loft to access and check or set it up in the actual Inverter display panel.

ececconi99 commented 3 months ago

Update. I got it working. The HA integration Solax Modbus now reports 1 device 145 entities. I tried the Elfin RS485 A and B lines both ways round and it worked when I went back to A to A and B to B. If I had to guess, I would say that I was probably clamping down onto plastic insulation rather than copper wire in one of the hub screw connectors.

Jumpy07 commented 2 months ago

Resolved