Sunsynk + Home Assistant

I don't se a reason why the cable shouldn't work, unless the way it is made is different than how it needs to be.

Honest suggest, grab the device that I bought and make your own cables as needed. Would be a lot easier to resolve and get yourself up and running. But up to you if you want to spend more money to make it work,
I agree....

With regards to the cables that you made up yourself, and the way you connected it all between your inverter and PC/Raspberry PI.

Would you mind telling me what you did exactly please, if you have the time?
Thanks once again.
 
Last edited:
Basically followed the instructions on the addon github, crimp the rj45 to A spec and connected the cables as needed. Just connect the ethernet side to network switch and configure the converter as per screenshot in https://github.com/kellerza/sunsynk/issues/96 (my last post there with screenshot). Just make sure stop bit is set to 1.
 
Basically followed the instructions on the addon github, crimp the rj45 to A spec and connected the cables as needed. Just connect the ethernet side to network switch and configure the converter as per screenshot in https://github.com/kellerza/sunsynk/issues/96 (my last post there with screenshot). Just make sure stop bit is set to 1.
Hi there w1tw0lf, hereby an update from our discussion so far.

I purchased the same adaptor you bought from Micro Robotics ( ) and tried to get it working last night when I got home from work.

After several attempts, I was not able to get the Sunsynk Inverter Add-on to receive any data.

Inverter connection to S2E
Today I decided to crimp a new UTP cable (based on the A spec following https://github.com/kellerza/sunsynk as a guide) just in case the one I used was faulty.

I plugged the one end of the UTP cable into the RS485 port of my Sunsynk 8.8kW inverter, and the exposed wires on the other end is connected to the 3-pin block of the Serial to Ethernet (S2E) Converter as follows:

Inverter on the left <--> S2E convertor (3-pin block on the right)
Pin 1 - Green/White <--> Middle hole B(-)
Pin 2
- Green <--> Left hole A(+)
Pin 3
- Orange/White <--> Right hole G

Can you please confirm if the above is correct?

S2E Configuration
I once again confirmed that the configuration of the S2E convertor matches your setup (based on ), with the exception of course of my statically assigned IP address "192.168.1.7", and the "Stop Bits" which I set to "1".

Sunsynk Inverter Add-on config
I also updated my Sunsynk Inverter Add-on (YAML) config to reflect the S2E static IP address as follows:

PORT: tcp://192.168.1.7:502
DEVICE: /dev/ttyS3
DRIVER: umodbus
SUNSYNK_ID: "xHxIxDxDxExN"
SENSOR_PREFIX: ""
SENSORS:
- battery_temperature:mean
- battery_voltage:mean
- etc
- etc
- etc
READ_SENSORS_BATCH_SIZE: 70
NUMBER_ENTITY_MODE: auto
PROFILES: []
MODBUS_SERVER_ID: 1
MQTT_HOST: 192.168.1.75
MQTT_PORT: 1883
MQTT_USERNAME: mqtt-user
MQTT_PASSWORD: xHxIxDxDxExN
DEBUG: 0

At this point I am not sure what or where to check anymore, as I am 100% sure the UTP cable between the S2E convertor and the inverter is correct.

I am able to access the S2E configuration page just fine, and I can also ping the S2E from the HA terminal.

Everything can "talk" to each other, but I am out of ideas at the moment, if you could shed some light on this it would be most welcomed.

Thank you, appreciated.
 
Hi there w1tw0lf, hereby an update from our discussion so far.

I purchased the same adaptor you bought from Micro Robotics ( ) and tried to get it working last night when I got home from work.

After several attempts, I was not able to get the Sunsynk Inverter Add-on to receive any data.

Inverter connection to S2E
Today I decided to crimp a new UTP cable (based on the A spec following https://github.com/kellerza/sunsynk as a guide) just in case the one I used was faulty.

I plugged the one end of the UTP cable into the RS485 port of my Sunsynk 8.8kW inverter, and the exposed wires on the other end is connected to the 3-pin block of the Serial to Ethernet (S2E) Converter as follows:

Inverter on the left <--> S2E convertor (3-pin block on the right)
Pin 1 - Green/White <--> Middle hole B(-)
Pin 2
- Green <--> Left hole A(+)
Pin 3
- Orange/White <--> Right hole G

Can you please confirm if the above is correct?

S2E Configuration
I once again confirmed that the configuration of the S2E convertor matches your setup (based on ), with the exception of course of my statically assigned IP address "192.168.1.7", and the "Stop Bits" which I set to "1".

Sunsynk Inverter Add-on config
I also updated my Sunsynk Inverter Add-on (YAML) config to reflect the S2E static IP address as follows:

PORT: tcp://192.168.1.7:502
DEVICE: /dev/ttyS3
DRIVER: umodbus
SUNSYNK_ID: "xHxIxDxDxExN"
SENSOR_PREFIX: ""
SENSORS:
- battery_temperature:mean
- battery_voltage:mean
- etc
- etc
- etc
READ_SENSORS_BATCH_SIZE: 70
NUMBER_ENTITY_MODE: auto
PROFILES: []
MODBUS_SERVER_ID: 1
MQTT_HOST: 192.168.1.75
MQTT_PORT: 1883
MQTT_USERNAME: mqtt-user
MQTT_PASSWORD: xHxIxDxDxExN
DEBUG: 0

At this point I am not sure what or where to check anymore, as I am 100% sure the UTP cable between the S2E convertor and the inverter is correct.

I am able to access the S2E configuration page just fine, and I can also ping the S2E from the HA terminal.

Everything can "talk" to each other, but I am out of ideas at the moment, if you could shed some light on this it would be most welcomed.

Thank you, appreciated.
I just got it to work!

What I found was the RS232 configuration on the Serial-to-Ethernet adaptor had the same port number (502) assigned as the RS485 port, I simply changed the RS485 port number from 502 to 510 and voila!

All the stats immediately started pulling in from the Sunsynk inverter.

Off to do some more panel beating in HA...
; - )

Cheers for now
 
Hi All. I've made a number of updates to the Sunsynk Power Flow Card. You can now install it via HACS as a custom repository. Its also much easier to setup if you reading the correct modbus registers. :D


View attachment 1518081
Awesome card !! Looks amazing. Been using it for the last week or 2.

I am using it with https://github.com/kellerza/sunsynk. Some sensors give different values, like the grid connected status, which is 1 and 0 and the card uses on/off. Created template sensors to work around it.
 
Hi All. I've made a number of updates to the Sunsynk Power Flow Card. You can now install it via HACS as a custom repository. Its also much easier to setup if you reading the correct modbus registers. :D


View attachment 1518081

Very cool.

Would there be any way to turn the Inverter icon off or make it smaller?

Primary reason I don’t use it because it just doesn’t fit into my dashboard as the minimum size is too big.

I could actually be quite happy with no icons at all or smaller ones all round.
 
Very cool.

Would there be any way to turn the Inverter icon off or make it smaller?

Primary reason I don’t use it because it just doesn’t fit into my dashboard as the minimum size is too big.

I could actually be quite happy with no icons at all or smaller ones all round.
I'm always looking for suggestions and ideas to make it better. I can expose the height and width attributes as card config options and you can scale it but things get small as you need to keep the aspect ratio for example, 100%,75%,50%

1683131836888.png1683131739249.png1683131784148.png
 
I've logged a pull request to have it added to HACS. For now you can add it as a custom repository. CLick on front end and then the three dots on the right. Select custom reositories and past the github link.

1683139353756.png

Yeah I figured it would be a bit tricky, which is why I just stuck with the standard energy card.
I think I''ve figured it out. Should be easy enought to add a scale attribute

1683139506210.png

Whats nice is you can also scale it by 150% and have a really big card for tablet

1683139575102.png
 
@Slip , Thanks for this really cool flow card.
As mentioned already, issue with grid connected status and Inverter status.
I've made a few changes on my instance. Added Transformer Temp instead of current as I feel it is more important thing to see. I have also removed grid input power at Inverter. Also added green dot for grid (My OCD didn't like only having a dot sometime during the day)
Also like the new data added, like battery runtime, daily solar and daily load.
Thanks again for a really nice addition to Home Assistant

Edit: Just remembered there is an issue where your battery icons also do not update according to SoC, I also had to fiddle in the code to get right.
1683139958555.png
 
Thanks for the feedback and I'm glad you find it useful. There has been a complete rewrite of the card so those issue should all be fixed now. Try the new card from the master branch and let me know if you find any other problems.
There is still the old branch if you prefer to customise the look and feel i.e. add your own elements., change layout. etc
 
Thanks for the feedback and I'm glad you find it useful. There has been a complete rewrite of the card so those issue should all be fixed now. Try the new card from the master branch and let me know if you find any other problems.
There is still the old branch if you prefer to customise the look and feel i.e. add your own elements., change layout. etc

That battery runtime calculator you have there on the right is quite interesting.

Care to share details?
 
Top
Sign up to the MyBroadband newsletter
X