Merge pull request #11200 from s-hadinger/zigbee_lumi_leak2

Zigbee support for lumi.sensor_wleak
This commit is contained in:
s-hadinger 2021-03-02 21:30:47 +01:00 committed by GitHub
commit ccedfb4aac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -1739,6 +1739,10 @@ void ZCLFrame::syntheticAqaraSensor(Z_attribute_list &attr_list, class Z_attribu
if (0x64 == attrid) { if (0x64 == attrid) {
attr_list.addAttributePMEM(PSTR("SmokeDensity")).copyVal(attr); attr_list.addAttributePMEM(PSTR("SmokeDensity")).copyVal(attr);
} }
} else if (modelId.startsWith(F("lumi.sensor_wleak"))) { // gas leak
if (0x64 == attrid) {
attr_list.addAttributePMEM(PSTR("Water")).copyVal(attr);
}
} else if (modelId.startsWith(F("lumi.sensor_natgas"))) { // gas leak } else if (modelId.startsWith(F("lumi.sensor_natgas"))) { // gas leak
if (0x64 == attrid) { if (0x64 == attrid) {
attr_list.addAttributePMEM(PSTR("GasDensity")).copyVal(attr); attr_list.addAttributePMEM(PSTR("GasDensity")).copyVal(attr);