From 8e452d324e1bf3b0530d8f60a3bd4b223afc69c5 Mon Sep 17 00:00:00 2001 From: Bob van de Vijver Date: Fri, 26 Jun 2026 11:53:00 +0200 Subject: [PATCH] Add missing runningMode attribute definition for thermostat cluster --- index.d.ts | 1 + lib/clusters/thermostat.js | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/index.d.ts b/index.d.ts index b52adc7..76a2f37 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1782,6 +1782,7 @@ declare module "zigbee-clusters" { controlSequenceOfOperation: { id: 0x1b, type: ZCLDataType<"cooling" | "coolingWithReheat" | "heating" | "heatingWithReheat" | "coolingAndHeating4Pipes" | "coolingAndHeating4PipesWithReheat"> }, systemMode: { id: 0x1c, type: ZCLDataType<"off" | "auto" | "cool" | "heat" | "emergencyHeating" | "precooling" | "fanOnly" | "dry" | "sleep"> }, alarmMask: { id: 0x1d, type: ZCLDataType> }, + runningMode: { id: 0x1e, type: ZCLDataType<"off" | "cool" | "heat"> }, }; type ThermostatClusterCommands = { setSetpoint: { id: 0x00, direction: "DIRECTION_SERVER_TO_CLIENT", args: { diff --git a/lib/clusters/thermostat.js b/lib/clusters/thermostat.js index af6cf95..e8d73ce 100644 --- a/lib/clusters/thermostat.js +++ b/lib/clusters/thermostat.js @@ -50,6 +50,14 @@ const ATTRIBUTES = { }), }, alarmMask: { id: 29, type: ZCLDataTypes.map8('initializationFailure', 'hardwareFailure', 'selfCalibrationFailure') }, + runningMode: { + id: 30, + type: ZCLDataTypes.enum8({ + off: 0, + cool: 3, + heat: 4, + }), + }, }; const COMMANDS = {