Integration: Matter via matter.js server
Devices: Aqara temperature sensors connected through Aqara hubs
Problem
When multiple Matter temperature sensors are exposed under the same Matter node, Domoticz only creates one temperature sensor.
In my setup, two Aqara temperature sensors are exposed as separate endpoints under the same Matter node. Both endpoints have their own Temperature Measurement data and report different temperatures.
However, Domoticz appears to aggregate environmental sensor readings across all endpoints of a node and only keeps the first temperature value it finds.
Expected behaviour
Each Matter endpoint containing a temperature sensor should be created as a separate Domoticz device, even when multiple sensors belong to the same Matter node.
The same should ideally apply to humidity and other environmental sensors.
Additional information
In hardware/Matter.cpp, the _DetectAndSendNode() implementation appears to aggregate environmental readings across all endpoints before creating the Domoticz sensor.
Could the Matter integration be changed to create environmental sensors per endpoint, rather than aggregating them at node level?
Thank you for looking into this.
Matter: Multiple temperature sensors on the same node are not created as separate Domoticz devices
Moderators: leecollings, remb0
Forum rules
Before posting here, make sure you are on the latest Beta or Stable version.
If you have problems related to the web gui, clear your browser cache + appcache first.
Use the following template when posting here:
Version: xxxx
Platform: xxxx
Plugin/Hardware: xxxx
Description:
.....
If you are having problems with scripts/blockly, always post the script (in a spoiler or code tag) or screenshots of your blockly
If you are replying, please do not quote images/code from the first post
Please mark your topic as Solved when the problem is solved.
Before posting here, make sure you are on the latest Beta or Stable version.
If you have problems related to the web gui, clear your browser cache + appcache first.
Use the following template when posting here:
Version: xxxx
Platform: xxxx
Plugin/Hardware: xxxx
Description:
.....
If you are having problems with scripts/blockly, always post the script (in a spoiler or code tag) or screenshots of your blockly
If you are replying, please do not quote images/code from the first post
Please mark your topic as Solved when the problem is solved.
- gizmocuz
- Posts: 3100
- Joined: Thursday 11 July 2013 18:59
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Top of the world
- Contact:
Re: Matter: Multiple temperature sensors on the same node are not created as separate Domoticz devices
You are right, and your reading of the code is correct. In _DetectAndSendNode() Domoticz currently aggregates the environmental readings (temperature, humidity, barometer, setpoint) of all endpoints of a Matter node into a single device per node, keeping the first value it finds. That is fine for a single accessory that spreads, for example, temperature and humidity over two endpoints, but it is wrong for a hub or bridge that exposes several independent sensors as separate endpoints under one node, where each endpoint should become its own device.
I will fix this so that a bridged node creates a separate device per endpoint (with temperature and humidity on the same endpoint still combined into one Temp + Humidity device), while a normal single accessory keeps behaving as it does now, so existing devices are not affected. It will be in a beta and I will post here once it is in.
As always, please run the latest beta.
I will fix this so that a bridged node creates a separate device per endpoint (with temperature and humidity on the same endpoint still combined into one Temp + Humidity device), while a normal single accessory keeps behaving as it does now, so existing devices are not affected. It will be in a beta and I will post here once it is in.
As always, please run the latest beta.
Quality outlives Quantity!
- Wimpi
- Posts: 13
- Joined: Sunday 07 January 2024 12:52
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2026.4
- Location: Belgium
- Contact:
Re: Matter: Multiple temperature sensors on the same node are not created as separate Domoticz devices
Thank you for taking the time to look into this and for confirming the issue.gizmocuz wrote:You are right, and your reading of the code is correct. In _DetectAndSendNode() Domoticz currently aggregates the environmental readings (temperature, humidity, barometer, setpoint) of all endpoints of a Matter node into a single device per node, keeping the first value it finds. That is fine for a single accessory that spreads, for example, temperature and humidity over two endpoints, but it is wrong for a hub or bridge that exposes several independent sensors as separate endpoints under one node, where each endpoint should become its own device.
I will fix this so that a bridged node creates a separate device per endpoint (with temperature and humidity on the same endpoint still combined into one Temp + Humidity device), while a normal single accessory keeps behaving as it does now, so existing devices are not affected. It will be in a beta and I will post here once it is in.
As always, please run the latest beta.
I’m glad we were able to identify the cause. Your planned solution sounds exactly right, especially keeping the existing behaviour for normal Matter accessories while handling bridged devices per endpoint.
I’ll keep an eye out for the beta and test it with my Aqara T1 sensors.
Thanks again for your work on Domoticz!
Verzonden vanaf mijn iPhone met Tapatalk