Skip to content

Commit

Permalink
Merge pull request #704 from MartB/h3_extra_bms
Browse files Browse the repository at this point in the history
H3: add bms cell temps and kwh remaining
  • Loading branch information
canton7 authored Feb 1, 2025
2 parents 893c65a + 58c26d2 commit 7a88ed4
Show file tree
Hide file tree
Showing 4 changed files with 113 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2131,22 +2131,27 @@ 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 | Inv.KH_133),
ModbusAddressesSpec(holding=[31102], models=Inv.H3_SET),
],
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 | Inv.KH_133),
ModbusAddressesSpec(holding=[31103], models=Inv.H3_SET),
],
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 | Inv.KH_133),
# ModbusAddressesSpec(holding=[31100], models=Inv.H3_SET), provided in V * 10 aka 32 for 3200mV
],
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 | Inv.KH_133),
# ModbusAddressesSpec(holding=[31101], models=Inv.H3_SET), provided in V * 10 aka 32 for 3200mV
],
bms_kwh_remaining=[
ModbusAddressesSpec(input=[11037], models=Inv.H1_G1 | Inv.KH_PRE119),
ModbusAddressesSpec(holding=[37632], models=Inv.H1_G2_SET | Inv.KH_PRE133 | Inv.KH_133),
ModbusAddressesSpec(holding=[31123], models=Inv.H3_SET),
],
)
yield from _inner(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,42 @@
"signed": true,
"type": "sensor"
},
{
"addresses": {
"holding": [
31102
]
},
"key": "bms_cell_temp_high",
"name": "BMS Cell Temp High",
"scale": 0.1,
"signed": true,
"type": "sensor"
},
{
"addresses": {
"holding": [
31103
]
},
"key": "bms_cell_temp_low",
"name": "BMS Cell Temp Low",
"scale": 0.1,
"signed": true,
"type": "sensor"
},
{
"addresses": {
"holding": [
31123
]
},
"key": "bms_kwh_remaining",
"name": "BMS kWh Remaining",
"scale": 0.01,
"signed": false,
"type": "sensor"
},
{
"addresses": {
"holding": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,42 @@
"signed": true,
"type": "sensor"
},
{
"addresses": {
"holding": [
31102
]
},
"key": "bms_cell_temp_high",
"name": "BMS Cell Temp High",
"scale": 0.1,
"signed": true,
"type": "sensor"
},
{
"addresses": {
"holding": [
31103
]
},
"key": "bms_cell_temp_low",
"name": "BMS Cell Temp Low",
"scale": 0.1,
"signed": true,
"type": "sensor"
},
{
"addresses": {
"holding": [
31123
]
},
"key": "bms_kwh_remaining",
"name": "BMS kWh Remaining",
"scale": 0.01,
"signed": false,
"type": "sensor"
},
{
"addresses": {
"holding": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,42 @@
"signed": true,
"type": "sensor"
},
{
"addresses": {
"holding": [
31102
]
},
"key": "bms_cell_temp_high",
"name": "BMS Cell Temp High",
"scale": 0.1,
"signed": true,
"type": "sensor"
},
{
"addresses": {
"holding": [
31103
]
},
"key": "bms_cell_temp_low",
"name": "BMS Cell Temp Low",
"scale": 0.1,
"signed": true,
"type": "sensor"
},
{
"addresses": {
"holding": [
31123
]
},
"key": "bms_kwh_remaining",
"name": "BMS kWh Remaining",
"scale": 0.01,
"signed": false,
"type": "sensor"
},
{
"addresses": {
"holding": [
Expand Down

0 comments on commit 7a88ed4

Please sign in to comment.