Go to Settings/ Devices and Services in HA
add modbus to Home Assistant
Then add this to your HA config ( change to your classic IP adress )
modbus:
- name: modbus_hub
type: tcp
host: 192.168.1.1 # your classic ip address
port: 502
sensors:
- name: "Classic Battery Voltage"
unique_id: "classic_batt_v_main"
address: 4114
input_type: holding
unit_of_measurement: "V"
scale: 0.1
precision: 1
- name: "Classic Input Voltage"
unique_id: "classic_pv_v_main"
address: 4115
input_type: holding
unit_of_measurement: "V"
scale: 0.1
precision: 1
- name: "Classic Battery Current"
unique_id: "classic_batt_amps_main"
address: 4370
input_type: holding
unit_of_measurement: "A"
scale: 0.1
precision: 1
- name: "Classic Power Output"
unique_id: "classic_watts_main"
address: 4118
input_type: holding
unit_of_measurement: "W"
- name: "Classic Energy Today"
unique_id: "classic_kwh_today_main"
address: 4117
input_type: holding
unit_of_measurement: "kWh"
scale: 0.1
- name: "Classic Battery Charge State"
unique_id: "classic_state_raw"
address: 4119
input_type: holding
- name: "Classic Reason For Resting Code"
unique_id: "classic_resting_raw"
address: 4274
input_type: holding
Larry