Homeassistant Multiplus 2 with JK-BMS

Hello,

i have a multiplus 2 three phase
whits 3 batterys 48v 14.4kw

now i want to add my batterys in homeassistent energy dashboard
if i read the modbus out
dont work

- name: "VE Battery Discharged Energy"
  unit_of_measurement: "kWh"
  data_type: uint16
  slave: 245
  address: 301
  scale: 0.1
  precision: 0
  device_class: energy
  state_class: total_increasing

- name: "VE Battery Charged Energy"
  unit_of_measurement: "kWh"
  data_type: uint16
  slave: 245
  address: 302
  #scale: 0.1
  #precision: 0
  device_class: energy
  state_class: total_increasing

i need help

If those are JK-PBx, I recomend this solution (communication via RS485):

And this main solution for intercommunicating with Cerbo GX: