Zigbee support for lumi.sensor_wleak

This commit is contained in:
Stephan Hadinger 2021-03-02 21:16:30 +01:00
parent 2d84d846ed
commit 4ea1b4d7c9
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);