From 7d36c16a5883ce666bce21e42bd44cf17f6465ff Mon Sep 17 00:00:00 2001 From: Koen Kanters Date: Mon, 21 Sep 2020 19:13:42 +0200 Subject: [PATCH] Add missing tuyaThermostatPreset for TuYa thermostats. https://github.com/Koenkk/zigbee2mqtt/issues/4419 --- devices.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/devices.js b/devices.js index a5e0c6f33a43a..14ba3fb50ba43 100755 --- a/devices.js +++ b/devices.js @@ -1674,7 +1674,7 @@ const devices = [ description: 'HVAC controller', supports: 'temperature, heating/cooling system control, fan mode', fromZigbee: [fz.tuya_thermostat, fz.tuya_thermostat_on_set_data, fz.ignore_basic_report, fz.tuya_dimmer], - meta: {tuyaThermostatSystemMode: common.TuyaThermostatSystemModes2}, + meta: {tuyaThermostatSystemMode: common.TuyaThermostatSystemModes2, tuyaThermostatPreset: common.TuyaThermostatPresets}, toZigbee: [ tz.tuya_thermostat_current_heating_setpoint, tz.tuya_thermostat_system_mode, tz.tuya_thermostat_fan_mode, tz.tuya_dimmer_state, @@ -12633,7 +12633,7 @@ const devices = [ fz.tuya_thermostat_on_set_data, fz.ignore_basic_report, ], - meta: {tuyaThermostatSystemMode: common.TuyaThermostatSystemModes}, + meta: {tuyaThermostatSystemMode: common.TuyaThermostatSystemModes, tuyaThermostatPreset: common.TuyaThermostatPresets}, toZigbee: [ tz.tuya_thermostat_child_lock, tz.tuya_thermostat_window_detection,