mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
Add missing total active returned energy
sensor for Shelly Mini PM Gen3 (#135433)
Add missing total active returned energy sensor for Mini PM Gen3
This commit is contained in:
parent
e67a131bd9
commit
86ea68eaec
@ -770,6 +770,18 @@ RPC_SENSORS: Final = {
|
||||
device_class=SensorDeviceClass.ENERGY,
|
||||
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||
),
|
||||
"ret_energy_pm1": RpcSensorDescription(
|
||||
key="pm1",
|
||||
sub_key="ret_aenergy",
|
||||
name="Total active returned energy",
|
||||
native_unit_of_measurement=UnitOfEnergy.WATT_HOUR,
|
||||
suggested_unit_of_measurement=UnitOfEnergy.KILO_WATT_HOUR,
|
||||
value=lambda status, _: status["total"],
|
||||
suggested_display_precision=2,
|
||||
device_class=SensorDeviceClass.ENERGY,
|
||||
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||
entity_registry_enabled_default=False,
|
||||
),
|
||||
"energy_cct": RpcSensorDescription(
|
||||
key="cct",
|
||||
sub_key="aenergy",
|
||||
|
Loading…
x
Reference in New Issue
Block a user