mirror of
https://github.com/home-assistant/core.git
synced 2025-07-08 13:57:10 +00:00
parent
e24989b446
commit
4a22b463d1
@ -164,6 +164,13 @@ SENSORS: tuple[SensorEntityDescription, ...] = (
|
|||||||
device_class=SensorDeviceClass.ENERGY,
|
device_class=SensorDeviceClass.ENERGY,
|
||||||
state_class=SensorStateClass.TOTAL,
|
state_class=SensorStateClass.TOTAL,
|
||||||
),
|
),
|
||||||
|
SensorEntityDescription(
|
||||||
|
key="electricity_consumed_point",
|
||||||
|
name="Electricity consumed point",
|
||||||
|
device_class=SensorDeviceClass.POWER,
|
||||||
|
native_unit_of_measurement=UnitOfPower.WATT,
|
||||||
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
|
),
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key="electricity_consumed_off_peak_point",
|
key="electricity_consumed_off_peak_point",
|
||||||
name="Electricity consumed off peak point",
|
name="Electricity consumed off peak point",
|
||||||
@ -192,6 +199,13 @@ SENSORS: tuple[SensorEntityDescription, ...] = (
|
|||||||
device_class=SensorDeviceClass.ENERGY,
|
device_class=SensorDeviceClass.ENERGY,
|
||||||
state_class=SensorStateClass.TOTAL_INCREASING,
|
state_class=SensorStateClass.TOTAL_INCREASING,
|
||||||
),
|
),
|
||||||
|
SensorEntityDescription(
|
||||||
|
key="electricity_produced_point",
|
||||||
|
name="Electricity produced point",
|
||||||
|
device_class=SensorDeviceClass.POWER,
|
||||||
|
native_unit_of_measurement=UnitOfPower.WATT,
|
||||||
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
|
),
|
||||||
SensorEntityDescription(
|
SensorEntityDescription(
|
||||||
key="electricity_produced_off_peak_point",
|
key="electricity_produced_off_peak_point",
|
||||||
name="Electricity produced off peak point",
|
name="Electricity produced off peak point",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user