Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions homeassistant/components/tuya/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -658,6 +658,7 @@ class DPCode(StrEnum):
COLOUR_DATA = "colour_data" # Colored light mode
COLOUR_DATA_HSV = "colour_data_hsv" # Colored light mode
COLOUR_DATA_V2 = "colour_data_v2" # Colored light mode
COMPRESSOR_STRENGTH = "compressor_strength"
CONCENTRATION_SET = "concentration_set" # Concentration setting
CONTROL = "control"
CONTROL_2 = "control_2"
Expand Down Expand Up @@ -911,8 +912,10 @@ class DPCode(StrEnum):
TARGET_DIS_CLOSEST = "target_dis_closest" # Closest target distance
TDS_IN = "tds_in" # Total dissolved solids
TEMP = "temp" # Temperature setting
TEMP_AROUND = "temp_around" # Current around (outside) temperature
TEMP_BOILING_C = "temp_boiling_c"
TEMP_BOILING_F = "temp_boiling_f"
TEMP_COILER = "temp_coiler" # Current coil temperature
TEMP_CONTROLLER = "temp_controller"
TEMP_CORRECTION = "temp_correction"
TEMP_CURRENT = "temp_current" # Current temperature in °C
Expand All @@ -933,12 +936,14 @@ class DPCode(StrEnum):
"temp_current_external_f" # Current external temperature in Fahrenheit
)
TEMP_CURRENT_F = "temp_current_f" # Current temperature in °F
TEMP_EFFLUENT = "temp_effluent" # Current flow temperature
TEMP_INDOOR = "temp_indoor" # Indoor temperature in °C
TEMP_SET = "temp_set" # Set the temperature in °C
TEMP_SET_F = "temp_set_f" # Set the temperature in °F
TEMP_UNIT_CONVERT = "temp_unit_convert" # Temperature unit switching
TEMP_VALUE = "temp_value" # Color temperature
TEMP_VALUE_V2 = "temp_value_v2"
TEMP_VENTING = "temp_venting" # Current heat plate temperature
TEMPER_ALARM = "temper_alarm" # Tamper alarm
TIME_TOTAL = "time_total"
TIME_USE = "time_use" # Total seconds of irrigation
Expand Down
29 changes: 29 additions & 0 deletions homeassistant/components/tuya/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1613,12 +1613,41 @@ class TuyaSensorEntityDescription(SensorEntityDescription):
),
),
DeviceCategory.ZNRB: (
TuyaSensorEntityDescription(
key=DPCode.COMPRESSOR_STRENGTH,
translation_key="compressor_strength",
Comment thread
tbouron marked this conversation as resolved.
state_class=SensorStateClass.MEASUREMENT,
Comment thread
epenet marked this conversation as resolved.
),
TuyaSensorEntityDescription(
key=DPCode.TEMP_AROUND,
translation_key="outside_temperature",
Comment thread
tbouron marked this conversation as resolved.
device_class=SensorDeviceClass.TEMPERATURE,
state_class=SensorStateClass.MEASUREMENT,
),
Comment thread
tbouron marked this conversation as resolved.
TuyaSensorEntityDescription(
key=DPCode.TEMP_COILER,
translation_key="coil_temperature",
device_class=SensorDeviceClass.TEMPERATURE,
state_class=SensorStateClass.MEASUREMENT,
),
Comment thread
tbouron marked this conversation as resolved.
Comment thread
epenet marked this conversation as resolved.
TuyaSensorEntityDescription(
key=DPCode.TEMP_CURRENT,
translation_key="temperature",
device_class=SensorDeviceClass.TEMPERATURE,
state_class=SensorStateClass.MEASUREMENT,
Comment thread
tbouron marked this conversation as resolved.
),
TuyaSensorEntityDescription(
Comment thread
epenet marked this conversation as resolved.
key=DPCode.TEMP_EFFLUENT,
translation_key="flow_temperature",
Comment thread
tbouron marked this conversation as resolved.
device_class=SensorDeviceClass.TEMPERATURE,
state_class=SensorStateClass.MEASUREMENT,
),
Comment thread
tbouron marked this conversation as resolved.
TuyaSensorEntityDescription(
key=DPCode.TEMP_VENTING,
translation_key="heat_exchanger_temperature",
Comment thread
tbouron marked this conversation as resolved.
device_class=SensorDeviceClass.TEMPERATURE,
state_class=SensorStateClass.MEASUREMENT,
),
Comment thread
tbouron marked this conversation as resolved.
Comment thread
tbouron marked this conversation as resolved.
Comment thread
epenet marked this conversation as resolved.
),
DeviceCategory.ZWJCY: (
TuyaSensorEntityDescription(
Expand Down
15 changes: 15 additions & 0 deletions homeassistant/components/tuya/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -655,6 +655,12 @@
"cleaning_time": {
"name": "Cleaning time"
},
"coil_temperature": {
"name": "Coil temperature"
},
"compressor_strength": {
"name": "Compressor strength"
},
"concentration_carbon_dioxide": {
"name": "Concentration of carbon dioxide"
},
Expand Down Expand Up @@ -691,12 +697,18 @@
"filter_utilization": {
"name": "Filter utilization"
},
"flow_temperature": {
"name": "Flow temperature"
},
"formaldehyde": {
"name": "[%key:component::tuya::entity::binary_sensor::formaldehyde::name%]"
},
"gas": {
"name": "Gas"
},
"heat_exchanger_temperature": {
"name": "Heat exchanger temperature"
},
"heat_index_temperature": {
"name": "Heat index"
},
Expand Down Expand Up @@ -779,6 +791,9 @@
"work": "Working"
}
},
"outside_temperature": {
"name": "Outside temperature"
},
"oxydo_reduction_potential": {
"name": "Oxydo reduction potential"
},
Expand Down
6 changes: 6 additions & 0 deletions homeassistant/components/tuya/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -901,6 +901,12 @@
),
),
DeviceCategory.ZNRB: (
SwitchEntityDescription(
key=DPCode.CHILD_LOCK,
translation_key="child_lock",
icon="mdi:account-lock",
Comment thread
tbouron marked this conversation as resolved.
entity_category=EntityCategory.CONFIG,
),
SwitchEntityDescription(
key=DPCode.SWITCH,
translation_key="switch",
Expand Down
Loading