Skip to content

Commit

Permalink
Add BMS registers to new KH firmware
Browse files Browse the repository at this point in the history
  • Loading branch information
canton7 committed Jan 26, 2025
1 parent 28bf6d6 commit 6d38311
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 5 deletions.
10 changes: 5 additions & 5 deletions custom_components/foxess_modbus/entities/entity_descriptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -2130,23 +2130,23 @@ def _inner(
],
bms_cell_temp_high=[
ModbusAddressesSpec(input=[11043], models=Inv.H1_G1 | Inv.KH_PRE119),
ModbusAddressesSpec(holding=[37617], models=Inv.H1_G2_144 | Inv.KH_PRE133),
ModbusAddressesSpec(holding=[37617], models=Inv.H1_G2_144 | Inv.KH_PRE133 | Inv.KH_133),
],
bms_cell_temp_low=[
ModbusAddressesSpec(input=[11044], models=Inv.H1_G1 | Inv.KH_PRE119),
ModbusAddressesSpec(holding=[37618], models=Inv.H1_G2_144 | Inv.KH_PRE133),
ModbusAddressesSpec(holding=[37618], models=Inv.H1_G2_144 | Inv.KH_PRE133 | Inv.KH_133),
],
bms_cell_mv_high=[
ModbusAddressesSpec(input=[11045], models=Inv.H1_G1 | Inv.KH_PRE119),
ModbusAddressesSpec(holding=[37619], models=Inv.H1_G2_144 | Inv.KH_PRE133),
ModbusAddressesSpec(holding=[37619], models=Inv.H1_G2_144 | Inv.KH_PRE133 | Inv.KH_133),
],
bms_cell_mv_low=[
ModbusAddressesSpec(input=[11046], models=Inv.H1_G1 | Inv.KH_PRE119),
ModbusAddressesSpec(holding=[37620], models=Inv.H1_G2_144 | Inv.KH_PRE133),
ModbusAddressesSpec(holding=[37620], models=Inv.H1_G2_144 | Inv.KH_PRE133 | Inv.KH_133),
],
bms_kwh_remaining=[
ModbusAddressesSpec(input=[11037], models=Inv.H1_G1 | Inv.KH_PRE119),
ModbusAddressesSpec(holding=[37632], models=Inv.H1_G2_SET | Inv.KH_PRE133),
ModbusAddressesSpec(holding=[37632], models=Inv.H1_G2_SET | Inv.KH_PRE133 | Inv.KH_133),
],
)
yield from _inner(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,54 @@
"signed": true,
"type": "sensor"
},
{
"addresses": {
"holding": [
37619
]
},
"key": "bms_cell_mv_high",
"name": "BMS Cell mV High",
"scale": null,
"signed": false,
"type": "sensor"
},
{
"addresses": {
"holding": [
37620
]
},
"key": "bms_cell_mv_low",
"name": "BMS Cell mV Low",
"scale": null,
"signed": false,
"type": "sensor"
},
{
"addresses": {
"holding": [
37617
]
},
"key": "bms_cell_temp_high",
"name": "BMS Cell Temp High",
"scale": 0.1,
"signed": true,
"type": "sensor"
},
{
"addresses": {
"holding": [
37618
]
},
"key": "bms_cell_temp_low",
"name": "BMS Cell Temp Low",
"scale": 0.1,
"signed": true,
"type": "sensor"
},
{
"addresses": {
"holding": [
Expand All @@ -145,6 +193,18 @@
"signed": false,
"type": "sensor"
},
{
"addresses": {
"holding": [
37632
]
},
"key": "bms_kwh_remaining",
"name": "BMS kWh Remaining",
"scale": 0.01,
"signed": false,
"type": "sensor"
},
{
"addresses": {
"holding": [
Expand Down

0 comments on commit 6d38311

Please sign in to comment.