Complete Heater (qn) device support to Tuya (#58296)
This commit is contained in:
parent
7d0fc8ca98
commit
43abf38d92
3 changed files with 27 additions and 0 deletions
|
@ -271,6 +271,7 @@ class DPCode(str, Enum):
|
|||
WATERSENSOR_STATE = "watersensor_state"
|
||||
WET = "wet" # Humidification
|
||||
WORK_MODE = "work_mode" # Working mode
|
||||
WORK_POWER = "work_power"
|
||||
|
||||
|
||||
@dataclass
|
||||
|
|
|
@ -212,6 +212,16 @@ SENSORS: dict[str, tuple[SensorEntityDescription, ...]] = {
|
|||
# PIR Detector
|
||||
# https://developer.tuya.com/en/docs/iot/categorypir?id=Kaiuz3ss11b80
|
||||
"pir": BATTERY_SENSORS,
|
||||
# Heater
|
||||
# https://developer.tuya.com/en/docs/iot/categoryqn?id=Kaiuz18kih0sm
|
||||
"qn": (
|
||||
SensorEntityDescription(
|
||||
key=DPCode.WORK_POWER,
|
||||
name="Power",
|
||||
device_class=DEVICE_CLASS_POWER,
|
||||
state_class=STATE_CLASS_MEASUREMENT,
|
||||
),
|
||||
),
|
||||
# Gas Detector
|
||||
# https://developer.tuya.com/en/docs/iot/categoryrqbj?id=Kaiuz3d162ubw
|
||||
"rqbj": (
|
||||
|
|
|
@ -247,6 +247,22 @@ SWITCHES: dict[str, tuple[SwitchEntityDescription, ...]] = {
|
|||
device_class=DEVICE_CLASS_OUTLET,
|
||||
),
|
||||
),
|
||||
# Heater
|
||||
# https://developer.tuya.com/en/docs/iot/categoryqn?id=Kaiuz18kih0sm
|
||||
"qn": (
|
||||
SwitchEntityDescription(
|
||||
key=DPCode.ANION,
|
||||
name="Ionizer",
|
||||
icon="mdi:minus-circle-outline",
|
||||
entity_category=ENTITY_CATEGORY_CONFIG,
|
||||
),
|
||||
SwitchEntityDescription(
|
||||
key=DPCode.LOCK,
|
||||
name="Child Lock",
|
||||
icon="mdi:account-lock",
|
||||
entity_category=ENTITY_CATEGORY_CONFIG,
|
||||
),
|
||||
),
|
||||
# Siren Alarm
|
||||
# https://developer.tuya.com/en/docs/iot/categorysgbj?id=Kaiuz37tlpbnu
|
||||
"sgbj": (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue