wills106 / homeassistant-config

My Home Assistant Config as it evolves
36 stars 15 forks source link

experimental/solax_test.yaml doesn't match X1 Hybrid registers via JSON API #19

Open M0LTE opened 2 years ago

M0LTE commented 2 years ago

Not an issue really but just a note, since I can't add a comment.

I have an X1 Hybrid with Pocket Wi-Fi and pulling data via the /?optType=ReadRealTimeData endpoint. This returns JSON - 200 parameters.

I was hoping that these would line up with what you've documented here, for the X3, but sadly not the case.

I can't find any documentation yet about most of these values and while I've picked out some key ones (string 1 power, string 2 power, battery SoC), there's many which are very confusing.

I'm also looking for a way to set the % max battery SoC for overnight charging via API as well - this will be key in the summer months.

I'm aware of the following endpoints but no documentation anywhere.

?optType=ReadRealTimeData ?optType=ReadSetData ?optType=BatteryMinEnergy&BatteryMinEnergyValue={{{payload}}}& ?optType=SolarChargerUseMode&SolarChargerUseModeValue={{{payload}}}& ?optType=Password&PasswordValue={{{password}}} ?optType=ActivePowerLimit&PasswordValue={{{password}}}&ActivePowerLimitValue={{{payload}}}

Cheers, and any feedback welcome. Oh, and port 502 isn't open on the Pocket Wi-Fi.

wills106 commented 2 years ago

I can't really give any advice or comment on anything PocketLAN / PocketWiFi as I don't own either.

If you can, I would strongly suggest you run an ethernet cable direct to your Inverter and use this https://github.com/wills106/homsassistant-solax-modbus

M0LTE commented 2 years ago

Hi @wills106 thanks for this.

My inverter is a X1-Hybrid-5.0-D. It does not appear to have its own onboard Ethernet - only RS485, and a USB port, into which you can plug the PocketLAN or PocketWiFi.

Are you aware of anything that's been done with the RS485 port? Any other comments / thoughts?

wills106 commented 2 years ago

I am guessing you have a Gen4 Inverter then if you don't have the built in Ethernet port?

If you look in the Wiki on the Integration repository there is documentation on how to use either an RS485 - USB dongle or a RS485 - Ethernet adaptor.

M0LTE commented 2 years ago

It's only this evening that I found that the port marked "COM/LCD" is in fact an RS485 port.

The very next resource I found after typing my last comment was the wiki describing the integration. Thank you, can't wait to see if this works. RS485 to Ethernet adapter will be here tomorrow.

wills106 commented 2 years ago

When you get chance could you have a look at this post If your Inverter is different to that list could you reply with the details please.

Also fell free to join in any conversations on there.

M0LTE commented 2 years ago

Will do, thanks.

mc4wrk commented 5 months ago

I will, sorry to bother you but I lost your integration and now I can't reinstall it. I have received the following message "Repository wills106/homeassistant-solax-modbus not found" . This means that the integration with USB dongle modbus does not work anymore? Should I go anothwer way and try what you suggested above? RS485 to Ethernet? Thank you for reply and help. All the Best.

mc4wrk commented 5 months ago

I mean Will.