From 5a0e92f0e5b018ce65f10a699f80eabf0bae62bd Mon Sep 17 00:00:00 2001 From: Stephan Hadinger Date: Thu, 18 Feb 2021 16:27:03 +0100 Subject: [PATCH] Zigbee add WindowCovering cluster to auto-binding #10962 --- tasmota/my_user_config.h | 2 ++ tasmota/xdrv_23_zigbee_8_parsers.ino | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/tasmota/my_user_config.h b/tasmota/my_user_config.h index 730ffd923..ac0d48699 100644 --- a/tasmota/my_user_config.h +++ b/tasmota/my_user_config.h @@ -772,11 +772,13 @@ #define USE_ZIGBEE_AUTOBIND_PRESSURE 1 // hPA #define USE_ZIGBEE_AUTOBIND_ILLUMINANCE 5 // lux #define USE_ZIGBEE_AUTOBIND_HUMIDITY 1.0 // % + #define USE_ZIGBEE_AUTOBIND_LIFT 1.0 // % // Below are the Max Thresholds for reporting time (in seconds) #define USE_ZIGBEE_MAXTIME_BATT 4*60*60 // 4h #define USE_ZIGBEE_MAXTIME_TRV 60*10 // 10m #define USE_ZIGBEE_MAXTIME_SENSOR 60*60 // 1h #define USE_ZIGBEE_MAXTIME_LIGHT 60*60 // 1h + #define USE_ZIGBEE_MAXTIME_LIFT 4*60*60 // 4h // -- Other sensors/drivers ----------------------- diff --git a/tasmota/xdrv_23_zigbee_8_parsers.ino b/tasmota/xdrv_23_zigbee_8_parsers.ino index 8232cc502..2183357a1 100644 --- a/tasmota/xdrv_23_zigbee_8_parsers.ino +++ b/tasmota/xdrv_23_zigbee_8_parsers.ino @@ -657,7 +657,7 @@ int32_t Z_ReceiveActiveEp(int32_t res, const SBuffer &buf) { // list of clusters that need bindings const uint8_t Z_bindings[] PROGMEM = { - Cx0001, Cx0006, Cx0008, Cx0201, Cx0300, + Cx0001, Cx0006, Cx0008, Cx0102, Cx0201, Cx0300, Cx0400, Cx0402, Cx0403, Cx0405, Cx0406, Cx0500, }; @@ -1499,6 +1499,7 @@ const Z_autoAttributeReporting_t Z_autoAttributeReporting[] PROGMEM = { { 0x0001, 0x0020, 60*60, USE_ZIGBEE_MAXTIME_BATT, USE_ZIGBEE_AUTOBIND_BATTVOLTAGE }, // BatteryVoltage { 0x0001, 0x0021, 60*60, USE_ZIGBEE_MAXTIME_BATT, USE_ZIGBEE_AUTOBIND_BATTPERCENT }, // BatteryPercentage { 0x0006, 0x0000, 1, USE_ZIGBEE_MAXTIME_LIGHT, 0 }, // Power + { 0x0102, 0x0008, 1, USE_ZIGBEE_MAXTIME_LIFT, USE_ZIGBEE_AUTOBIND_LIFT }, // CurrentPositionLiftPercentage { 0x0201, 0x0000, 60, USE_ZIGBEE_MAXTIME_TRV, USE_ZIGBEE_AUTOBIND_TEMPERATURE }, // LocalTemperature { 0x0201, 0x0008, 60, USE_ZIGBEE_MAXTIME_TRV, USE_ZIGBEE_AUTOBIND_HEATDEMAND }, // PIHeatingDemand { 0x0201, 0x0012, 60, USE_ZIGBEE_MAXTIME_TRV, USE_ZIGBEE_AUTOBIND_TEMPERATURE }, // OccupiedHeatingSetpoint