core icon indicating copy to clipboard operation
core copied to clipboard

[Matter Integration] AirQuality sensor show only temperature and humidity

Open lboue opened this issue 1 year ago • 5 comments

Matter AirQuality sensor show only temperature and humidity

  1. git clone https://github.com/project-chip/connectedhomeip
  2. cd connectedhomeip
  3. cd examples/air-quality-sensor-app/linux
  4. gn gen out/debug
  5. ninja -C out/debug
  6. ./out/debug/air-quality-sensor-app
  7. Pair the Matter virtual device in HA

image

Steps to reproduce

Trigger event using air-quality-sensor-app event named pipe

You can send a command to air-quality-sensor-app to trigger specific event via air-quality-sensor-app event named pipe /tmp/chip_air_quality_fifo*.

user@matter-vm:~$ echo '{"Name":"AirQuality","NewValue":3}' > /tmp/chip_air_quality_fifo_68910        user@matter-vm:~$ echo '{"Name":"TemperatureMeasurement","NewValue":18}' > /tmp/chip_air_quality_fifo_68910
user@matter-vm:~$ echo '{"Name":"TemperatureMeasurement","NewValue":1800}' > /tmp/chip_air_quality_fifo_68910
user@matter-vm:~$ echo '{"Name":"RelativeHumidityMeasurement","NewValue":60}' > /tmp/chip_air_quality_fifo_68910
user@matter-vm:~$ echo '{"Name":"RelativeHumidityMeasurement","NewValue":6000}' > /tmp/chip_air_quality_fifo_68910
user@matter-vm:~$ echo '{"Name":"CarbonDioxideConcentrationMeasurement","NewValue":400}' > /tmp/chip_air_quality_fifo_68910
user@matter-vm:~$ echo '{"Name":"TemperatureMeasurement","NewValue":1850}' > /tmp/chip_air_quality_fifo_68910

What version of Home Assistant Core has the issue?

2023.11.2

What was the last working version of Home Assistant Core?

N/A

What type of installation are you running?

Home Assistant OS

Integration causing the issue

python-matter-server

Link to integration documentation on our website

No response

Diagnostics information

matter-3810eb4f1178dc5c6908416dcf23c309-TEST_PRODUCT-2f8e1280781a890d180ee2f628733bfd.json.txt

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

lboue avatar Nov 11 '23 22:11 lboue

Hey there @home-assistant/matter, mind taking a look at this issue as it has been labeled with an integration (matter) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of matter can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign matter Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


matter documentation matter source (message by IssueLinks)

home-assistant[bot] avatar Nov 12 '23 08:11 home-assistant[bot]

I think what is going on is that the Air Quality sensor, which was added in Matter 1.2, has some cluster overlap with the Matter 1.1 Temperature Sensor and Humidity Sensor, so what you are seeing is that HomeAssistant does include the two sensor types from Matter 1.1, but has not yet been updated to further add all the Sensor types from Matter 1.2.

jvmahon avatar Nov 15 '23 02:11 jvmahon

@marcelveldt Do you know if this new type of sensor (from Matter 1.2) will be integrated in the near future?

lboue avatar Nov 21 '23 17:11 lboue

@marcelveldt Do you know if this new type of sensor (from Matter 1.2) will be integrated in the near future?

As soon as actual devices will be available it will get more prio - until then: low prio as we're already swamped with enough work. I would have taken a stab at it if there was a ready made example available such as a firmware to flash on a ESP32 or a docker image or whatever. Now I need to build the example from scratch which just takes too much time I dont have atm, sorry.

marcelveldt avatar Jan 15 '24 16:01 marcelveldt

Thanks for your reply.

Matter Air Purifier device announced by AiDot:

The Matter-Certified P200 Pro is slated for release on WELOV’s Amazon and AiDot store in March, coinciding with the launch of the upgraded Sleep Mode compatible with Apple Health

csa-iot.org certificate: Air Purifier By AiDot Inc: P200 Pro

lboue avatar Jan 15 '24 17:01 lboue

Hi, I'm working on a Matter Air quality sensor and would love to help get this functionality into Home Assistant.

We have a functional prototype CO2, PM2.5, TVOC, NOx(tbc), Temperature and Humidity sensor. We'd like to open source this sensor at some point (still quite a bit to do), to allow people early access to "home-brew" devices but also because the Matter certification looks prohibitively expensive for a company as small as ours without a current consumer offering.

I tested our sensor with Home Assistant and hit the same issue as described. I had a quick look at the code (I've not looked at the code or contributed to Home Assistant at all before) and was able to add the sensor data to the Matter integration (see below), my complements to the authors for designing in a way that made this as easy as possible.

I've opened a PR #108173 in the hope that this will be useful.

image

matt7aylor avatar Jan 16 '24 17:01 matt7aylor

Tested with Matter Linux Air Quality Example from SDK:

image

lboue avatar Feb 22 '24 07:02 lboue