← Back to IoT Blog
Protocols 30 min read

Matter Protocol Complete Guide

Complete guide to Matter protocol for smart home. Learn device setup, commissioning, Thread networking, and interoperability across Alexa, Google, and Apple ecosystems.

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

LayerTechnologyPurpose
ApplicationMatter Data ModelDevice clusters
SecurityPASE/CASEAuthenticated encryption
NetworkIPv6Internet protocol
LinkThread/WiFi/EthernetPhysical transport

Device Types

Matter defines standardized device types:

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

EcosystemSupportHub Required
Apple HomeiOS 16.1+Apple TV/HomePod
Google HomeAndroid/NestNest Hub
Amazon AlexaEcho devicesEcho (4th gen+)
SmartThingsHub v3+SmartThings Hub

Next Steps

  • Get Matter certification
  • Add Thread border router
  • Implement all required clusters
  • Test with multiple ecosystems