Add current temperature sensor for Tuya Fan (fs) (#65744)
This commit is contained in:
parent
6871271e73
commit
bf0816d4c6
2 changed files with 13 additions and 1 deletions
|
@ -247,12 +247,14 @@ SELECTS: dict[str, tuple[SelectEntityDescription, ...]] = {
|
|||
SelectEntityDescription(
|
||||
key=DPCode.COUNTDOWN,
|
||||
name="Countdown",
|
||||
device_class=TuyaDeviceClass.COUNTDOWN,
|
||||
entity_category=EntityCategory.CONFIG,
|
||||
icon="mdi:timer-cog-outline",
|
||||
),
|
||||
SelectEntityDescription(
|
||||
key=DPCode.COUNTDOWN_SET,
|
||||
name="Countdown Setting",
|
||||
name="Countdown",
|
||||
device_class=TuyaDeviceClass.COUNTDOWN,
|
||||
entity_category=EntityCategory.CONFIG,
|
||||
icon="mdi:timer-cog-outline",
|
||||
),
|
||||
|
|
|
@ -803,6 +803,16 @@ SENSORS: dict[str, tuple[TuyaSensorEntityDescription, ...]] = {
|
|||
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`)
|
||||
|
|
Loading…
Add table
Reference in a new issue