Skip to content

Commit

Permalink
Add BMV aux sensor descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
keshavdv committed Oct 16, 2024
1 parent 1249e83 commit a8eee7c
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions custom_components/victron_ble/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,24 @@
state_class=SensorStateClass.MEASUREMENT,
entity_registry_enabled_default=False,
),
(
VictronSensor.STARTER_BATTERY_VOLTAGE,
Units.ELECTRIC_POTENTIAL_VOLT,
): SensorEntityDescription(
key=VictronSensor.STARTER_BATTERY_VOLTAGE,
device_class=SensorDeviceClass.VOLTAGE,
native_unit_of_measurement=Units.ELECTRIC_POTENTIAL_VOLT,
state_class=SensorStateClass.MEASUREMENT,
),
(
VictronSensor.MIDPOINT_VOLTAGE,
Units.ELECTRIC_POTENTIAL_VOLT,
): SensorEntityDescription(
key=VictronSensor.MIDPOINT_VOLTAGE,
device_class=SensorDeviceClass.VOLTAGE,
native_unit_of_measurement=Units.ELECTRIC_POTENTIAL_VOLT,
state_class=SensorStateClass.MEASUREMENT,
),
}


Expand Down

0 comments on commit a8eee7c

Please sign in to comment.