Just purchased two nano matter boards and cannot get either board to pair to google home or apple home kit. I have no trouble pairing purchased devices (Eve plugs) to both systems.
I was using the nano_matter_lightbulb_color example.
Not sure if this is a problem but I noticed that the Payload for the QR code was the same for both devices.
Ok, I have a Nest hum max which is a valid product.
Is there anything that could help me debug why I am not able to pair with the nest hum max? Is there some documentation that I can read to learn more about what the problem may be?
I used the search terms "pair nest hub max arduino nano matter" and received this as one of many results...
Be aware; there is a device out there called the Nano(leaf) Matter which is not the Arduino Nano Matter, and is also a device to be paired with Google Home.
Opened the Examples->Matter->matter-lightbulb example. Added to bottom off this message.
Compiled/Uploaded to the board
OUTPUT
Sketch uses 861564 bytes (54%) of program storage space. Maximum is 1572864 bytes.
Global variables use 177612 bytes (67%) of dynamic memory, leaving 84532 bytes for local variables. Maximum is 262144 bytes.
Open On-Chip Debugger 0.12.0+dev-01514-g21fa2de70 (2024-02-07-19:03)
Licensed under GNU GPL v2
For bug reports, read OpenOCD: Bug Reporting
debug_level: 0
efm32s2_dci_read_se_status
[efm32s2.cpu] halted due to debug-request, current mode: Thread
xPSR: 0xf9000000 pc: 0x08000170 msp: 0x20001008
[efm32s2.cpu] halted due to debug-request, current mode: Thread
xPSR: 0xf9000000 pc: 0x08000170 msp: 0x20001008
** Programming Started **
** Programming Finished **
SerialMonitor
11:45:39.859 -> Matter lightbulb
11:45:39.859 -> Matter device is not commissioned
11:45:39.859 -> Commission it to your Matter hub with the manual pairing code or QR code
11:45:39.859 -> Manual pairing code: ..............
11:45:39.859 -> QR code URL: CHIP: QR Code.............
11:48:14.337 -> Waiting for Thread network...
11:48:26.511 -> Connected to Thread network
11:48:26.511 -> Waiting for Matter device discovery...
Reset the board
Used the Google home app on iphone to pair device.
/*
Matter lightbulb example
The example shows how to create a simple on/off lightbulb with the Arduino Matter API.
The example lets users control the onboard LED through Matter.
The device has to be commissioned to a Matter hub first.
Compatible boards:
- Arduino Nano Matter
- SparkFun Thing Plus MGM240P
- xG24 Explorer Kit
- xG24 Dev Kit
Author: Tamas Jozsi (Silicon Labs)
*/
#include <Matter.h>
#include <MatterLightbulb.h>
MatterLightbulb matter_bulb;
void setup()
{
Serial.begin(115200);
Matter.begin();
matter_bulb.begin();
pinMode(LED_BUILTIN, OUTPUT);
digitalWrite(LED_BUILTIN, LED_BUILTIN_INACTIVE);
Serial.println("Matter lightbulb");
if (!Matter.isDeviceCommissioned()) {
Serial.println("Matter device is not commissioned");
Serial.println("Commission it to your Matter hub with the manual pairing code or QR code");
Serial.printf("Manual pairing code: %s\n", Matter.getManualPairingCode().c_str());
Serial.printf("QR code URL: %s\n", Matter.getOnboardingQRCodeUrl().c_str());
}
while (!Matter.isDeviceCommissioned()) {
delay(200);
}
Serial.println("Waiting for Thread network...");
while (!Matter.isDeviceThreadConnected()) {
delay(200);
}
Serial.println("Connected to Thread network");
Serial.println("Waiting for Matter device discovery...");
while (!matter_bulb.is_online()) {
delay(200);
}
Serial.println("Matter device is now online");
}
void loop()
{
static bool matter_lightbulb_last_state = false;
bool matter_lightbulb_current_state = matter_bulb.get_onoff();
// If the current state is ON and the previous was OFF - turn on the LED
if (matter_lightbulb_current_state && !matter_lightbulb_last_state) {
matter_lightbulb_last_state = matter_lightbulb_current_state;
digitalWrite(LED_BUILTIN, LED_BUILTIN_ACTIVE);
Serial.println("Bulb ON");
}
// If the current state is OFF and the previous was ON - turn off the LED
if (!matter_lightbulb_current_state && matter_lightbulb_last_state) {
matter_lightbulb_last_state = matter_lightbulb_current_state;
digitalWrite(LED_BUILTIN, LED_BUILTIN_INACTIVE);
Serial.println("Bulb OFF");
}
}
Pairing Arduino Nano Matter and Google Home, or Arduino Nano Matter and iPhone or Google Home and iPhone? Also, which is the foundation, that is to say, which should be established before the next?
Okay. Solving this will probably fix the rest. First... ensure references to Arduino Nano Matter are not confused with Nano Matter Leaf... it got me.
With pairing (I assume Bluetooth), all you should need is power to the device (Arduino Nano Matter) for it to be findable, then do the same with the Nest home hub.
A side note: a friend has Nest home hub, and seems to use the iPhone to watch/talk to the Nest home hub (but I am not certain) to pair with devices like the porch lamp (controllable with a speaker device - Alexa? Siri?).
Pairing. If the Arduino Nano Matter pairs with everything else, but does not pair with Google Nest Home, the problem is following Google Nest Home rules... because Google Nest Home pairs with many things (the example of a friend of mine).