Contents
What is Matter?
Matter is an open-source smart home standard backed by Apple, Google, Amazon, and others. It ensures devices work together regardless of manufacturer.
Key Benefits:
- Cross-ecosystem compatibility
- Local control (no cloud required)
- Simple setup with QR codes
- Built on IPv6/Thread
- Open source (Apache 2.0)
Architecture
| Layer | Technology | Purpose |
|---|---|---|
| Application | Matter Data Model | Device clusters |
| Security | PASE/CASE | Authenticated encryption |
| Network | IPv6 | Internet protocol |
| Link | Thread/WiFi/Ethernet | Physical transport |
Device Types
Matter defines standardized device types:
- Lighting: Bulbs, switches, dimmers
- Locks: Door locks, lock controllers
- Climate: Thermostats, HVAC
- Sensors: Motion, contact, temperature
- Media: TVs, speakers, casting
Commissioning
// Matter commissioning flow
1. Device powers on (uncommissioned)
2. User scans QR code on device
3. Controller obtains setup code
4. PASE session established
5. WiFi/Thread credentials sent
6. Device joins network
7. CASE session for operations
8. Device is commissioned!
Device Development
// ESP32 Matter light bulb example
#include
#include
class MatterLight : public OnOffServer {
void HandleOnOffChanged(bool on) {
if (on) {
digitalWrite(LED_PIN, HIGH);
} else {
digitalWrite(LED_PIN, LOW);
}
}
};
void setup() {
Matter.begin();
MatterLight.begin();
}
Ecosystem Support
| Ecosystem | Support | Hub Required |
|---|---|---|
| Apple Home | iOS 16.1+ | Apple TV/HomePod |
| Google Home | Android/Nest | Nest Hub |
| Amazon Alexa | Echo devices | Echo (4th gen+) |
| SmartThings | Hub v3+ | SmartThings Hub |
Next Steps
- Get Matter certification
- Add Thread border router
- Implement all required clusters
- Test with multiple ecosystems
Related: Zigbee vs Z-Wave | MQTT Guide