Zigbee2mqtt: SJCGQ11LM (Xiaomi Water Leak Sensor) doesn't report immediately

Created on 4 May 2018  路  10Comments  路  Source: Koenkk/zigbee2mqtt

problem

All 10 comments

Work prefect on cc stick.

@starkun it reports immediately after you drop it into the water? What configuration do you have?

@Koenkk I'm who posted this in the HA forums. I just tried running cat /dev/ttyACM0 and immediately get feed back when I drop it into water, also get feedback as soon as I dry it off.

You try to detect leak event with attReport message. But statusChange event is more good for this.
Look at https://github.com/kirovilya/ioBroker.zigbee/blob/master/main.js#L523

@kirovilya do you have a description between the differen attrReport, devChange, statusChange? Would be great when adding more devices.

@ciotlosm Look here: https://github.com/zigbeer/zigbee-shepherd/wiki#event-ind

  • 'ind'

devIncoming
devLeaving
devChange
devStatus
attReport

@ciotlosm Unfortunately not know. These were obtained by experience and in google.
Different devices uses different message type.

Thanks @tb-killa. It seems based on the information there that we should never ignore devChanged. Maybe it's better to recevie two mqtt messages than miss 1 potential sensor message.

You also need modification of zigbee-shepherd library with this events support.
Like commit in my fork https://github.com/kirovilya/zigbee-shepherd/commit/77eee0836bb8866f28e843e89d060376cd9debca from not applied PR https://github.com/zigbeer/zigbee-shepherd/pull/6

Thank you very much @kirovilya, works perfect now!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jeroenterheerdt picture jeroenterheerdt  路  3Comments

Courty40 picture Courty40  路  4Comments

alwashe picture alwashe  路  4Comments

andreasbrett picture andreasbrett  路  3Comments

CodeFinder2 picture CodeFinder2  路  4Comments