mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Add Tuya Sous Vide Cooker (#69777)
This commit is contained in:
parent
8087982193
commit
0404c76c41
@ -181,6 +181,7 @@ class DPCode(StrEnum):
|
|||||||
CLEAN_AREA = "clean_area"
|
CLEAN_AREA = "clean_area"
|
||||||
CLEAN_TIME = "clean_time"
|
CLEAN_TIME = "clean_time"
|
||||||
CLICK_SUSTAIN_TIME = "click_sustain_time"
|
CLICK_SUSTAIN_TIME = "click_sustain_time"
|
||||||
|
CLOUD_RECIPE_NUMBER = "cloud_recipe_number"
|
||||||
CO_STATE = "co_state"
|
CO_STATE = "co_state"
|
||||||
CO_STATUS = "co_status"
|
CO_STATUS = "co_status"
|
||||||
CO_VALUE = "co_value"
|
CO_VALUE = "co_value"
|
||||||
@ -191,6 +192,8 @@ class DPCode(StrEnum):
|
|||||||
COLOUR_DATA = "colour_data" # Colored light mode
|
COLOUR_DATA = "colour_data" # Colored light mode
|
||||||
COLOUR_DATA_HSV = "colour_data_hsv" # Colored light mode
|
COLOUR_DATA_HSV = "colour_data_hsv" # Colored light mode
|
||||||
COLOUR_DATA_V2 = "colour_data_v2" # Colored light mode
|
COLOUR_DATA_V2 = "colour_data_v2" # Colored light mode
|
||||||
|
COOK_TEMPERATURE = "cook_temperature"
|
||||||
|
COOK_TIME = "cook_time"
|
||||||
CONCENTRATION_SET = "concentration_set" # Concentration setting
|
CONCENTRATION_SET = "concentration_set" # Concentration setting
|
||||||
CONTROL = "control"
|
CONTROL = "control"
|
||||||
CONTROL_2 = "control_2"
|
CONTROL_2 = "control_2"
|
||||||
@ -295,6 +298,7 @@ class DPCode(StrEnum):
|
|||||||
RECORD_MODE = "record_mode"
|
RECORD_MODE = "record_mode"
|
||||||
RECORD_SWITCH = "record_switch" # Recording switch
|
RECORD_SWITCH = "record_switch" # Recording switch
|
||||||
RELAY_STATUS = "relay_status"
|
RELAY_STATUS = "relay_status"
|
||||||
|
REMAIN_TIME = "remain_time"
|
||||||
RESET_DUSTER_CLOTH = "reset_duster_cloth"
|
RESET_DUSTER_CLOTH = "reset_duster_cloth"
|
||||||
RESET_EDGE_BRUSH = "reset_edge_brush"
|
RESET_EDGE_BRUSH = "reset_edge_brush"
|
||||||
RESET_FILTER = "reset_filter"
|
RESET_FILTER = "reset_filter"
|
||||||
|
@ -9,6 +9,7 @@ from homeassistant.components.number import (
|
|||||||
NumberEntityDescription,
|
NumberEntityDescription,
|
||||||
)
|
)
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
|
from homeassistant.const import TIME_MINUTES
|
||||||
from homeassistant.core import HomeAssistant, callback
|
from homeassistant.core import HomeAssistant, callback
|
||||||
from homeassistant.helpers.dispatcher import async_dispatcher_connect
|
from homeassistant.helpers.dispatcher import async_dispatcher_connect
|
||||||
from homeassistant.helpers.entity import EntityCategory
|
from homeassistant.helpers.entity import EntityCategory
|
||||||
@ -132,6 +133,28 @@ NUMBERS: dict[str, tuple[NumberEntityDescription, ...]] = {
|
|||||||
entity_category=EntityCategory.CONFIG,
|
entity_category=EntityCategory.CONFIG,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
# Sous Vide Cooker
|
||||||
|
# https://developer.tuya.com/en/docs/iot/categorymzj?id=Kaiuz2vy130ux
|
||||||
|
"mzj": (
|
||||||
|
NumberEntityDescription(
|
||||||
|
key=DPCode.COOK_TEMPERATURE,
|
||||||
|
name="Cook Temperature",
|
||||||
|
icon="mdi:thermometer",
|
||||||
|
entity_category=EntityCategory.CONFIG,
|
||||||
|
),
|
||||||
|
NumberEntityDescription(
|
||||||
|
key=DPCode.COOK_TIME,
|
||||||
|
name="Cook Time",
|
||||||
|
icon="mdi:timer",
|
||||||
|
unit_of_measurement=TIME_MINUTES,
|
||||||
|
entity_category=EntityCategory.CONFIG,
|
||||||
|
),
|
||||||
|
NumberEntityDescription(
|
||||||
|
key=DPCode.CLOUD_RECIPE_NUMBER,
|
||||||
|
name="Cloud Recipe",
|
||||||
|
entity_category=EntityCategory.CONFIG,
|
||||||
|
),
|
||||||
|
),
|
||||||
# Robot Vacuum
|
# Robot Vacuum
|
||||||
# https://developer.tuya.com/en/docs/iot/fsd?id=K9gf487ck1tlo
|
# https://developer.tuya.com/en/docs/iot/fsd?id=K9gf487ck1tlo
|
||||||
"sd": (
|
"sd": (
|
||||||
|
@ -18,6 +18,7 @@ from homeassistant.const import (
|
|||||||
ELECTRIC_POTENTIAL_VOLT,
|
ELECTRIC_POTENTIAL_VOLT,
|
||||||
PERCENTAGE,
|
PERCENTAGE,
|
||||||
POWER_KILO_WATT,
|
POWER_KILO_WATT,
|
||||||
|
TIME_MINUTES,
|
||||||
)
|
)
|
||||||
from homeassistant.core import HomeAssistant, callback
|
from homeassistant.core import HomeAssistant, callback
|
||||||
from homeassistant.helpers.dispatcher import async_dispatcher_connect
|
from homeassistant.helpers.dispatcher import async_dispatcher_connect
|
||||||
@ -379,6 +380,27 @@ SENSORS: dict[str, tuple[TuyaSensorEntityDescription, ...]] = {
|
|||||||
# Door Window Sensor
|
# Door Window Sensor
|
||||||
# https://developer.tuya.com/en/docs/iot/s?id=K9gf48hm02l8m
|
# https://developer.tuya.com/en/docs/iot/s?id=K9gf48hm02l8m
|
||||||
"mcs": BATTERY_SENSORS,
|
"mcs": BATTERY_SENSORS,
|
||||||
|
# Sous Vide Cooker
|
||||||
|
# https://developer.tuya.com/en/docs/iot/categorymzj?id=Kaiuz2vy130ux
|
||||||
|
"mzj": (
|
||||||
|
TuyaSensorEntityDescription(
|
||||||
|
key=DPCode.TEMP_CURRENT,
|
||||||
|
name="Current Temperature",
|
||||||
|
device_class=SensorDeviceClass.TEMPERATURE,
|
||||||
|
state_class=SensorStateClass.MEASUREMENT,
|
||||||
|
),
|
||||||
|
TuyaSensorEntityDescription(
|
||||||
|
key=DPCode.STATUS,
|
||||||
|
name="Status",
|
||||||
|
device_class=TuyaDeviceClass.STATUS,
|
||||||
|
),
|
||||||
|
TuyaSensorEntityDescription(
|
||||||
|
key=DPCode.REMAIN_TIME,
|
||||||
|
name="Remaining Time",
|
||||||
|
native_unit_of_measurement=TIME_MINUTES,
|
||||||
|
icon="mdi:timer",
|
||||||
|
),
|
||||||
|
),
|
||||||
# PIR Detector
|
# PIR Detector
|
||||||
# https://developer.tuya.com/en/docs/iot/categorypir?id=Kaiuz3ss11b80
|
# https://developer.tuya.com/en/docs/iot/categorypir?id=Kaiuz3ss11b80
|
||||||
"pir": BATTERY_SENSORS,
|
"pir": BATTERY_SENSORS,
|
||||||
|
@ -269,6 +269,16 @@ SWITCHES: dict[str, tuple[SwitchEntityDescription, ...]] = {
|
|||||||
entity_category=EntityCategory.CONFIG,
|
entity_category=EntityCategory.CONFIG,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
# Sous Vide Cooker
|
||||||
|
# https://developer.tuya.com/en/docs/iot/categorymzj?id=Kaiuz2vy130ux
|
||||||
|
"mzj": (
|
||||||
|
SwitchEntityDescription(
|
||||||
|
key=DPCode.SWITCH,
|
||||||
|
name="Switch",
|
||||||
|
icon="mdi:pot-steam",
|
||||||
|
entity_category=EntityCategory.CONFIG,
|
||||||
|
),
|
||||||
|
),
|
||||||
# Power Socket
|
# Power Socket
|
||||||
# https://developer.tuya.com/en/docs/iot/s?id=K9gf7o5prgf7s
|
# https://developer.tuya.com/en/docs/iot/s?id=K9gf7o5prgf7s
|
||||||
"pc": (
|
"pc": (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user