Skip to content

Sensors

Sensor definitions

Your inverter exposes data/sensors in specific modbus registers. The inverter's modbus protocol document will provide information of what the register represents and the format of the data in the register.

The sensor definitions were created from these modbus protocol documents. Individual sensor definitions include the modbus register number (or several registers), the name of the sensor, the unit and other optional parameters.

When you select your inverter type, the corresponding set of definitions will be used.

yaml
SENSOR_DEFINITIONS: single-phase / three-phase [low voltage] / three-phase-hv [high voltage]

You can find the detail of the definitions on Github and definitions are selected in the configuration with one of the following options:

Adding sensors

You can add sensors under the SENSORS and SENSORS_FIRST_INVERTER keys in the configuration.

For example, if you want to add the Battery SOC sensor, you can use any of the following formats. In the logs you will see the first format (no spaces and all lower case).

yaml
SENSORS:
  - battery_soc
  - Battery SOC

This page contains detail of available sensors. If you do not find the sensor you are looking for, you can use the Modbus protocol document of your inverter to create your own custom sensor.

Available sensors

The following table shows the sensor name and Modbus register(s) used to get/set the value.

Name1PH1PH-16kw3PH3PH-hv
Device type0000
Protocol2222
Serial(3, 4, 5, 6, 7)(3, 4, 5, 6, 7)(3, 4, 5, 6, 7)(3, 4, 5, 6, 7)
Battery temperature182182586
Battery voltage183183587
Battery SOC184184588
Battery power190190590
Battery current191191591
Battery charge limit current314314
Battery discharge limit current315315
Inverter power175175(636, 694)(636, 694)
Inverter voltage154154
Inverter current164164
Inverter frequency193193638638
Grid frequency7979609609
Grid power169169(625, 690)(625, 690)
Grid LD power167167
Grid L2 power168168(623, 688)(623, 688)
Grid voltage150150
Grid current(160, 161)(160, 161)(610, 611, 612)(610, 611, 612)
Grid CT power172172(619, 708)(619, 708)
Load power178178(653, 659)(653, 659)
Load L1 power176176(650, 656)(650, 656)
Load L2 power177177(651, 657)(651, 657)
Load frequency192192655655
AUX power166166
AUX voltage181181
AUX frequency196196
PV1 power186186672672
PV1 voltage109109676676
PV1 current110110677677
PV2 power187187673673
PV2 voltage111111678678
PV2 current112112679679
PV3 power188188674674
PV3 voltage113113680680
PV3 current114114681681
Essential power(175, 169, 166)(175, 169, 166)
Essential 1 power(175, 167, 166)(175, 167, 166)
Essential 2 power(175, 169, 166)(175, 169, 166)
Non-essential power(172, 167)(172, 167)
Day active energy6060502502
Day battery charge7070514514
Day battery Discharge7171515515
Day grid import7676520520
Day grid export7777521521
Day load energy8484526526
Day PV energy108108529529
Day reactive energy6161
Month grid energy6767
Month load energy6666
Month PV energy6565
Total active energy(63, 64)(63, 64)(506, 507)(506, 507)
Total battery charge(72, 73)(72, 73)(516, 517)(516, 517)
Total battery discharge(74, 75)(74, 75)(518, 519)(518, 519)
Total grid export(81, 82)(81, 82)(524, 525)(524, 525)
Total grid import(78, 80)(78, 80)(522, 523)(522, 523)
Total load energy(85, 86)(85, 86)(527, 528)(527, 528)
Total PV energy(96, 97)(96, 97)(534, 535)(534, 535)
Year grid export(98, 99)(98, 99)
Year load energy(87, 88)(87, 88)
Year PV energy(68, 69)(68, 69)
Rated power(16, 17)(16, 17)(20, 21)(20, 21)
Fault(103, 104, 105, 106)(103, 104, 105, 106)(555, 556, 557, 558)(555, 556, 557, 558)
Overall state5959500500
SD status9292
DC transformer temperature9090540540
Environment temperature9595
Radiator temperature9191541541
Grid connected194194552552
Date time (R/W)(22, 23, 24)(22, 23, 24)(62, 63, 64)(62, 63, 64)
Inverter enabled (R/W)43438080
Control mode200200
Grid charge enabled (R/W)232232130130
Generator input (R/W)235235
Battery charging voltage312312
Bat1 SOC603603
Bat1 Cycle611611
Battery Equalization voltage (R/W)2012019999
Battery Absorption voltage (R/W)202202100100
Battery Float voltage (R/W)203203101101
Battery shutdown capacity (R/W)217217115115
Battery restart capacity (R/W)218218116116
Battery low capacity (R/W)219219117117
Battery shutdown voltage (R/W)220220118118
Battery restart voltage (R/W)221221119119
Battery low voltage (R/W)222222120120
Priority Load (R/W)243243141141
Load Limit (R/W)244244142142
Max Solar power (R/W)5353340340
Max Sell power (R/W)245245
Solar Export (R/W)247247145145
Use Timer (R/W)248248146146
Peak shaving (R/W)280280
Gen peak shaving (R/W)280280178178
Grid peak shaving (R/W)280280178178
Grid always on (R/W)280280
Gen peak shaving power (R/W)292292
Grid peak shaving power (R/W)293293191191
Prog1 Time (R/W)250250148148
Prog2 Time (R/W)251251149149
Prog3 Time (R/W)252252150150
Prog4 Time (R/W)253253151151
Prog5 Time (R/W)254254152152
Prog6 Time (R/W)255255153153
Prog1 power (R/W)256256154154
Prog2 power (R/W)257257155155
Prog3 power (R/W)258258156156
Prog4 power (R/W)259259157157
Prog5 power (R/W)260260158158
Prog6 power (R/W)261261159159
Prog1 Capacity (R/W)268268166166
Prog2 Capacity (R/W)269269167167
Prog3 Capacity (R/W)270270168168
Prog4 Capacity (R/W)271271169169
Prog5 Capacity (R/W)272272170170
Prog6 Capacity (R/W)273273171171
Prog1 charge (R/W)274274172172
Prog2 charge (R/W)275275173173
Prog3 charge (R/W)276276174174
Prog4 charge (R/W)277277175175
Prog5 charge (R/W)278278176176
Prog6 charge (R/W)279279177177
Prog1 mode (R/W)274274172172
Prog2 mode (R/W)275275173173
Prog3 mode (R/W)276276174174
Prog4 mode (R/W)277277175175
Prog5 mode (R/W)278278176176
Prog6 mode (R/W)279279177177
Prog1 voltage (R/W)262262160160
Prog2 voltage (R/W)263263161161
Prog3 voltage (R/W)264264162162
Prog4 voltage (R/W)265265163163
Prog5 voltage (R/W)266266164164
Prog6 voltage (R/W)267267165165
Grid Charge Battery current (R/W)230230128128
Battery Max Charge current (R/W)210210108108
Battery Max Discharge current (R/W)211211109109
BMS Protocol (R/W)325325
Inverter L1 power(633, 691)(633, 691)
Inverter L2 power(634, 692)(634, 692)
Inverter L3 power(635, 693)(635, 693)
Inverter L1 voltage627627
Inverter L2 voltage628628
Inverter L3 voltage629629
Inverter L1 current630630
Inverter L2 current631631
Inverter L3 current632632
Grid L1 power(622, 687)(622, 687)
Grid L3 power(624, 689)(624, 689)
Grid L1 voltage598598
Grid L2 voltage599599
Grid L3 voltage600600
A Phase Power on the Inner Side of the Grid(604, 700)(604, 700)
B Phase Power on the Inner Side of the Grid(605, 701)(605, 701)
C Phase Power on the Inner Side of the Grid(606, 702)(606, 702)
Total Active Power from Side to Side of the Grid(607, 703)(607, 703)
Grid Side - Inside Total Apparent Power(608, 704)(608, 704)
Grid CT L1 power(616, 705)(616, 705)
Grid CT L2 power(617, 706)(617, 706)
Grid CT L3 power(618, 707)(618, 707)
Grid CT current(613, 614, 615)(613, 614, 615)
Load L3 power(652, 658)(652, 658)
Load L1 voltage644644
Load L2 voltage645645
Load L3 voltage646646
Gen L1 voltage661661
Gen L2 voltage662662
Gen L3 voltage663663
Gen L1 power(664, 668)(664, 668)
Gen L2 power(665, 669)(665, 669)
Gen L3 power(666, 670)(666, 670)
Gen power(667, 671)(667, 671)
Gen L1 current671671
Gen L2 current672672
Gen L3 current673673
UPS Load L1 power(640, 696)(640, 696)
UPS Load L2 power(641, 697)(641, 697)
UPS Load L3 power(642, 698)(642, 698)
UPS Load total power(643, 699)(643, 699)
PV power(672, 673, 674, 675)(672, 673, 674, 675)
PV4 power675675
PV4 voltage682682
PV4 current683683
Day Gen Energy536536
INV Relay Status552552
Undefined Load Relay Status552552
Grid Relay Status552552
Generator Relay Status552552
Grid Give Power to Relay Status552552
Dry Contact1 Status552552
Dry Contact2 Status552552
Grid Charge Start Battery Voltage (R/W)126126
Grid Charge Start Battery SOC (R/W)127127
Export Limit power (R/W)143143
Battery Capacity current (R/W)102102
System Zero Export power (R/W)104104
Battery Equalization Days (R/W)105105
Battery Equalization Hours (R/W)106106
Generator Charge Battery current (R/W)125125
Generator Charge Start Battery Voltage (R/W)123123
Generator Charge Start Battery SOC (R/W)124124
Generator Charge enabled (R/W)129129
Battery Type (R/W)111111
Battery Wake Up (R/W)112112
Battery Resistance (R/W)113113
Battery Charge Efficiency114114
Generator Port Usage (R/W)133133
Prog Time Of Use Enabled (R/W)146146
Prog Monday Enabled (R/W)146146
Prog Tuesday Enabled (R/W)146146
Prog Wednesday Enabled (R/W)146146
Prog Thursday Enabled (R/W)146146
Prog Friday Enabled (R/W)146146
Prog Saturday Enabled (R/W)146146
Prog Sunday Enabled (R/W)146146
Microinverter export to grid cutoff (R/W)178178
On Grid always on (R/W)178178
External relay (R/W)178178
Loss of lithium battery report fault (R/W)178178
DRM (R/W)178178
US version grounding fault (R/W)178178
Generator AC Couple Frz High (R/W)131131
Generator Off SOC (R/W)135135
Generator On SOC (R/W)137137
Generator Max Operating Time (R/W)121121
Generator Cooling Time (R/W)122122
Min PV Power for Gen Start (R/W)139139
Grid Signal On (R/W)140140
Gen Signal On (R/W)140140
Force on generator as load function (R/W)132132
Generator connected to grid input (R/W)189189
Parallel Enable (R/W)336336
Parallel Mode (R/W)336336
Parallel Phase (R/W)336336
Parallel Modbus SN (R/W)336336
Grid Standard (R/W)182182
Configured Grid Frequency (R/W)183183
Configured Grid Phases (R/W)184184
Time synchronization (R/W)228228
Beep (R/W)228228
AM PM (R/W)228228
Auto dim (R/W)228228
Allow Remote (R/W)228228
Track Grid Phase (R/W)235235
UPS delay time (R/W)209209
DRM0 Code544544
DRM1 Code544544
DRM2 Code544544
DRM3 Code544544
DRM4 Code544544
DRM5 Code544544
DRM6 Code544544
DRM7 Code544544
DRM8 Code544544
Battery 1 Manufacturer (R/W)229229
Battery 1 temperature586
Battery 1 voltage587
Battery 1 SOC588
Battery 1 power590
Battery 1 current591
Battery 2 SOC589
Battery 2 voltage593
Battery 2 current594
Battery 2 power595
Battery 2 temperature596
Parallel Bat1&Bat2 (R/W)110
Fan Warning553
Grid Phase Warning553
Lithium Battery Loss Warning554
Parallel Communication Quality Warning554
Parallel Battery 1 and 2 (R/W)110
Battery 1 Wake Up (R/W)112
Battery 2 Wake Up (R/W)112
Lithium HV BMS Protocol (R/W)223
Battery 1 BMS charging voltage210
Battery 1 BMS discharging voltage211
Battery 1 BMS charging current limit212
Battery 1 BMS discharging current limit213
Battery 1 BMS SOC214
Battery 1 BMS voltage215
Battery 1 BMS current216
Battery 1 BMS temperature217
Battery 1 BMS max charge current limit218
Battery 1 BMS max discharge current limit219
Battery 1 BMS alarm flag220
Battery 1 BMS fault flag221
Battery 1 BMS other flag - Battery 1 Force charge (R/W)222
Battery 1 BMS other flag - Battery 2 Force charge (R/W)222
Battery 1 BMS other flag - Battery 1 Sleep (R/W)222
Battery 1 BMS type223
Battery 1 BMS SOH224
Battery 1 BMS software version225
Battery 1 BMS rated AH226
Battery 1 BMS hardware version227
Battery 2 Manufacturer230
Battery 2 BMS charging voltage241
Battery 2 BMS discharging voltage242
Battery 2 BMS charging current limit243
Battery 2 BMS discharging current limit244
Battery 2 BMS SOC245
Battery 2 BMS voltage246
Battery 2 BMS current247
Battery 2 BMS temperature248
Battery 2 BMS max charge current limit249
Battery 2 BMS max discharge current limit250
Battery 2 BMS alarm flag251
Battery 2 BMS fault flag252
Battery 2 BMS other flag - Battery 1 Force charge (R/W)253
Battery 2 BMS other flag - Battery 2 Force charge (R/W)253
Battery 2 BMS other flag - Battery 1 Sleep (R/W)253
Battery 2 BMS type254
Battery 2 BMS SOH255
Battery 2 BMS software version256
Battery 2 BMS rated AH257
Battery 2 BMS hardware version258

Groups of sensors

Sensor groups will allow you to add several sensors with a single entry.

All sensors

The all group will include all the sensors available for your inverter.

yaml
SENSORS:
  - all

Adding all sensors will cause Home Assistant to record a great amount of data, that you might not need. This could lead to a large database and slow down your system. It is especially bad if you are using an SD card for your Home Assistant installation.

Rather consider using the other groups or selecting the sensors you need.

WARNING

It is not recommended to add all sensors for your final system. This is mainly for testing purposes.

Energy management

These sensors are mostly related to energy or kWh and required for the Home Assistant Energy Management

yaml
SENSORS:
  - energy_management
Sensors included
yaml
SENSORS:
 - total_battery_charge
 - total_battery_discharge
 - total_grid_export
 - total_grid_import
 - total_pv_energy

Power Flow Card

These are all sensors used by the Power Flow Card

yaml
SENSORS:
  - power_flow_card
Sensors included
yaml
SENSORS:
 - aux_power # 1PH, 1PH-16kw
 - battery_1_soc # 3PH-hv
 - battery_1_voltage # 3PH-hv
 - battery_current # 1PH, 1PH-16kw, 3PH
 - battery_power # 1PH, 1PH-16kw, 3PH
 - battery_soc # 1PH, 1PH-16kw, 3PH
 - battery_voltage # 1PH, 1PH-16kw, 3PH
 - day_battery_charge
 - day_battery_discharge
 - day_grid_export
 - day_grid_import
 - day_load_energy
 - day_pv_energy
 - essential_power # 1PH, 1PH-16kw
 - grid_connected
 - grid_ct_power
 - grid_current
 - grid_frequency
 - grid_l1_power # 3PH, 3PH-hv
 - grid_l2_power
 - grid_l3_power # 3PH, 3PH-hv
 - grid_power
 - grid_voltage # 1PH, 1PH-16kw
 - inverter_current # 1PH, 1PH-16kw
 - inverter_power
 - inverter_voltage # 1PH, 1PH-16kw
 - load_frequency
 - load_l1_power
 - load_l1_voltage # 3PH, 3PH-hv
 - load_l2_power
 - load_l2_voltage # 3PH, 3PH-hv
 - load_l3_power # 3PH, 3PH-hv
 - load_l3_voltage # 3PH, 3PH-hv
 - load_power
 - non_essential_power # 1PH, 1PH-16kw
 - overall_state
 - priority_load
 - pv1_current
 - pv1_power
 - pv1_voltage
 - pv2_current
 - pv2_power
 - pv2_voltage
 - pv3_current
 - pv3_power
 - pv3_voltage
 - pv4_current # 3PH, 3PH-hv
 - pv4_power # 3PH, 3PH-hv
 - pv4_voltage # 3PH, 3PH-hv
 - pv_power # 3PH, 3PH-hv
 - use_timer

Settings

Sensors used for changing the System Operating Mode - see how they are used in Lovelace settings

These can be under SENSORS or SENSORS_FIRST_INVERTER

yaml
SENSORS_FIRST_INVERTER:
  - settings
Sensors included in settings
yaml
SENSORS:
 - export_limit_power # 3PH, 3PH-hv
 - grid_charge_enabled
 - load_limit
 - prog1_capacity
 - prog1_charge
 - prog1_power
 - prog1_time
 - prog2_capacity
 - prog2_charge
 - prog2_power
 - prog2_time
 - prog3_capacity
 - prog3_charge
 - prog3_power
 - prog3_time
 - prog4_capacity
 - prog4_charge
 - prog4_power
 - prog4_time
 - prog5_capacity
 - prog5_charge
 - prog5_power
 - prog5_time
 - prog6_capacity
 - prog6_charge
 - prog6_power
 - prog6_time
 - solar_export
 - use_timer
Sensors included in the advanced group
yaml
SENSORS:
 - battery_capacity_current # 3PH, 3PH-hv
 - battery_charge_efficiency # 3PH, 3PH-hv
 - battery_low_capacity
 - battery_max_charge_current
 - battery_max_discharge_current
 - battery_resistance # 3PH, 3PH-hv
 - battery_restart_capacity
 - battery_shutdown_capacity
 - battery_type # 3PH, 3PH-hv
 - battery_wake_up # 3PH, 3PH-hv
 - configured_grid_frequency # 3PH, 3PH-hv
 - configured_grid_phases # 3PH, 3PH-hv
 - date_time
 - grid_charge_battery_current
 - grid_charge_start_battery_soc # 3PH, 3PH-hv
 - grid_charge_start_battery_voltage # 3PH, 3PH-hv
 - grid_standard # 3PH, 3PH-hv
 - track_grid_phase # 3PH, 3PH-hv
 - ups_delay_time # 3PH, 3PH-hv

Generator

Sensors used for generator control and monitoring.

yaml
SENSORS:
  - generator
Sensors included
yaml
SENSORS:
 - force_on_generator_as_load_function # 3PH, 3PH-hv
 - gen_signal_on # 3PH, 3PH-hv
 - generator_charge_battery_current # 3PH, 3PH-hv
 - generator_charge_enabled # 3PH, 3PH-hv
 - generator_charge_start_battery_soc # 3PH, 3PH-hv
 - generator_charge_start_battery_voltage # 3PH, 3PH-hv
 - generator_connected_to_grid_input # 3PH, 3PH-hv
 - generator_cooling_time # 3PH, 3PH-hv
 - generator_max_operating_time # 3PH, 3PH-hv
 - generator_off_soc # 3PH, 3PH-hv
 - generator_on_soc # 3PH, 3PH-hv
 - generator_port_usage # 3PH, 3PH-hv
 - min_pv_power_for_gen_start # 3PH, 3PH-hv

Diagnostics

Sensors used for system diagnostics and monitoring.

yaml
SENSORS:
  - diagnostics
Sensors included
yaml
SENSORS:
 - battery_bms_alarm_flag # 
 - battery_bms_fault_flag # 
 - battery_bms_soh # 
 - battery_current # 1PH, 1PH-16kw, 3PH
 - battery_power # 1PH, 1PH-16kw, 3PH
 - battery_soc # 1PH, 1PH-16kw, 3PH
 - battery_temperature # 1PH, 1PH-16kw, 3PH
 - battery_voltage # 1PH, 1PH-16kw, 3PH
 - dc_transformer_temperature
 - fan_warning # 3PH-hv
 - fault
 - grid_l1_voltage # 3PH, 3PH-hv
 - grid_l2_voltage # 3PH, 3PH-hv
 - grid_l3_voltage # 3PH, 3PH-hv
 - grid_phase_warning # 3PH-hv
 - grid_relay_status # 3PH, 3PH-hv
 - grid_voltage # 1PH, 1PH-16kw
 - inverter_l1_power # 3PH, 3PH-hv
 - inverter_l2_power # 3PH, 3PH-hv
 - inverter_l3_power # 3PH, 3PH-hv
 - inverter_relay_status # 
 - lithium_battery_loss_warning # 3PH-hv
 - parallel_communication_quality_warning # 3PH-hv
 - radiator_temperature

Battery

Sensors used for battery configuration and management.

yaml
SENSORS:
  - battery
Sensors included
yaml
SENSORS:
 - battery_absorption_voltage
 - battery_capacity_current # 3PH, 3PH-hv
 - battery_charge_efficiency # 3PH, 3PH-hv
 - battery_equalization_days # 3PH, 3PH-hv
 - battery_equalization_hours # 3PH, 3PH-hv
 - battery_equalization_voltage
 - battery_float_voltage
 - battery_low_capacity
 - battery_low_voltage
 - battery_max_charge_current
 - battery_max_discharge_current
 - battery_resistance # 3PH, 3PH-hv
 - battery_restart_capacity
 - battery_restart_voltage
 - battery_shutdown_capacity
 - battery_shutdown_voltage
 - battery_type # 3PH, 3PH-hv
 - battery_wake_up # 3PH, 3PH-hv
 - parallel_bat1_bat2 #

Parallel

Sensors used for parallel inverter configuration and management.

yaml
SENSORS:
  - parallel
Sensors included
yaml
SENSORS:
 - parallel_enable # 3PH, 3PH-hv
 - parallel_modbus_sn # 3PH, 3PH-hv
 - parallel_mode # 3PH, 3PH-hv
 - parallel_phase # 3PH, 3PH-hv

UPS / Backup Load

Sensors used for monitoring UPS (Uninterruptible Power Supply) or backup load power consumption. These sensors provide power readings for each phase (L1, L2, L3) and total power consumption during backup operation.

yaml
SENSORS:
  - ups
Sensors included
yaml
SENSORS:
 - ups_delay_time # 3PH, 3PH-hv
 - ups_load_l1_power # 3PH, 3PH-hv
 - ups_load_l2_power # 3PH, 3PH-hv
 - ups_load_l3_power # 3PH, 3PH-hv
 - ups_load_total_power # 3PH, 3PH-hv

My Sensors

All your Custom sensors can be added to the configuration using the mysensors group:

yaml
SENSORS:
  - mysensors

Refer to Custom Sensors for more information.