For the ones that didn’t manage to use AlphaESS API, here comes the compatible configuration using Modbus RTU:
the serial cable uses the pair on ports 4 and 5 for A and B on RS485. The port on the battery uses a RJ45 plug, so the two middle cables (pair) are the ones transporting the CAN/Modbus RTU data
you can install and use mbpoll on ubuntu command line to test
command would be something link mbpoll -m rtu -R -a 0x55 -b 9600 -t 3 -r 0x0014 -c 2 /dev/serial/by-id/usXXXXXXXXXXXX -B -v -d 8 -s 1 -P none
#modbus mapping is available online
- name: alphaess
type: serial
method: rtu
# insert your USB port converter here (you can explore the directories using command line or in hassio menus
port: /dev/serial/by-id/usb-1a86_XXXXX
baudrate: 9600
stopbits: 1
bytesize: 8
parity: N
message_wait_milliseconds: 1000
retries: 20
retry_on_empty: true
close_comm_on_error: false
sensors:
- name: aeb Total energy feed to Grid (PV)
unit_of_measurement: W
slave: 85
address: 0x0090
data_type: float64
scan_interval: 10
scale: 1
- name: aeb Battery SOC
unit_of_measurement: '%'
slave: 85
address: 0x0102
data_type: uint16
scan_interval: 15
scale: 0.1