Classic data on Home Assistant

Started by ClassicCrazy, March 01, 2026, 11:58:16 AM

Previous topic - Next topic

ClassicCrazy

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
system 1
Classic 150 , 5s3p  Kyocera 135watt , 12s Soneil 2v 540amp lead crystal 24v pack , Outback 3524 inverter
 5s 135w Kyocero , 3s3p 270w Kyocera   Classic 150 ,8s2p  Kyocera 225w to Hawkes Bay Jakiper 48v 20kwh  ,Gobel 16 kwh  lifepo4 Outback VFX 3648  8s2p 380w Rec pv EG4 6000XP

J4501

Thanks for posting this. I have wondered how this is done

qcda1

If it can help, I just finished a Home Assistant custom component that can read pretty much all the Midnite Classic's registers and more and create corresponding sensors/entities in Home Assistant that can be used to control and chart stuff and feed the nice Sunsync power flow chart.
The custom  component is in GitHub at https://github.com/qcda1/ha_midnite_classic

At installation, the user can select the values he want to be created as entities in HA from a total of 54 from which 11 are selected by default. The sampling period can be specified from 30s to 1 hour. The Classic must be on the same LAN than HA and a host name should be configured as this will be the name of the equipment in HA.

Here is a sample installation picture:


Regards,

Daniel.
1,2kW on tracker, 1,4kW fixed, 2xMidnite Classic150, Magnum MS4448PAE, 4xMapleLeaf 48VDC/100Ah LiFePO4 and Kohler 14RCA with homegrown monitoring/alerting system.