Unable to commission Matter Pressure Sensor #61
Astrobirder
started this conversation in
General
Replies: 2 comments 1 reply
-
Here's all of the code, should you be so inclined: |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hello @Astrobirder, Thank you for the detailed description! I've also noticed the Pressure measurement not working with the Apple ecosystem. It works with the Raspberry Pi and Google hubs. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I have a Sparkfun Thing Plus Matter board with an Adafruit BME280 Temperature, Pressure and Humidity sensor connected via a QWIIC cable.
I'm using the Arduino IDE version 2.3.2 with the Silicon Labs Arduino Core 2.0.0.
I've merged the example code from the blink example, the matter_temp_sensor (for CPU temperature), and the Adafruit BME280 example.
I'm able to read the temperature, pressure and humidity and have it print on the Serial Monitor without issue, sand Temperature and Humidity both commission, so I'm pretty sure the issue is on the matter side with respect to calls to the pressure sensor piece.
The interesting issue is when I try and commission the device with my Apple TV, 4th generation (yes, with Ethernet & WiFi and the Thread Networking support).
I ONLY have this one device in "My Home". I've successfully deleted and recommissioned this device dozens of times, by deleting the Bridge/Accessories in the Apple Home app and reburning the bootloader onto the Sparkfun board (which de-commissions the device, by erasing the NVM). I'm new to all Apple Home and to Matter/Thread, but not new to coding, so take that into consideration.
When the device gets added, the first thing to show up is the new Bridge Device (as all Matter devices are Bridges), and then the Humidity Sensor, and then the Temperature Sensor. The Pressure sensor is never presented to be registered into the matter network--even though the code for all three sensors is basically copy and paste! Here are the appropriate pieces of my Arduino Code:
Initial includes/variable definitions:
inside of
void setup() {
Inside of my
void loop() {
I have a call to printValues() (code from the Adafruit Example, which reads the sensor, and publishes to matter:When commissioning is completed, I see the Temperature and the Humidity on my Apple Home dashboard, but never the Pressure.
I get no errors when compiling or programming the Sparkfun. I also don't see any errors on the serial console.
Here's a sample of the console output, after including the early commissioning and a few of the value printout loops:
`ON
OFF
Temperature = 24.57 °C
Temperature = 76 °F
Pressure = 993.17 hPa
Approx. Altitude = 168.56 m
Humidity = 65.21 %
ON
OFF`
Any ideas where I'm going wrong? Are there any known bugs with the Matter Pressure Sensor portion of the library?
I also find it rather odd that I get the Bridge, then Humidity and then the Temperature sensor in that order, as the code has everything in the order of Temperature, Pressure, Humidity, both from a creation of the matter sensor and from reading standpoint. It's like things are going backwards, but skipping Pressure.
Thank you in advance for your ideas.
Beta Was this translation helpful? Give feedback.
All reactions