zbigniewmotyka / home-assistant-solplanet

An Home Assistant integration for Solplanet inverters
MIT License
11 stars 1 forks source link

Adding support for EV-chargers ? #18

Open oscarhemberg opened 3 days ago

oscarhemberg commented 3 days ago

Hi, I have a large Solplanet installation and just found your integration. Installed perfectly and found both my inverters and both battery stacks and everything seems to run well. Just wanted to say thank you.

If you ever decide to add support also for their EV-chargers let me know. I have 2 of those as well and would be happy to help test.

Keep up the good work.

zubir2k commented 3 days ago

I am also curious which code represent EV charger. Perhaps could you share the output from this api: http://`inverter ip:8484/getdev.cgi?device=code`

Code that we know so far: 1 = wifi dongle 2 = inverter 3 = smart meter 4 = battery

you could try with 0 or 5 and see if there's any response

oscarhemberg commented 3 days ago

I get the same response with 0 and 5,6,7,... but they are just the dongle and same response. I however get no response with 1.

The EV chargers have separate IPs and connected to cloud directly I believe and not through dongle. I tried using the call with the EV charger IP but it refuses to connect.

On Mon, Nov 11, 2024 at 5:16 AM Zubir Jamal @.***> wrote:

I am also curious which code represent EV charger. Perhaps could you share the output from this api: http://inverter ip:8484/getdev.cgi?device=code

Code that we know so far: 1 = wifi dongle 2 = inverter 3 = smart meter 4 = battery

you could try with 0 or 5 and see if there's any response

— Reply to this email directly, view it on GitHub https://github.com/zbigniewmotyka/home-assistant-solplanet/issues/18#issuecomment-2467198089, or unsubscribe https://github.com/notifications/unsubscribe-auth/BENGHVQ6TT2G5TPTUGHPQJT2AAVQVAVCNFSM6AAAAABRQHKOLKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINRXGE4TQMBYHE . You are receiving this because you authored the thread.Message ID: @.***>

zbigniewmotyka commented 3 days ago

@oscarhemberg, how you can configure this ev charger (f.ex. to specify the WiFi network)? During this configuration, the solplanet application connects to the charger using WiFi? If yes, then it must be possible to connect somehow to this charger. If it is configured using another method (f.ex. Bluetooth ble) then there is a risk that it could be hard to read data in a similar way as for inverter.

oscarhemberg commented 3 days ago

They support BLE, wifi or Ethernet (and I think also RS585 but that I have not tried). I have mine with ethernet cable and they have separate IPs just through normal DHCP. Setup in the Solplanet App by scanning the QR code same as for the inverters and batteries. So for sure possible to connect to them but I just dont know what port and command they listen to.

--Oscar

On Mon, Nov 11, 2024 at 10:33 AM Zbigniew Motyka @.***> wrote:

@oscarhemberg https://github.com/oscarhemberg, how you can configure this ev charger (f.ex. to specify the WiFi network)? During this configuration, the solplanet application connects to the charger using WiFi? If yes, then it must be possible to connect somehow to this charger. If it is configured using another method (f.ex. Bluetooth ble) then there is a risk that it could be hard to read data in a similar way as for inverter.

— Reply to this email directly, view it on GitHub https://github.com/zbigniewmotyka/home-assistant-solplanet/issues/18#issuecomment-2467659132, or unsubscribe https://github.com/notifications/unsubscribe-auth/BENGHVW2DZT6G25HFJPHF3D2AB2XZAVCNFSM6AAAAABRQHKOLKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINRXGY2TSMJTGI . You are receiving this because you were mentioned.Message ID: @.***>

zubir2k commented 2 days ago

@oscarhemberg if the charger has indeed linked to the Solplanet app, then the local API should return with the EV charger values. Perhaps you could try login to the web (https://internation-cloud.solplanet.net/user/login) and see if you're able to view the EV charger there..

image

oscarhemberg commented 2 days ago

Yes, I see them there.

//Oscar

On Mon, Nov 11, 2024 at 2:39 PM Zubir Jamal @.***> wrote:

@oscarhemberg https://github.com/oscarhemberg if the charger has indeed linked to the Solplanet app, then the local API should return with the EV charger values. Perhaps you could try login to the web ( https://internation-cloud.solplanet.net/user/login) and see if you're able to view the EV charger there..

image.png (view on web) https://github.com/user-attachments/assets/b8699ccd-b999-483c-954d-800bad6dc611

— Reply to this email directly, view it on GitHub https://github.com/zbigniewmotyka/home-assistant-solplanet/issues/18#issuecomment-2468205609, or unsubscribe https://github.com/notifications/unsubscribe-auth/BENGHVX5RTSXIZSOVBNGAZL2ACXSPAVCNFSM6AAAAABRQHKOLKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINRYGIYDKNRQHE . You are receiving this because you were mentioned.Message ID: @.***>

zbigniewmotyka commented 2 days ago

A good point to start would be to use nmap (https://nmap.org/) to check if the charger has any open ports by running command nmap -vv -p- <charger-ip-address> (f.ex. nmap -vv -p- 192.168.1.100).

zubir2k commented 2 days ago

I get the same response with 0 and 5,6,7,... but they are just the dongle and same response. I however get no response with 1. The EV chargers have separate IPs and connected to cloud directly I believe and not through dongle. I tried using the call with the EV charger IP but it refuses to connect.

@oscarhemberg Come to think of it, the response that you got for device code = 0, 5-7 is pointing to the wifi dongle instead of code 1. In my case, I got 404 response if I tried calling device code 0, 5, 6 and 7. Perhaps maybe if you could share the json that you got earlier for these codes. Logically, if connected OK in Solplanet, the data should be available.

@zbigniewmotyka imho, its best that we stick to 1 source of connection. Unless of course the Solplanet logger doesn't include EV charger to begin with 😉

oscarhemberg commented 2 days ago

Attached are the JSON files. for code=1 I just get "request not found, 404" reply. and for 6,7,8... It is the same as 5. WHen I look at them I get confused as I can only see the response of one battery stack. I have two inverters in parallel and each has a separate battery stack. In the App/web everything shows up correctly including the smart meter and 2x battery packs. Also in HA the batteries both show up although I can not see one of them in the JSON files. I also tried the Nmap but could find no open ports on one of the EVchargers.

--Oscar

[image: Screenshot 2024-11-12 074546.png]

On Tue, Nov 12, 2024 at 5:49 AM Zubir Jamal @.***> wrote:

I get the same response with 0 and 5,6,7,... but they are just the dongle and same response. I however get no response with 1. The EV chargers have separate IPs and connected to cloud directly I believe and not through dongle. I tried using the call with the EV charger IP but it refuses to connect.

@oscarhemberg https://github.com/oscarhemberg Come to think of it, the response that you got for device code = 0, 5-7 is pointing to the wifi dongle instead of code 1. In my case, I got 404 response if I tried calling device code 0, 5, 6 and 7. Perhaps maybe if you could share the json that you got earlier for these codes. Logically, if connected OK in Solplanet, the data should be available.

@zbigniewmotyka https://github.com/zbigniewmotyka imho, its best that we stick to 1 source of connection. Unless of course the Solplanet logger doesn't include EV charger to begin with 😉

— Reply to this email directly, view it on GitHub https://github.com/zbigniewmotyka/home-assistant-solplanet/issues/18#issuecomment-2469596440, or unsubscribe https://github.com/notifications/unsubscribe-auth/BENGHVTFUKAYE4IX44SIHEL2AGCFXAVCNFSM6AAAAABRQHKOLKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINRZGU4TMNBUGA . You are receiving this because you were mentioned.Message ID: @.***>

zubir2k commented 2 hours ago

Attached are the JSON files. for code=1 I just get "request not found, 404" reply. and for 6,7,8... It is the same as 5. WHen I look at them I get confused as I can only see the response of one battery stack. I have two inverters in parallel and each has a separate battery stack. In the App/web everything shows up correctly including the smart meter and 2x battery packs. Also in HA the batteries both show up although I can not see one of them in the JSON files. I also tried the Nmap but could find no open ports on one of the EVchargers.

Hi Oscar @oscarhemberg, your response earlier doesnt have the JSON file. could you resend it again here. Thanks

oscarhemberg commented 2 hours ago

Strange, here they are again.

--Oscar

On Thu, Nov 14, 2024 at 9:08 AM Zubir Jamal @.***> wrote:

Attached are the JSON files. for code=1 I just get "request not found, 404" reply. and for 6,7,8... It is the same as 5. WHen I look at them I get confused as I can only see the response of one battery stack. I have two inverters in parallel and each has a separate battery stack. In the App/web everything shows up correctly including the smart meter and 2x battery packs. Also in HA the batteries both show up although I can not see one of them in the JSON files. I also tried the Nmap but could find no open ports on one of the EVchargers.

Hi Oscar @oscarhemberg https://github.com/oscarhemberg, your response earlier doesnt have the JSON file. could you resend it again here. Thanks

— Reply to this email directly, view it on GitHub https://github.com/zbigniewmotyka/home-assistant-solplanet/issues/18#issuecomment-2475671974, or unsubscribe https://github.com/notifications/unsubscribe-auth/BENGHVUGFO3YOP6ZPMETVPL2ARK6NAVCNFSM6AAAAABRQHKOLKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINZVGY3TCOJXGQ . You are receiving this because you were mentioned.Message ID: @.***>