mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 16:37:52 +01:00
Fix power_delivered/produced_phase sensor deviceclass in DSMR (#3395)
This commit is contained in:
parent
93b628d9a8
commit
b605982f94
@ -143,37 +143,37 @@ CONFIG_SCHEMA = cv.Schema(
|
|||||||
cv.Optional("power_delivered_l1"): sensor.sensor_schema(
|
cv.Optional("power_delivered_l1"): sensor.sensor_schema(
|
||||||
unit_of_measurement=UNIT_KILOWATT,
|
unit_of_measurement=UNIT_KILOWATT,
|
||||||
accuracy_decimals=3,
|
accuracy_decimals=3,
|
||||||
device_class=DEVICE_CLASS_CURRENT,
|
device_class=DEVICE_CLASS_POWER,
|
||||||
state_class=STATE_CLASS_MEASUREMENT,
|
state_class=STATE_CLASS_MEASUREMENT,
|
||||||
),
|
),
|
||||||
cv.Optional("power_delivered_l2"): sensor.sensor_schema(
|
cv.Optional("power_delivered_l2"): sensor.sensor_schema(
|
||||||
unit_of_measurement=UNIT_KILOWATT,
|
unit_of_measurement=UNIT_KILOWATT,
|
||||||
accuracy_decimals=3,
|
accuracy_decimals=3,
|
||||||
device_class=DEVICE_CLASS_CURRENT,
|
device_class=DEVICE_CLASS_POWER,
|
||||||
state_class=STATE_CLASS_MEASUREMENT,
|
state_class=STATE_CLASS_MEASUREMENT,
|
||||||
),
|
),
|
||||||
cv.Optional("power_delivered_l3"): sensor.sensor_schema(
|
cv.Optional("power_delivered_l3"): sensor.sensor_schema(
|
||||||
unit_of_measurement=UNIT_KILOWATT,
|
unit_of_measurement=UNIT_KILOWATT,
|
||||||
accuracy_decimals=3,
|
accuracy_decimals=3,
|
||||||
device_class=DEVICE_CLASS_CURRENT,
|
device_class=DEVICE_CLASS_POWER,
|
||||||
state_class=STATE_CLASS_MEASUREMENT,
|
state_class=STATE_CLASS_MEASUREMENT,
|
||||||
),
|
),
|
||||||
cv.Optional("power_returned_l1"): sensor.sensor_schema(
|
cv.Optional("power_returned_l1"): sensor.sensor_schema(
|
||||||
unit_of_measurement=UNIT_KILOWATT,
|
unit_of_measurement=UNIT_KILOWATT,
|
||||||
accuracy_decimals=3,
|
accuracy_decimals=3,
|
||||||
device_class=DEVICE_CLASS_CURRENT,
|
device_class=DEVICE_CLASS_POWER,
|
||||||
state_class=STATE_CLASS_MEASUREMENT,
|
state_class=STATE_CLASS_MEASUREMENT,
|
||||||
),
|
),
|
||||||
cv.Optional("power_returned_l2"): sensor.sensor_schema(
|
cv.Optional("power_returned_l2"): sensor.sensor_schema(
|
||||||
unit_of_measurement=UNIT_KILOWATT,
|
unit_of_measurement=UNIT_KILOWATT,
|
||||||
accuracy_decimals=3,
|
accuracy_decimals=3,
|
||||||
device_class=DEVICE_CLASS_CURRENT,
|
device_class=DEVICE_CLASS_POWER,
|
||||||
state_class=STATE_CLASS_MEASUREMENT,
|
state_class=STATE_CLASS_MEASUREMENT,
|
||||||
),
|
),
|
||||||
cv.Optional("power_returned_l3"): sensor.sensor_schema(
|
cv.Optional("power_returned_l3"): sensor.sensor_schema(
|
||||||
unit_of_measurement=UNIT_KILOWATT,
|
unit_of_measurement=UNIT_KILOWATT,
|
||||||
accuracy_decimals=3,
|
accuracy_decimals=3,
|
||||||
device_class=DEVICE_CLASS_CURRENT,
|
device_class=DEVICE_CLASS_POWER,
|
||||||
state_class=STATE_CLASS_MEASUREMENT,
|
state_class=STATE_CLASS_MEASUREMENT,
|
||||||
),
|
),
|
||||||
cv.Optional("reactive_power_delivered_l1"): sensor.sensor_schema(
|
cv.Optional("reactive_power_delivered_l1"): sensor.sensor_schema(
|
||||||
|
Loading…
Reference in New Issue
Block a user