Merge pull request #11024 from s-hadinger/zigbee_window_lift

Zigbee add WindowCovering cluster to auto-binding #10962
This commit is contained in:
Theo Arends 2021-02-18 16:57:44 +01:00 committed by GitHub
commit 45fa732c3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -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 -----------------------

View File

@ -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