mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 06:07:17 +00:00
Add sensors for Tuya "tdq" category switches (#77581)
This commit is contained in:
parent
19b85851a1
commit
769084058d
@ -340,6 +340,31 @@ SENSORS: dict[str, tuple[TuyaSensorEntityDescription, ...]] = {
|
|||||||
entity_registry_enabled_default=False,
|
entity_registry_enabled_default=False,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
# IoT Switch
|
||||||
|
# Note: Undocumented
|
||||||
|
"tdq": (
|
||||||
|
TuyaSensorEntityDescription(
|
||||||
|
key=DPCode.CUR_CURRENT,
|
||||||
|
name="Current",
|
||||||
|
device_class=SensorDeviceClass.CURRENT,
|
||||||
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
|
entity_registry_enabled_default=False,
|
||||||
|
),
|
||||||
|
TuyaSensorEntityDescription(
|
||||||
|
key=DPCode.CUR_POWER,
|
||||||
|
name="Power",
|
||||||
|
device_class=SensorDeviceClass.POWER,
|
||||||
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
|
entity_registry_enabled_default=False,
|
||||||
|
),
|
||||||
|
TuyaSensorEntityDescription(
|
||||||
|
key=DPCode.CUR_VOLTAGE,
|
||||||
|
name="Voltage",
|
||||||
|
device_class=SensorDeviceClass.VOLTAGE,
|
||||||
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
|
entity_registry_enabled_default=False,
|
||||||
|
),
|
||||||
|
),
|
||||||
# Luminance Sensor
|
# Luminance Sensor
|
||||||
# https://developer.tuya.com/en/docs/iot/categoryldcg?id=Kaiuz3n7u69l8
|
# https://developer.tuya.com/en/docs/iot/categoryldcg?id=Kaiuz3n7u69l8
|
||||||
"ldcg": (
|
"ldcg": (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user