AqaraGateway icon indicating copy to clipboard operation
AqaraGateway copied to clipboard

(Force) Manually Update zigbee sensor State

Open shummo opened this issue 3 years ago • 1 comments

Hi.

I have an M1S gateway with a MI door sensor (zigbee - MCCGQ01LM) in my garage.

My problem is, that If the internet connection stops, after reconnecting, the door sensor state will be "Unknown". And it stay unkwown until next OPEN/CLOSE section.

So for example it was closed > then disconnected and became "unavaibale" >after reconnect "Unknown". MQTT updates only send information about the Gateway, but not other zigbee sensors data.

 2023-01-09 12:22:38  DEBUG  gateway  192.168.XXXXXXX: MQTT on_message: zigbee/send {"cmd":"report","id":2**********72,"did":"lumi.0","time":1673263357979,"rssi":-37,"zseq":0,"params":[{"res_name":"8.0.2080","value":"6.36"}],"dev_src":"0"}
 2023-01-09 12:22:38  DEBUG  gateway  192.168.1XXXXXX: gateway <= [{'res_name': '8.0.2080', 'value': '6.36'}]
 2023-01-09 12:22:39  DEBUG  gateway  192.168.XXXXXX: MQTT on_message: zigbee/send {"cmd":"report","id":2*************3,"did":"lumi.0","time":1673263358280,"rssi":-37,"zseq":0,"params":[{"res_name":"8.0.2080","value":"6.36"}],"dev_src":"0"}
 2023-01-09 12:22:39  DEBUG  gateway  192.168.XXXXX: gateway <= [{'res_name': '8.0.2080', 'value': '6.36'}] 

Is it possible to force update the state of the sensor? (SO i could make an automatioan, if the state become unknown)

shummo avatar Jan 09 '23 11:01 shummo

it seems impossible to force update the zigbee door sensor, maybe you can wait its heartbeat? at most tens of minutes

caibinqing avatar Jan 19 '23 17:01 caibinqing