mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 07:07:28 +00:00
Add support for single phase power meter aqcz in Tuya (#126470)
This commit is contained in:
parent
132a8cc31b
commit
35f6ae0759
@ -254,6 +254,31 @@ SENSORS: dict[str, tuple[TuyaSensorEntityDescription, ...]] = {
|
|||||||
entity_registry_enabled_default=False,
|
entity_registry_enabled_default=False,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
# Single Phase power meter
|
||||||
|
# Note: Undocumented
|
||||||
|
"aqcz": (
|
||||||
|
TuyaSensorEntityDescription(
|
||||||
|
key=DPCode.CUR_CURRENT,
|
||||||
|
translation_key="current",
|
||||||
|
device_class=SensorDeviceClass.CURRENT,
|
||||||
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
|
entity_registry_enabled_default=False,
|
||||||
|
),
|
||||||
|
TuyaSensorEntityDescription(
|
||||||
|
key=DPCode.CUR_POWER,
|
||||||
|
translation_key="power",
|
||||||
|
device_class=SensorDeviceClass.POWER,
|
||||||
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
|
entity_registry_enabled_default=False,
|
||||||
|
),
|
||||||
|
TuyaSensorEntityDescription(
|
||||||
|
key=DPCode.CUR_VOLTAGE,
|
||||||
|
translation_key="voltage",
|
||||||
|
device_class=SensorDeviceClass.VOLTAGE,
|
||||||
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
|
entity_registry_enabled_default=False,
|
||||||
|
),
|
||||||
|
),
|
||||||
# CO Detector
|
# CO Detector
|
||||||
# https://developer.tuya.com/en/docs/iot/categorycobj?id=Kaiuz3u1j6q1v
|
# https://developer.tuya.com/en/docs/iot/categorycobj?id=Kaiuz3u1j6q1v
|
||||||
"cobj": (
|
"cobj": (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user