Add additional sensors for Tuya DIN (#98752)

Co-authored-by: Franck Nijhof <git@frenck.dev>
This commit is contained in:
cronjefourie 2023-11-25 16:47:03 +02:00 committed by GitHub
parent 71268bd407
commit 03caa21a51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 21 additions and 0 deletions

View File

@ -818,6 +818,27 @@ SENSORS: dict[str, tuple[TuyaSensorEntityDescription, ...]] = {
native_unit_of_measurement=UnitOfElectricPotential.VOLT,
subkey="voltage",
),
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,
),
),
# Robot Vacuum
# https://developer.tuya.com/en/docs/iot/fsd?id=K9gf487ck1tlo