Migrate Tuya translations (#83105)
* Migrate Tuya translations * Don't use DPCode as translation keypull/83119/head
parent
4edebacba5
commit
fc93521e02
|
@ -84,33 +84,6 @@ PLATFORMS = [
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
class TuyaDeviceClass(StrEnum):
|
|
||||||
"""Tuya specific device classes, used for translations."""
|
|
||||||
|
|
||||||
AIR_QUALITY = "tuya__air_quality"
|
|
||||||
CURTAIN_MODE = "tuya__curtain_mode"
|
|
||||||
CURTAIN_MOTOR_MODE = "tuya__curtain_motor_mode"
|
|
||||||
BASIC_ANTI_FLICKR = "tuya__basic_anti_flickr"
|
|
||||||
BASIC_NIGHTVISION = "tuya__basic_nightvision"
|
|
||||||
COUNTDOWN = "tuya__countdown"
|
|
||||||
DECIBEL_SENSITIVITY = "tuya__decibel_sensitivity"
|
|
||||||
FAN_ANGLE = "tuya__fan_angle"
|
|
||||||
FINGERBOT_MODE = "tuya__fingerbot_mode"
|
|
||||||
HUMIDIFIER_SPRAY_MODE = "tuya__humidifier_spray_mode"
|
|
||||||
HUMIDIFIER_LEVEL = "tuya__humidifier_level"
|
|
||||||
HUMIDIFIER_MOODLIGHTING = "tuya__humidifier_moodlighting"
|
|
||||||
IPC_WORK_MODE = "tuya__ipc_work_mode"
|
|
||||||
LED_TYPE = "tuya__led_type"
|
|
||||||
LIGHT_MODE = "tuya__light_mode"
|
|
||||||
MOTION_SENSITIVITY = "tuya__motion_sensitivity"
|
|
||||||
RECORD_MODE = "tuya__record_mode"
|
|
||||||
RELAY_STATUS = "tuya__relay_status"
|
|
||||||
STATUS = "tuya__status"
|
|
||||||
VACUUM_CISTERN = "tuya__vacuum_cistern"
|
|
||||||
VACUUM_COLLECTION = "tuya__vacuum_collection"
|
|
||||||
VACUUM_MODE = "tuya__vacuum_mode"
|
|
||||||
|
|
||||||
|
|
||||||
class WorkMode(StrEnum):
|
class WorkMode(StrEnum):
|
||||||
"""Work modes."""
|
"""Work modes."""
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||||
|
|
||||||
from . import HomeAssistantTuyaData
|
from . import HomeAssistantTuyaData
|
||||||
from .base import TuyaEntity
|
from .base import TuyaEntity
|
||||||
from .const import DOMAIN, TUYA_DISCOVERY_NEW, DPCode, DPType, TuyaDeviceClass
|
from .const import DOMAIN, TUYA_DISCOVERY_NEW, DPCode, DPType
|
||||||
|
|
||||||
# All descriptions can be found here. Mostly the Enum data types in the
|
# All descriptions can be found here. Mostly the Enum data types in the
|
||||||
# default instructions set of each category end up being a select.
|
# default instructions set of each category end up being a select.
|
||||||
|
@ -58,14 +58,14 @@ SELECTS: dict[str, tuple[SelectEntityDescription, ...]] = {
|
||||||
SelectEntityDescription(
|
SelectEntityDescription(
|
||||||
key=DPCode.RELAY_STATUS,
|
key=DPCode.RELAY_STATUS,
|
||||||
name="Power on behavior",
|
name="Power on behavior",
|
||||||
device_class=TuyaDeviceClass.RELAY_STATUS,
|
|
||||||
entity_category=EntityCategory.CONFIG,
|
entity_category=EntityCategory.CONFIG,
|
||||||
|
translation_key="relay_status",
|
||||||
),
|
),
|
||||||
SelectEntityDescription(
|
SelectEntityDescription(
|
||||||
key=DPCode.LIGHT_MODE,
|
key=DPCode.LIGHT_MODE,
|
||||||
name="Indicator light mode",
|
name="Indicator light mode",
|
||||||
device_class=TuyaDeviceClass.LIGHT_MODE,
|
|
||||||
entity_category=EntityCategory.CONFIG,
|
entity_category=EntityCategory.CONFIG,
|
||||||
|
translation_key="light_mode",
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
# Heater
|
# Heater
|
||||||
|
@ -97,43 +97,43 @@ SELECTS: dict[str, tuple[SelectEntityDescription, ...]] = {
|
||||||
SelectEntityDescription(
|
SelectEntityDescription(
|
||||||
key=DPCode.IPC_WORK_MODE,
|
key=DPCode.IPC_WORK_MODE,
|
||||||
name="IPC mode",
|
name="IPC mode",
|
||||||
device_class=TuyaDeviceClass.IPC_WORK_MODE,
|
|
||||||
entity_category=EntityCategory.CONFIG,
|
entity_category=EntityCategory.CONFIG,
|
||||||
|
translation_key="ipc_work_mode",
|
||||||
),
|
),
|
||||||
SelectEntityDescription(
|
SelectEntityDescription(
|
||||||
key=DPCode.DECIBEL_SENSITIVITY,
|
key=DPCode.DECIBEL_SENSITIVITY,
|
||||||
name="Sound detection densitivity",
|
name="Sound detection densitivity",
|
||||||
icon="mdi:volume-vibrate",
|
icon="mdi:volume-vibrate",
|
||||||
device_class=TuyaDeviceClass.DECIBEL_SENSITIVITY,
|
|
||||||
entity_category=EntityCategory.CONFIG,
|
entity_category=EntityCategory.CONFIG,
|
||||||
|
translation_key="decibel_sensitivity",
|
||||||
),
|
),
|
||||||
SelectEntityDescription(
|
SelectEntityDescription(
|
||||||
key=DPCode.RECORD_MODE,
|
key=DPCode.RECORD_MODE,
|
||||||
name="Record mode",
|
name="Record mode",
|
||||||
icon="mdi:record-rec",
|
icon="mdi:record-rec",
|
||||||
device_class=TuyaDeviceClass.RECORD_MODE,
|
|
||||||
entity_category=EntityCategory.CONFIG,
|
entity_category=EntityCategory.CONFIG,
|
||||||
|
translation_key="record_mode",
|
||||||
),
|
),
|
||||||
SelectEntityDescription(
|
SelectEntityDescription(
|
||||||
key=DPCode.BASIC_NIGHTVISION,
|
key=DPCode.BASIC_NIGHTVISION,
|
||||||
name="Night vision",
|
name="Night vision",
|
||||||
icon="mdi:theme-light-dark",
|
icon="mdi:theme-light-dark",
|
||||||
device_class=TuyaDeviceClass.BASIC_NIGHTVISION,
|
|
||||||
entity_category=EntityCategory.CONFIG,
|
entity_category=EntityCategory.CONFIG,
|
||||||
|
translation_key="basic_nightvision",
|
||||||
),
|
),
|
||||||
SelectEntityDescription(
|
SelectEntityDescription(
|
||||||
key=DPCode.BASIC_ANTI_FLICKER,
|
key=DPCode.BASIC_ANTI_FLICKER,
|
||||||
name="Anti-flicker",
|
name="Anti-flicker",
|
||||||
icon="mdi:image-outline",
|
icon="mdi:image-outline",
|
||||||
device_class=TuyaDeviceClass.BASIC_ANTI_FLICKR,
|
|
||||||
entity_category=EntityCategory.CONFIG,
|
entity_category=EntityCategory.CONFIG,
|
||||||
|
translation_key="basic_anti_flicker",
|
||||||
),
|
),
|
||||||
SelectEntityDescription(
|
SelectEntityDescription(
|
||||||
key=DPCode.MOTION_SENSITIVITY,
|
key=DPCode.MOTION_SENSITIVITY,
|
||||||
name="Motion detection sensitivity",
|
name="Motion detection sensitivity",
|
||||||
icon="mdi:motion-sensor",
|
icon="mdi:motion-sensor",
|
||||||
device_class=TuyaDeviceClass.MOTION_SENSITIVITY,
|
|
||||||
entity_category=EntityCategory.CONFIG,
|
entity_category=EntityCategory.CONFIG,
|
||||||
|
translation_key="motion_sensitivity",
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
# IoT Switch?
|
# IoT Switch?
|
||||||
|
@ -142,14 +142,14 @@ SELECTS: dict[str, tuple[SelectEntityDescription, ...]] = {
|
||||||
SelectEntityDescription(
|
SelectEntityDescription(
|
||||||
key=DPCode.RELAY_STATUS,
|
key=DPCode.RELAY_STATUS,
|
||||||
name="Power on behavior",
|
name="Power on behavior",
|
||||||
device_class=TuyaDeviceClass.RELAY_STATUS,
|
|
||||||
entity_category=EntityCategory.CONFIG,
|
entity_category=EntityCategory.CONFIG,
|
||||||
|
translation_key="relay_status",
|
||||||
),
|
),
|
||||||
SelectEntityDescription(
|
SelectEntityDescription(
|
||||||
key=DPCode.LIGHT_MODE,
|
key=DPCode.LIGHT_MODE,
|
||||||
name="Indicator light mode",
|
name="Indicator light mode",
|
||||||
device_class=TuyaDeviceClass.LIGHT_MODE,
|
|
||||||
entity_category=EntityCategory.CONFIG,
|
entity_category=EntityCategory.CONFIG,
|
||||||
|
translation_key="light_mode",
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
# Dimmer Switch
|
# Dimmer Switch
|
||||||
|
@ -158,32 +158,32 @@ SELECTS: dict[str, tuple[SelectEntityDescription, ...]] = {
|
||||||
SelectEntityDescription(
|
SelectEntityDescription(
|
||||||
key=DPCode.RELAY_STATUS,
|
key=DPCode.RELAY_STATUS,
|
||||||
name="Power on behavior",
|
name="Power on behavior",
|
||||||
device_class=TuyaDeviceClass.RELAY_STATUS,
|
|
||||||
entity_category=EntityCategory.CONFIG,
|
entity_category=EntityCategory.CONFIG,
|
||||||
|
translation_key="relay_status",
|
||||||
),
|
),
|
||||||
SelectEntityDescription(
|
SelectEntityDescription(
|
||||||
key=DPCode.LIGHT_MODE,
|
key=DPCode.LIGHT_MODE,
|
||||||
name="Indicator light mode",
|
name="Indicator light mode",
|
||||||
device_class=TuyaDeviceClass.LIGHT_MODE,
|
|
||||||
entity_category=EntityCategory.CONFIG,
|
entity_category=EntityCategory.CONFIG,
|
||||||
|
translation_key="light_mode",
|
||||||
),
|
),
|
||||||
SelectEntityDescription(
|
SelectEntityDescription(
|
||||||
key=DPCode.LED_TYPE_1,
|
key=DPCode.LED_TYPE_1,
|
||||||
name="Light source type",
|
name="Light source type",
|
||||||
device_class=TuyaDeviceClass.LED_TYPE,
|
|
||||||
entity_category=EntityCategory.CONFIG,
|
entity_category=EntityCategory.CONFIG,
|
||||||
|
translation_key="led_type",
|
||||||
),
|
),
|
||||||
SelectEntityDescription(
|
SelectEntityDescription(
|
||||||
key=DPCode.LED_TYPE_2,
|
key=DPCode.LED_TYPE_2,
|
||||||
name="Light 2 source type",
|
name="Light 2 source type",
|
||||||
device_class=TuyaDeviceClass.LED_TYPE,
|
|
||||||
entity_category=EntityCategory.CONFIG,
|
entity_category=EntityCategory.CONFIG,
|
||||||
|
translation_key="led_type",
|
||||||
),
|
),
|
||||||
SelectEntityDescription(
|
SelectEntityDescription(
|
||||||
key=DPCode.LED_TYPE_3,
|
key=DPCode.LED_TYPE_3,
|
||||||
name="Light 3 source type",
|
name="Light 3 source type",
|
||||||
device_class=TuyaDeviceClass.LED_TYPE,
|
|
||||||
entity_category=EntityCategory.CONFIG,
|
entity_category=EntityCategory.CONFIG,
|
||||||
|
translation_key="led_type",
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
# Dimmer
|
# Dimmer
|
||||||
|
@ -192,14 +192,14 @@ SELECTS: dict[str, tuple[SelectEntityDescription, ...]] = {
|
||||||
SelectEntityDescription(
|
SelectEntityDescription(
|
||||||
key=DPCode.LED_TYPE_1,
|
key=DPCode.LED_TYPE_1,
|
||||||
name="Light source type",
|
name="Light source type",
|
||||||
device_class=TuyaDeviceClass.LED_TYPE,
|
|
||||||
entity_category=EntityCategory.CONFIG,
|
entity_category=EntityCategory.CONFIG,
|
||||||
|
translation_key="led_type",
|
||||||
),
|
),
|
||||||
SelectEntityDescription(
|
SelectEntityDescription(
|
||||||
key=DPCode.LED_TYPE_2,
|
key=DPCode.LED_TYPE_2,
|
||||||
name="Light 2 source type",
|
name="Light 2 source type",
|
||||||
device_class=TuyaDeviceClass.LED_TYPE,
|
|
||||||
entity_category=EntityCategory.CONFIG,
|
entity_category=EntityCategory.CONFIG,
|
||||||
|
translation_key="led_type",
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
# Fingerbot
|
# Fingerbot
|
||||||
|
@ -207,8 +207,8 @@ SELECTS: dict[str, tuple[SelectEntityDescription, ...]] = {
|
||||||
SelectEntityDescription(
|
SelectEntityDescription(
|
||||||
key=DPCode.MODE,
|
key=DPCode.MODE,
|
||||||
name="Mode",
|
name="Mode",
|
||||||
device_class=TuyaDeviceClass.FINGERBOT_MODE,
|
|
||||||
entity_category=EntityCategory.CONFIG,
|
entity_category=EntityCategory.CONFIG,
|
||||||
|
translation_key="fingerbot_mode",
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
# Robot Vacuum
|
# Robot Vacuum
|
||||||
|
@ -218,22 +218,22 @@ SELECTS: dict[str, tuple[SelectEntityDescription, ...]] = {
|
||||||
key=DPCode.CISTERN,
|
key=DPCode.CISTERN,
|
||||||
name="Water tank adjustment",
|
name="Water tank adjustment",
|
||||||
entity_category=EntityCategory.CONFIG,
|
entity_category=EntityCategory.CONFIG,
|
||||||
device_class=TuyaDeviceClass.VACUUM_CISTERN,
|
|
||||||
icon="mdi:water-opacity",
|
icon="mdi:water-opacity",
|
||||||
|
translation_key="vacuum_cistern",
|
||||||
),
|
),
|
||||||
SelectEntityDescription(
|
SelectEntityDescription(
|
||||||
key=DPCode.COLLECTION_MODE,
|
key=DPCode.COLLECTION_MODE,
|
||||||
name="Dust collection mode",
|
name="Dust collection mode",
|
||||||
entity_category=EntityCategory.CONFIG,
|
entity_category=EntityCategory.CONFIG,
|
||||||
device_class=TuyaDeviceClass.VACUUM_COLLECTION,
|
|
||||||
icon="mdi:air-filter",
|
icon="mdi:air-filter",
|
||||||
|
translation_key="vacuum_collection",
|
||||||
),
|
),
|
||||||
SelectEntityDescription(
|
SelectEntityDescription(
|
||||||
key=DPCode.MODE,
|
key=DPCode.MODE,
|
||||||
name="Mode",
|
name="Mode",
|
||||||
entity_category=EntityCategory.CONFIG,
|
entity_category=EntityCategory.CONFIG,
|
||||||
device_class=TuyaDeviceClass.VACUUM_MODE,
|
|
||||||
icon="mdi:layers-outline",
|
icon="mdi:layers-outline",
|
||||||
|
translation_key="vacuum_mode",
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
# Fan
|
# Fan
|
||||||
|
@ -242,30 +242,30 @@ SELECTS: dict[str, tuple[SelectEntityDescription, ...]] = {
|
||||||
SelectEntityDescription(
|
SelectEntityDescription(
|
||||||
key=DPCode.FAN_VERTICAL,
|
key=DPCode.FAN_VERTICAL,
|
||||||
name="Vertical swing flap angle",
|
name="Vertical swing flap angle",
|
||||||
device_class=TuyaDeviceClass.FAN_ANGLE,
|
|
||||||
entity_category=EntityCategory.CONFIG,
|
entity_category=EntityCategory.CONFIG,
|
||||||
icon="mdi:format-vertical-align-center",
|
icon="mdi:format-vertical-align-center",
|
||||||
|
translation_key="fan_angle",
|
||||||
),
|
),
|
||||||
SelectEntityDescription(
|
SelectEntityDescription(
|
||||||
key=DPCode.FAN_HORIZONTAL,
|
key=DPCode.FAN_HORIZONTAL,
|
||||||
name="Horizontal swing flap angle",
|
name="Horizontal swing flap angle",
|
||||||
device_class=TuyaDeviceClass.FAN_ANGLE,
|
|
||||||
entity_category=EntityCategory.CONFIG,
|
entity_category=EntityCategory.CONFIG,
|
||||||
icon="mdi:format-horizontal-align-center",
|
icon="mdi:format-horizontal-align-center",
|
||||||
|
translation_key="fan_angle",
|
||||||
),
|
),
|
||||||
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",
|
||||||
|
translation_key="countdown",
|
||||||
),
|
),
|
||||||
SelectEntityDescription(
|
SelectEntityDescription(
|
||||||
key=DPCode.COUNTDOWN_SET,
|
key=DPCode.COUNTDOWN_SET,
|
||||||
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",
|
||||||
|
translation_key="countdown",
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
# Curtain
|
# Curtain
|
||||||
|
@ -274,15 +274,15 @@ SELECTS: dict[str, tuple[SelectEntityDescription, ...]] = {
|
||||||
SelectEntityDescription(
|
SelectEntityDescription(
|
||||||
key=DPCode.CONTROL_BACK_MODE,
|
key=DPCode.CONTROL_BACK_MODE,
|
||||||
name="Motor mode",
|
name="Motor mode",
|
||||||
device_class=TuyaDeviceClass.CURTAIN_MOTOR_MODE,
|
|
||||||
entity_category=EntityCategory.CONFIG,
|
entity_category=EntityCategory.CONFIG,
|
||||||
icon="mdi:swap-horizontal",
|
icon="mdi:swap-horizontal",
|
||||||
|
translation_key="curtain_motor_mode",
|
||||||
),
|
),
|
||||||
SelectEntityDescription(
|
SelectEntityDescription(
|
||||||
key=DPCode.MODE,
|
key=DPCode.MODE,
|
||||||
name="Mode",
|
name="Mode",
|
||||||
device_class=TuyaDeviceClass.CURTAIN_MODE,
|
|
||||||
entity_category=EntityCategory.CONFIG,
|
entity_category=EntityCategory.CONFIG,
|
||||||
|
translation_key="curtain_mode",
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
# Humidifier
|
# Humidifier
|
||||||
|
@ -291,37 +291,37 @@ SELECTS: dict[str, tuple[SelectEntityDescription, ...]] = {
|
||||||
SelectEntityDescription(
|
SelectEntityDescription(
|
||||||
key=DPCode.SPRAY_MODE,
|
key=DPCode.SPRAY_MODE,
|
||||||
name="Spray mode",
|
name="Spray mode",
|
||||||
device_class=TuyaDeviceClass.HUMIDIFIER_SPRAY_MODE,
|
|
||||||
entity_category=EntityCategory.CONFIG,
|
entity_category=EntityCategory.CONFIG,
|
||||||
icon="mdi:spray",
|
icon="mdi:spray",
|
||||||
|
translation_key="humidifier_spray_mode",
|
||||||
),
|
),
|
||||||
SelectEntityDescription(
|
SelectEntityDescription(
|
||||||
key=DPCode.LEVEL,
|
key=DPCode.LEVEL,
|
||||||
name="Spraying level",
|
name="Spraying level",
|
||||||
device_class=TuyaDeviceClass.HUMIDIFIER_LEVEL,
|
|
||||||
entity_category=EntityCategory.CONFIG,
|
entity_category=EntityCategory.CONFIG,
|
||||||
icon="mdi:spray",
|
icon="mdi:spray",
|
||||||
|
translation_key="humidifier_level",
|
||||||
),
|
),
|
||||||
SelectEntityDescription(
|
SelectEntityDescription(
|
||||||
key=DPCode.MOODLIGHTING,
|
key=DPCode.MOODLIGHTING,
|
||||||
name="Moodlighting",
|
name="Moodlighting",
|
||||||
device_class=TuyaDeviceClass.HUMIDIFIER_MOODLIGHTING,
|
|
||||||
entity_category=EntityCategory.CONFIG,
|
entity_category=EntityCategory.CONFIG,
|
||||||
icon="mdi:lightbulb-multiple",
|
icon="mdi:lightbulb-multiple",
|
||||||
|
translation_key="humidifier_moodlighting",
|
||||||
),
|
),
|
||||||
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",
|
||||||
|
translation_key="countdown",
|
||||||
),
|
),
|
||||||
SelectEntityDescription(
|
SelectEntityDescription(
|
||||||
key=DPCode.COUNTDOWN_SET,
|
key=DPCode.COUNTDOWN_SET,
|
||||||
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",
|
||||||
|
translation_key="countdown",
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
# Air Purifier
|
# Air Purifier
|
||||||
|
@ -330,16 +330,16 @@ 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",
|
||||||
|
translation_key="countdown",
|
||||||
),
|
),
|
||||||
SelectEntityDescription(
|
SelectEntityDescription(
|
||||||
key=DPCode.COUNTDOWN_SET,
|
key=DPCode.COUNTDOWN_SET,
|
||||||
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",
|
||||||
|
translation_key="countdown",
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,7 +34,6 @@ from .const import (
|
||||||
TUYA_DISCOVERY_NEW,
|
TUYA_DISCOVERY_NEW,
|
||||||
DPCode,
|
DPCode,
|
||||||
DPType,
|
DPType,
|
||||||
TuyaDeviceClass,
|
|
||||||
UnitOfMeasurement,
|
UnitOfMeasurement,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -179,7 +178,6 @@ SENSORS: dict[str, tuple[TuyaSensorEntityDescription, ...]] = {
|
||||||
TuyaSensorEntityDescription(
|
TuyaSensorEntityDescription(
|
||||||
key=DPCode.STATUS,
|
key=DPCode.STATUS,
|
||||||
name="Status",
|
name="Status",
|
||||||
device_class=TuyaDeviceClass.STATUS,
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
# CO2 Detector
|
# CO2 Detector
|
||||||
|
@ -434,7 +432,7 @@ SENSORS: dict[str, tuple[TuyaSensorEntityDescription, ...]] = {
|
||||||
TuyaSensorEntityDescription(
|
TuyaSensorEntityDescription(
|
||||||
key=DPCode.STATUS,
|
key=DPCode.STATUS,
|
||||||
name="Status",
|
name="Status",
|
||||||
device_class=TuyaDeviceClass.STATUS,
|
translation_key="status",
|
||||||
),
|
),
|
||||||
TuyaSensorEntityDescription(
|
TuyaSensorEntityDescription(
|
||||||
key=DPCode.REMAIN_TIME,
|
key=DPCode.REMAIN_TIME,
|
||||||
|
@ -973,7 +971,7 @@ SENSORS: dict[str, tuple[TuyaSensorEntityDescription, ...]] = {
|
||||||
key=DPCode.AIR_QUALITY,
|
key=DPCode.AIR_QUALITY,
|
||||||
name="Air quality",
|
name="Air quality",
|
||||||
icon="mdi:air-filter",
|
icon="mdi:air-filter",
|
||||||
device_class=TuyaDeviceClass.AIR_QUALITY,
|
translation_key="air_quality",
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
# Fan
|
# Fan
|
||||||
|
|
|
@ -16,5 +16,201 @@
|
||||||
"invalid_auth": "[%key:common::config_flow::error::invalid_auth%]",
|
"invalid_auth": "[%key:common::config_flow::error::invalid_auth%]",
|
||||||
"login_error": "Login error ({code}): {msg}"
|
"login_error": "Login error ({code}): {msg}"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"entity": {
|
||||||
|
"select": {
|
||||||
|
"basic_anti_flicker": {
|
||||||
|
"state": {
|
||||||
|
"0": "Disabled",
|
||||||
|
"1": "50 Hz",
|
||||||
|
"2": "60 Hz"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"basic_nightvision": {
|
||||||
|
"state": {
|
||||||
|
"0": "Automatic",
|
||||||
|
"1": "[%key:common::state::off%]",
|
||||||
|
"2": "[%key:common::state::on%]"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"decibel_sensitivity": {
|
||||||
|
"state": {
|
||||||
|
"0": "Low sensitivity",
|
||||||
|
"1": "High sensitivity"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"ipc_work_mode": {
|
||||||
|
"state": {
|
||||||
|
"0": "Low power mode",
|
||||||
|
"1": "Continuous working mode"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"led_type": {
|
||||||
|
"state": {
|
||||||
|
"halogen": "Halogen",
|
||||||
|
"incandescent": "Incandescent",
|
||||||
|
"led": "LED"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"light_mode": {
|
||||||
|
"state": {
|
||||||
|
"none": "[%key:common::state::off%]",
|
||||||
|
"pos": "Indicate switch location",
|
||||||
|
"relay": "Indicate switch on/off state"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"motion_sensitivity": {
|
||||||
|
"state": {
|
||||||
|
"0": "Low sensitivity",
|
||||||
|
"1": "Medium sensitivity",
|
||||||
|
"2": "High sensitivity"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"record_mode": {
|
||||||
|
"state": {
|
||||||
|
"1": "Record events only",
|
||||||
|
"2": "Continuous recording"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"relay_status": {
|
||||||
|
"state": {
|
||||||
|
"last": "Remember last state",
|
||||||
|
"memory": "Remember last state",
|
||||||
|
"off": "[%key:common::state::off%]",
|
||||||
|
"on": "[%key:common::state::on%]",
|
||||||
|
"power_off": "[%key:common::state::off%]",
|
||||||
|
"power_on": "[%key:common::state::on%]"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"fingerbot_mode": {
|
||||||
|
"state": {
|
||||||
|
"click": "Push",
|
||||||
|
"switch": "Switch"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"vacuum_cistern": {
|
||||||
|
"state": {
|
||||||
|
"low": "Low",
|
||||||
|
"middle": "Middle",
|
||||||
|
"high": "High",
|
||||||
|
"closed": "Closed"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"vacuum_collection": {
|
||||||
|
"state": {
|
||||||
|
"small": "Small",
|
||||||
|
"middle": "Middle",
|
||||||
|
"large": "Large"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"vacuum_mode": {
|
||||||
|
"state": {
|
||||||
|
"standby": "Standby",
|
||||||
|
"random": "Random",
|
||||||
|
"smart": "Smart",
|
||||||
|
"wall_follow": "Follow Wall",
|
||||||
|
"mop": "Mop",
|
||||||
|
"spiral": "Spiral",
|
||||||
|
"left_spiral": "Spiral Left",
|
||||||
|
"right_spiral": "Spiral Right",
|
||||||
|
"bow": "Bow",
|
||||||
|
"left_bow": "Bow Left",
|
||||||
|
"right_bow": "Bow Right",
|
||||||
|
"partial_bow": "Bow Partially",
|
||||||
|
"chargego": "Return to dock",
|
||||||
|
"single": "Single",
|
||||||
|
"zone": "Zone",
|
||||||
|
"pose": "Pose",
|
||||||
|
"point": "Point",
|
||||||
|
"part": "Part",
|
||||||
|
"pick_zone": "Pick Zone"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"fan_angle": {
|
||||||
|
"state": {
|
||||||
|
"30": "30°",
|
||||||
|
"60": "60°",
|
||||||
|
"90": "90°"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"curtain_mode": {
|
||||||
|
"state": {
|
||||||
|
"morning": "Morning",
|
||||||
|
"night": "Night"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"curtain_motor_mode": {
|
||||||
|
"state": {
|
||||||
|
"forward": "Forward",
|
||||||
|
"back": "Back"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"countdown": {
|
||||||
|
"state": {
|
||||||
|
"cancel": "Cancel",
|
||||||
|
"1h": "1 hour",
|
||||||
|
"2h": "2 hours",
|
||||||
|
"3h": "3 hours",
|
||||||
|
"4h": "4 hours",
|
||||||
|
"5h": "5 hours",
|
||||||
|
"6h": "6 hours"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"humidifier_spray_mode": {
|
||||||
|
"state": {
|
||||||
|
"auto": "Auto",
|
||||||
|
"health": "Health",
|
||||||
|
"sleep": "Sleep",
|
||||||
|
"humidity": "Humidity",
|
||||||
|
"work": "Work"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"humidifier_level": {
|
||||||
|
"state": {
|
||||||
|
"level_1": "Level 1",
|
||||||
|
"level_2": "Level 2",
|
||||||
|
"level_3": "Level 3",
|
||||||
|
"level_4": "Level 4",
|
||||||
|
"level_5": "Level 5",
|
||||||
|
"level_6": "Level 6",
|
||||||
|
"level_7": "Level 7",
|
||||||
|
"level_8": "Level 8",
|
||||||
|
"level_9": "Level 9",
|
||||||
|
"level_10": "Level 10"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"humidifier_moodlighting": {
|
||||||
|
"state": {
|
||||||
|
"1": "Mood 1",
|
||||||
|
"2": "Mood 2",
|
||||||
|
"3": "Mood 3",
|
||||||
|
"4": "Mood 4",
|
||||||
|
"5": "Mood 5"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"sensor": {
|
||||||
|
"status": {
|
||||||
|
"state": {
|
||||||
|
"boiling_temp": "Boiling temperature",
|
||||||
|
"cooling": "Cooling",
|
||||||
|
"heating_temp": "Heating temperature",
|
||||||
|
"heating": "Heating",
|
||||||
|
"reserve_1": "Reserve 1",
|
||||||
|
"reserve_2": "Reserve 2",
|
||||||
|
"reserve_3": "Reserve 3",
|
||||||
|
"standby": "Standby",
|
||||||
|
"warm": "Heat preservation"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"air_quality": {
|
||||||
|
"state": {
|
||||||
|
"great": "Great",
|
||||||
|
"mild": "Mild",
|
||||||
|
"good": "Good",
|
||||||
|
"severe": "Severe"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,133 +0,0 @@
|
||||||
{
|
|
||||||
"state": {
|
|
||||||
"tuya__basic_anti_flickr": {
|
|
||||||
"0": "Disabled",
|
|
||||||
"1": "50 Hz",
|
|
||||||
"2": "60 Hz"
|
|
||||||
},
|
|
||||||
"tuya__basic_nightvision": {
|
|
||||||
"0": "Automatic",
|
|
||||||
"1": "[%key:common::state::off%]",
|
|
||||||
"2": "[%key:common::state::on%]"
|
|
||||||
},
|
|
||||||
"tuya__decibel_sensitivity": {
|
|
||||||
"0": "Low sensitivity",
|
|
||||||
"1": "High sensitivity"
|
|
||||||
},
|
|
||||||
"tuya__ipc_work_mode": {
|
|
||||||
"0": "Low power mode",
|
|
||||||
"1": "Continuous working mode"
|
|
||||||
},
|
|
||||||
"tuya__led_type": {
|
|
||||||
"halogen": "Halogen",
|
|
||||||
"incandescent": "Incandescent",
|
|
||||||
"led": "LED"
|
|
||||||
},
|
|
||||||
"tuya__light_mode": {
|
|
||||||
"none": "[%key:common::state::off%]",
|
|
||||||
"pos": "Indicate switch location",
|
|
||||||
"relay": "Indicate switch on/off state"
|
|
||||||
},
|
|
||||||
"tuya__motion_sensitivity": {
|
|
||||||
"0": "Low sensitivity",
|
|
||||||
"1": "Medium sensitivity",
|
|
||||||
"2": "High sensitivity"
|
|
||||||
},
|
|
||||||
"tuya__record_mode": {
|
|
||||||
"1": "Record events only",
|
|
||||||
"2": "Continuous recording"
|
|
||||||
},
|
|
||||||
"tuya__relay_status": {
|
|
||||||
"last": "Remember last state",
|
|
||||||
"memory": "Remember last state",
|
|
||||||
"off": "[%key:common::state::off%]",
|
|
||||||
"on": "[%key:common::state::on%]",
|
|
||||||
"power_off": "[%key:common::state::off%]",
|
|
||||||
"power_on": "[%key:common::state::on%]"
|
|
||||||
},
|
|
||||||
"tuya__fingerbot_mode": {
|
|
||||||
"click": "Push",
|
|
||||||
"switch": "Switch"
|
|
||||||
},
|
|
||||||
"tuya__vacuum_cistern": {
|
|
||||||
"low": "Low",
|
|
||||||
"middle": "Middle",
|
|
||||||
"high": "High",
|
|
||||||
"closed": "Closed"
|
|
||||||
},
|
|
||||||
"tuya__vacuum_collection": {
|
|
||||||
"small": "Small",
|
|
||||||
"middle": "Middle",
|
|
||||||
"large": "Large"
|
|
||||||
},
|
|
||||||
"tuya__vacuum_mode": {
|
|
||||||
"standby": "Standby",
|
|
||||||
"random": "Random",
|
|
||||||
"smart": "Smart",
|
|
||||||
"wall_follow": "Follow Wall",
|
|
||||||
"mop": "Mop",
|
|
||||||
"spiral": "Spiral",
|
|
||||||
"left_spiral": "Spiral Left",
|
|
||||||
"right_spiral": "Spiral Right",
|
|
||||||
"bow": "Bow",
|
|
||||||
"left_bow": "Bow Left",
|
|
||||||
"right_bow": "Bow Right",
|
|
||||||
"partial_bow": "Bow Partially",
|
|
||||||
"chargego": "Return to dock",
|
|
||||||
"single": "Single",
|
|
||||||
"zone": "Zone",
|
|
||||||
"pose": "Pose",
|
|
||||||
"point": "Point",
|
|
||||||
"part": "Part",
|
|
||||||
"pick_zone": "Pick Zone"
|
|
||||||
},
|
|
||||||
"tuya__fan_angle": {
|
|
||||||
"30": "30°",
|
|
||||||
"60": "60°",
|
|
||||||
"90": "90°"
|
|
||||||
},
|
|
||||||
"tuya__curtain_mode": {
|
|
||||||
"morning": "Morning",
|
|
||||||
"night": "Night"
|
|
||||||
},
|
|
||||||
"tuya__curtain_motor_mode": {
|
|
||||||
"forward": "Forward",
|
|
||||||
"back": "Back"
|
|
||||||
},
|
|
||||||
"tuya__countdown": {
|
|
||||||
"cancel": "Cancel",
|
|
||||||
"1h": "1 hour",
|
|
||||||
"2h": "2 hours",
|
|
||||||
"3h": "3 hours",
|
|
||||||
"4h": "4 hours",
|
|
||||||
"5h": "5 hours",
|
|
||||||
"6h": "6 hours"
|
|
||||||
},
|
|
||||||
"tuya__humidifier_spray_mode": {
|
|
||||||
"auto": "Auto",
|
|
||||||
"health": "Health",
|
|
||||||
"sleep": "Sleep",
|
|
||||||
"humidity": "Humidity",
|
|
||||||
"work": "Work"
|
|
||||||
},
|
|
||||||
"tuya__humidifier_level": {
|
|
||||||
"level_1": "Level 1",
|
|
||||||
"level_2": "Level 2",
|
|
||||||
"level_3": "Level 3",
|
|
||||||
"level_4": "Level 4",
|
|
||||||
"level_5": "Level 5",
|
|
||||||
"level_6": "Level 6",
|
|
||||||
"level_7": "Level 7",
|
|
||||||
"level_8": "Level 8",
|
|
||||||
"level_9": "Level 9",
|
|
||||||
"level_10": "Level 10"
|
|
||||||
},
|
|
||||||
"tuya__humidifier_moodlighting": {
|
|
||||||
"1": "Mood 1",
|
|
||||||
"2": "Mood 2",
|
|
||||||
"3": "Mood 3",
|
|
||||||
"4": "Mood 4",
|
|
||||||
"5": "Mood 5"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,21 +0,0 @@
|
||||||
{
|
|
||||||
"state": {
|
|
||||||
"tuya__status": {
|
|
||||||
"boiling_temp": "Boiling temperature",
|
|
||||||
"cooling": "Cooling",
|
|
||||||
"heating_temp": "Heating temperature",
|
|
||||||
"heating": "Heating",
|
|
||||||
"reserve_1": "Reserve 1",
|
|
||||||
"reserve_2": "Reserve 2",
|
|
||||||
"reserve_3": "Reserve 3",
|
|
||||||
"standby": "Standby",
|
|
||||||
"warm": "Heat preservation"
|
|
||||||
},
|
|
||||||
"tuya__air_quality": {
|
|
||||||
"great": "Great",
|
|
||||||
"mild": "Mild",
|
|
||||||
"good": "Good",
|
|
||||||
"severe": "Severe"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -16,5 +16,201 @@
|
||||||
"description": "Enter your Tuya credentials"
|
"description": "Enter your Tuya credentials"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"entity": {
|
||||||
|
"select": {
|
||||||
|
"basic_anti_flicker": {
|
||||||
|
"state": {
|
||||||
|
"0": "Disabled",
|
||||||
|
"1": "50 Hz",
|
||||||
|
"2": "60 Hz"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"basic_nightvision": {
|
||||||
|
"state": {
|
||||||
|
"0": "Automatic",
|
||||||
|
"1": "Off",
|
||||||
|
"2": "On"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"countdown": {
|
||||||
|
"state": {
|
||||||
|
"1h": "1 hour",
|
||||||
|
"2h": "2 hours",
|
||||||
|
"3h": "3 hours",
|
||||||
|
"4h": "4 hours",
|
||||||
|
"5h": "5 hours",
|
||||||
|
"6h": "6 hours",
|
||||||
|
"cancel": "Cancel"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"curtain_mode": {
|
||||||
|
"state": {
|
||||||
|
"morning": "Morning",
|
||||||
|
"night": "Night"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"curtain_motor_mode": {
|
||||||
|
"state": {
|
||||||
|
"back": "Back",
|
||||||
|
"forward": "Forward"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"decibel_sensitivity": {
|
||||||
|
"state": {
|
||||||
|
"0": "Low sensitivity",
|
||||||
|
"1": "High sensitivity"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"fan_angle": {
|
||||||
|
"state": {
|
||||||
|
"30": "30\u00b0",
|
||||||
|
"60": "60\u00b0",
|
||||||
|
"90": "90\u00b0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"fingerbot_mode": {
|
||||||
|
"state": {
|
||||||
|
"click": "Push",
|
||||||
|
"switch": "Switch"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"humidifier_level": {
|
||||||
|
"state": {
|
||||||
|
"level_1": "Level 1",
|
||||||
|
"level_10": "Level 10",
|
||||||
|
"level_2": "Level 2",
|
||||||
|
"level_3": "Level 3",
|
||||||
|
"level_4": "Level 4",
|
||||||
|
"level_5": "Level 5",
|
||||||
|
"level_6": "Level 6",
|
||||||
|
"level_7": "Level 7",
|
||||||
|
"level_8": "Level 8",
|
||||||
|
"level_9": "Level 9"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"humidifier_moodlighting": {
|
||||||
|
"state": {
|
||||||
|
"1": "Mood 1",
|
||||||
|
"2": "Mood 2",
|
||||||
|
"3": "Mood 3",
|
||||||
|
"4": "Mood 4",
|
||||||
|
"5": "Mood 5"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"humidifier_spray_mode": {
|
||||||
|
"state": {
|
||||||
|
"auto": "Auto",
|
||||||
|
"health": "Health",
|
||||||
|
"humidity": "Humidity",
|
||||||
|
"sleep": "Sleep",
|
||||||
|
"work": "Work"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"ipc_work_mode": {
|
||||||
|
"state": {
|
||||||
|
"0": "Low power mode",
|
||||||
|
"1": "Continuous working mode"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"led_type": {
|
||||||
|
"state": {
|
||||||
|
"halogen": "Halogen",
|
||||||
|
"incandescent": "Incandescent",
|
||||||
|
"led": "LED"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"light_mode": {
|
||||||
|
"state": {
|
||||||
|
"none": "Off",
|
||||||
|
"pos": "Indicate switch location",
|
||||||
|
"relay": "Indicate switch on/off state"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"motion_sensitivity": {
|
||||||
|
"state": {
|
||||||
|
"0": "Low sensitivity",
|
||||||
|
"1": "Medium sensitivity",
|
||||||
|
"2": "High sensitivity"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"record_mode": {
|
||||||
|
"state": {
|
||||||
|
"1": "Record events only",
|
||||||
|
"2": "Continuous recording"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"relay_status": {
|
||||||
|
"state": {
|
||||||
|
"last": "Remember last state",
|
||||||
|
"memory": "Remember last state",
|
||||||
|
"off": "Off",
|
||||||
|
"on": "On",
|
||||||
|
"power_off": "Off",
|
||||||
|
"power_on": "On"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"vacuum_cistern": {
|
||||||
|
"state": {
|
||||||
|
"closed": "Closed",
|
||||||
|
"high": "High",
|
||||||
|
"low": "Low",
|
||||||
|
"middle": "Middle"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"vacuum_collection": {
|
||||||
|
"state": {
|
||||||
|
"large": "Large",
|
||||||
|
"middle": "Middle",
|
||||||
|
"small": "Small"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"vacuum_mode": {
|
||||||
|
"state": {
|
||||||
|
"bow": "Bow",
|
||||||
|
"chargego": "Return to dock",
|
||||||
|
"left_bow": "Bow Left",
|
||||||
|
"left_spiral": "Spiral Left",
|
||||||
|
"mop": "Mop",
|
||||||
|
"part": "Part",
|
||||||
|
"partial_bow": "Bow Partially",
|
||||||
|
"pick_zone": "Pick Zone",
|
||||||
|
"point": "Point",
|
||||||
|
"pose": "Pose",
|
||||||
|
"random": "Random",
|
||||||
|
"right_bow": "Bow Right",
|
||||||
|
"right_spiral": "Spiral Right",
|
||||||
|
"single": "Single",
|
||||||
|
"smart": "Smart",
|
||||||
|
"spiral": "Spiral",
|
||||||
|
"standby": "Standby",
|
||||||
|
"wall_follow": "Follow Wall",
|
||||||
|
"zone": "Zone"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"sensor": {
|
||||||
|
"air_quality": {
|
||||||
|
"state": {
|
||||||
|
"good": "Good",
|
||||||
|
"great": "Great",
|
||||||
|
"mild": "Mild",
|
||||||
|
"severe": "Severe"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"status": {
|
||||||
|
"state": {
|
||||||
|
"boiling_temp": "Boiling temperature",
|
||||||
|
"cooling": "Cooling",
|
||||||
|
"heating": "Heating",
|
||||||
|
"heating_temp": "Heating temperature",
|
||||||
|
"reserve_1": "Reserve 1",
|
||||||
|
"reserve_2": "Reserve 2",
|
||||||
|
"reserve_3": "Reserve 3",
|
||||||
|
"standby": "Standby",
|
||||||
|
"warm": "Heat preservation"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue