Matter via Aqara M3 Hub - Aqara Water Leak Sensor

Hey @digitaldan,

Noticed a pattern, I have a bunch of Aqara Water Sensors (generation 1). They are connected to the Aqara M3 Hub and shared with OH 5.1.3 and Matter 5.3 binding, see below.

  • serialNumber 158d008c78273e

  • vendor Aqara

  • firmwareVersion 6

  • modelId Aqara Water Leak Sensor

  • hardwareVersion 2

They are NOT updating via Matter UNLESS I run an open discovery scan on the Matter network, then they update. All I’m getting from them is 2 pieces of information below.

Battery and Leak Detected. I have a rule to update a virtual date item for last reported in based on battery reporting in. This is only working when I scan the matter network.

As a work around, maybe I can have the karaf syntax to initiate a matter scan maybe daily until this gets resolved?

Best, Jay

I would need TRACE logging from the binding from when they come online, and then when something changes, and then when you run a scan. Those are bridged endpoints, so not actually matter devices to us, but devices expose via the Aqara matter bridge, which is the single matter device we talk to, so its odd if they are updating after a scan, unless there is a connectivity issue with the Aqara bridge itself.

Will do, first gonna try this code to see if it works nightly at 1 am. Does work when I do it on Karaf to start a scan.

var String			bashMatterScan		= 'sshpass -p habopen ssh openhab@localhost -p8101 openhab:discovery start matter'
			try {
					executeCommandLine(Duration.ofSeconds(20), (bashMatterScan).split(" "))
						Thread::sleep(100)

					logInfo("MATTER","** Starting a Matter Scan.")

				} catch (Exception y6) { 
				
					logInfo("LINE","-----------------------------------------------------------------------------")
					logError("ERROR","** Failed Starting a Matter Scan.  Exception is " + y6.getMessage)
					logInfo("LINE","-----------------------------------------------------------------------------")
				}	

Best, Jay