Add current temperature sensor for Tuya Fan (fs) (#65744)

This commit is contained in:
dougiteixeira 2022-02-05 07:19:29 -03:00 committed by GitHub
parent 6871271e73
commit bf0816d4c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 1 deletions

View file

@ -247,12 +247,14 @@ SELECTS: dict[str, tuple[SelectEntityDescription, ...]] = {
SelectEntityDescription( SelectEntityDescription(
key=DPCode.COUNTDOWN, key=DPCode.COUNTDOWN,
name="Countdown", name="Countdown",
device_class=TuyaDeviceClass.COUNTDOWN,
entity_category=EntityCategory.CONFIG, entity_category=EntityCategory.CONFIG,
icon="mdi:timer-cog-outline", icon="mdi:timer-cog-outline",
), ),
SelectEntityDescription( SelectEntityDescription(
key=DPCode.COUNTDOWN_SET, key=DPCode.COUNTDOWN_SET,
name="Countdown Setting", name="Countdown",
device_class=TuyaDeviceClass.COUNTDOWN,
entity_category=EntityCategory.CONFIG, entity_category=EntityCategory.CONFIG,
icon="mdi:timer-cog-outline", icon="mdi:timer-cog-outline",
), ),

View file

@ -803,6 +803,16 @@ SENSORS: dict[str, tuple[TuyaSensorEntityDescription, ...]] = {
device_class=TuyaDeviceClass.AIR_QUALITY, device_class=TuyaDeviceClass.AIR_QUALITY,
), ),
), ),
# Fan
# https://developer.tuya.com/en/docs/iot/s?id=K9gf48quojr54
"fs": (
TuyaSensorEntityDescription(
key=DPCode.TEMP_CURRENT,
name="Temperature",
device_class=SensorDeviceClass.TEMPERATURE,
state_class=SensorStateClass.MEASUREMENT,
),
),
} }
# Socket (duplicate of `kg`) # Socket (duplicate of `kg`)