diff --git a/lib/constants.js b/lib/constants.js index 1568931bd63d7..45d6e2e9fc49a 100644 --- a/lib/constants.js +++ b/lib/constants.js @@ -24,6 +24,7 @@ const thermostatControlSequenceOfOperations = { const thermostatProgrammingOperationModes = { 0: 'setpoint', 1: 'schedule', + 3: 'schedule_with_preheat', 4: 'eco', }; diff --git a/lib/exposes.js b/lib/exposes.js index 03e10e87910f2..950f655c8cd23 100644 --- a/lib/exposes.js +++ b/lib/exposes.js @@ -626,7 +626,7 @@ module.exports = { power_outage_memory: () => new Binary('power_outage_memory', access.ALL, true, false).withDescription('Enable/disable the power outage memory, this recovers the on/off mode after power failure'), presence: () => new Binary('presence', access.STATE, true, false).withDescription('Indicates whether the device detected presence'), pressure: () => new Numeric('pressure', access.STATE).withUnit('hPa').withDescription('The measured atmospheric pressure'), - programming_operation_mode: () => new Enum('programming_operation_mode', access.ALL, ['setpoint', 'schedule', 'eco']).withDescription('Controls how programming affects the thermostat. Possible values: setpoint (only use specified setpoint), schedule (follow programmed setpoint schedule). Changing this value does not clear programmed schedules.'), + programming_operation_mode: () => new Enum('programming_operation_mode', access.ALL, ['setpoint', 'schedule', 'schedule_with_preheat', 'eco']).withDescription('Controls how programming affects the thermostat. Possible values: setpoint (only use specified setpoint), schedule (follow programmed setpoint schedule), schedule_with_preheat (follow programmed setpoint schedule with pre-heating). Changing this value does not clear programmed schedules.'), smoke: () => new Binary('smoke', access.STATE, true, false).withDescription('Indicates whether the device detected smoke'), soil_moisture: () => new Numeric('soil_moisture', access.STATE).withUnit('%').withDescription('Measured soil moisture value'), sos: () => new Binary('sos', access.STATE, true, false).withDescription('SOS alarm'),