Skip to content
Merged
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
74 changes: 72 additions & 2 deletions src/devices/tuya.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6370,7 +6370,6 @@ export const definitions: DefinitionWithExtend[] = [
"_TZE200_6rdj8dzm" /* model: 'ME167', vendor: 'AVATTO' */,
"_TZE200_9xfjixap" /* model: 'ME167', vendor: 'AVATTO' */,
"_TZE200_jkfbph7l" /* model: 'ME167', vendor: 'AVATTO' */,
"_TZE200_p3dbf6qs" /* model: 'ME167', vendor: 'AVATTO' */,
"_TZE200_rxntag7i" /* model: 'ME168', vendor: 'AVATTO' */,
"_TZE200_yqgbrdyo",
"_TZE284_p3dbf6qs",
Expand All @@ -6392,7 +6391,6 @@ export const definitions: DefinitionWithExtend[] = [
description: "Thermostatic radiator valve",
whiteLabel: [
tuya.whitelabel("AVATTO", "ME167", "Thermostatic radiator valve", [
"_TZE200_p3dbf6qs",
"_TZE200_bvu2wnxz",
"_TZE200_6rdj8dzm",
"_TZE200_9xfjixap",
Expand Down Expand Up @@ -6557,6 +6555,78 @@ export const definitions: DefinitionWithExtend[] = [
],
},
},
{
fingerprint: tuya.fingerprint("TS0601", ["_TZE200_p3dbf6qs" /* model: 'ME167_1', vendor: 'AVATTO' */]),
model: "TS0601_thermostat_5",
vendor: "Tuya",
description: "Thermostatic radiator valve",
whiteLabel: [tuya.whitelabel("AVATTO", "ME167_1", "Thermostatic radiator valve", ["_TZE200_p3dbf6qs"])],
extend: [tuya.modernExtend.tuyaBase({dp: true, timeStart: "2000"})],
exposes: [
e.child_lock(),
e.battery_low(),
e
.climate()
.withSetpoint("current_heating_setpoint", 5, 35, 1, ea.STATE_SET)
.withLocalTemperature(ea.STATE)
.withSystemMode(["auto", "heat", "off"], ea.STATE_SET)
.withRunningState(["idle", "heat"], ea.STATE)
.withPiHeatingDemand()
.withLocalTemperatureCalibration(-9, 9, 1, ea.STATE_SET),
...tuya.exposes.scheduleAllDays(ea.STATE_SET, "HH:MM/C HH:MM/C HH:MM/C HH:MM/C HH:MM/C HH:MM/C"),
e
.binary("scale_protection", ea.STATE_SET, "ON", "OFF")
.withDescription(
"If the heat sink is not fully opened within " +
"two weeks or is not used for a long time, the valve will be blocked due to silting up and the heat sink will not be " +
"able to be used. To ensure normal use of the heat sink, the controller will automatically open the valve fully every " +
'two weeks. It will run for 30 seconds per time with the screen displaying "Ad", then return to its normal working state ' +
"again.",
),
e
.binary("frost_protection", ea.STATE_SET, "ON", "OFF")
.withDescription(
"When the room temperature is lower than 5 °C, the valve opens; when the temperature rises to 8 °C, the valve closes.",
),
e.numeric("error", ea.STATE).withDescription('If NTC is damaged, "Er" will be on the TRV display.'),
],
meta: {
tuyaDatapoints: [
[
2,
"system_mode",
tuya.valueConverterBasic.lookup({
auto: tuya.enum(0),
heat: tuya.enum(1),
off: tuya.enum(2),
}),
],
[
3,
"running_state",
tuya.valueConverterBasic.lookup({
heat: tuya.enum(0),
idle: tuya.enum(1),
}),
],
[4, "current_heating_setpoint", tuya.valueConverter.divideBy10],
[5, "local_temperature", tuya.valueConverter.divideBy10],
[7, "child_lock", tuya.valueConverter.lockUnlock],
[28, "schedule_wednesday", tuya.valueConverter.thermostatScheduleDayMultiDPWithDayNumber(1, 6)],
[29, "schedule_thursday", tuya.valueConverter.thermostatScheduleDayMultiDPWithDayNumber(2, 6)],
[30, "schedule_friday", tuya.valueConverter.thermostatScheduleDayMultiDPWithDayNumber(3, 6)],
[31, "schedule_saturday", tuya.valueConverter.thermostatScheduleDayMultiDPWithDayNumber(4, 6)],
[32, "schedule_sunday", tuya.valueConverter.thermostatScheduleDayMultiDPWithDayNumber(5, 6)],
[33, "schedule_monday", tuya.valueConverter.thermostatScheduleDayMultiDPWithDayNumber(6, 6)],
[34, "schedule_tuesday", tuya.valueConverter.thermostatScheduleDayMultiDPWithDayNumber(7, 6)],
[35, null, tuya.valueConverter.errorOrBatteryLow],
[36, "frost_protection", tuya.valueConverter.onOff],
[39, "scale_protection", tuya.valueConverter.onOff],
[47, "local_temperature_calibration", tuya.valueConverter.localTempCalibration2],
[101, "pi_heating_demand", tuya.valueConverter.raw],
],
},
},
{
fingerprint: [...tuya.fingerprint("v90ladg\u0000", ["_TYST11_wv90ladg"]), ...tuya.fingerprint("TS0601", ["_TZE200_wv90ladg"])],
model: "HT-08",
Expand Down