Matter Smart Home Development for Connected Experiences

by Jun 24, 2024#IoT, #HomePage

Printer Icon
f

Table of Content

  1. What Is Matter Smart Home?
  2. Matter Network Technologies
  3. Developing Matter Devices
  4. Matter Development for Google Home
  5. Integrating Matter Support Into iOS Ecosystem
  6. Building Matter Devices That Work with Alexa
  7. Security and Privacy Tenets for Matter Devices
  8. Matter Development with Blockchain Technologies
  9. Matter Device Certification Program
  10. Matter Development Services
Many IoT solutions for buildings and homes are fragmented, lacking cross-platform interoperability and an intuitive user experience (UX). As the IoT landscape evolves, the widespread adoption of connected solutions depends on addressing the challenges related to connectivity, security, and interoperability. Matter is an initiative led by the Connectivity Standards Alliance (CSA) to promote a universal and open standard that facilitates seamless connectivity and interaction among IoT devices. To achieve this, Matter is developing a standard with robust tools and platforms. The strength of Matter stems from the collaborative efforts of hundreds of its member companies. This community contributes knowledge, capital, and invaluable technical expertise, propelling the development of a transformative IoT standard. The Connectivity Standards Alliance marked a significant milestone with the release of the Matter 1.0 standard and its accompanying certification program in September 2022, heralding the dawn of a new era for IoT interoperability. Furthermore, in October 2023, the CSA introduced the Matter 1.2 specification, expanding its scope by adding new device types and enhancements. Continuing its commitment to innovation and excellence, the CSA released the Matter 1.3 specification in May 2024. This latest update brings significant advancements, including new functionalities for energy management, support for electric vehicle chargers, and a broadened array of supported device types, such as major kitchen and laundry room appliances.    

wHAT IS MATTER SMART HOME?

Matter Smart Home is an application layer and data model that works in certified ecosystems to deliver interoperability between devices, allowing them to communicate with other Matter devices, regardless of the ecosystem or network protocol.

Matter Smart Home Standard is an IP-based layer that can run over several network protocols, such as Wi-Fi, Thread, and Bluetooth (for device commissioning/setup).

The Connectivity Standards Alliance (CSA), a consortium of companies, pioneered this open-source technology. Their objective was to enhance the accessibility of these technologies and boost adoption rates. Doing so has enabled consumers to establish a smart home environment without the typical frustrations.

With the Matter standard, customers can effortlessly integrate their favorite devices and manage their smart home using their system of choice. Generally, Matter devices can be set up through the manufacturer’s app or a smart home system. These systems offer unique features and are compatible with any Matter-compliant controller (hub), app, or ecosystem. 

One notable feature of Matter products is the “multi-admin” capability. This allows multiple administrators to connect with bridges, hubs, or other devices, thereby controlling Matter smart home devices from various systems. Essentially, the Matter standard simplifies linking smart home devices to any platform or app, eliminating the need for software or hardware modifications.

Additionally, silicon vendors are introducing Matter solutions for IoT developers and device manufacturers. Companies such as Silicon Labs, Nordic Semiconductors, Realtek, Espressif, and NXP are at the forefront of producing Matter System-on-a-chip (SoC) offerings.

Matter’s foundation is its robust architecture and layered approach. This design allows it to operate atop other communication layers without depending on their inherent security protocols. Matter devices utilize a specific application layer running on a hardware platform (MCU or SoC) on top of a software stack and communicate with other layers via APIs. Learn more about Matter’s architecture.

Matter Smart Home Development

Matter Application Layer 

Matter network technologies

Matter’s first specification release supports IPv6-based networks to achieve interoperability. Matter devices communicate with IP-based transmission protocols running one of the following technologies (network layer):

  • Wi-Fi/WLAN
  • Ethernet/LAN
  • Thread
  • Bluetooth Low Energy (for commissioning/device setup)

Matter controllers can be built into any device, hub, app, or panel to administer and control devices. Controllers typically connect to a local network via Wi-Fi and have cloud connections. Bluetooth Low Energy is used to onboard (commission) Matter devices to the network. Thread devices can also connect using border routers, which can also be built into other devices, apps, etc.

Devices in the network interact using the same Matter application protocol in a local network and can still connect to the cloud for other services, such as support, analytics, etc.

The Matter standard offers the flexibility to add devices in homes or new products that use other technologies, connecting them through other protocols created by bridges and controllers. These would be non-native devices, but they can still interact with the Matter ecosystem.

Open-source reference implementations of Matter specifications benefit developers as they offer a code built on market-proven technologies (such as Zigbee) that are tested against many use cases and updated by the work group community.

 

Developing matter devices

Matter development offers significant benefits across the smart home and IoT sectors. As an IP-based local connectivity standard, Matter enhances reliability and reduces latency compared to cloud-to-cloud solutions. It lowers development costs by enabling developers to create devices compatible across any certified ecosystem, which are also straightforward to set up and integrate with various cloud services.

Matter devices are designed to meet minimum memory and processing requirements and must support Wi-Fi or Thread technologies. They are capable of running a Matter software library and include compatible radios. These devices operate an application layer on a hardware platform, typically an MCU or SoC, and interact with other layers via APIs.

Initially, Matter focused on standardizing common smart home products, gradually expanding to support a broader range of commercial devices. The primary categories for Matter development have included lighting and electrical, window treatments, HVAC controls, TVs, access controls, safety, security, and infrastructure devices such as access points and bridges.

Evolution of Matter Smart Home Products:

  • Matter 1.0: Established a robust foundation, supporting diverse device types like HVAC controls, lighting, electrical solutions, safety and security systems, blinds/shades, access controls, and infrastructure devices.
  • Matter 1.1: Focused on developer enhancements and improved testing and certification processes, particularly for battery-powered devices.
  • Matter 1.2: Introduced additional device types, including refrigerators, room air conditioners, dishwashers, laundry washers, robotic vacuums, and comprehensive safety devices like smoke and carbon monoxide alarms, along with air quality sensors and air purifiers.
  • Matter 1.3: Expanded support to include major appliances such as microwave ovens, ovens, cooktops, extractor hoods, and laundry dryers. It also added water and energy management functionalities, including electric vehicle charging equipment and water-related sensors and controls.

With each release, Matter continues to broaden its support for a wider array of smart home products, enhancing the interconnectedness and functionality of the smart home ecosystem. This ongoing expansion caters to immediate user needs and aligns with future technological advancements, positioning Matter as a pivotal force in the evolution of smart home solutions.

MATTER DEVELOPMENT FOR GOOGLE HOME

Google has a suite of tools ready to develop Matter devices that work with Google Home and are compatible with other ecosystems. Google also supports the Matter ecosystem as the best option for bringing new IoT products to market.

Clients are building and testing devices and apps to make them compatible with Matter. Google customers can control and manage Matter devices from the mobile Google Home app on Android, Google Assistant (voice control), or Google Nest Hub (border router).

Matter developers (using Google tools) support clients from prototyping to certification and development for Matter, leveraging the Google Home Device SDK and Matter SDK. The Matter Virtual Device Development Environment (MVD-DE) tests device interactions, including Google Assistant commands.

Matter developers also provide expertise by integrating the Home Mobile SDK for Android Studio, ensuring your Android app development initiatives are updated with Matter functionality and Google Assistant. Our goal is to help clients create top-notch, Matter-compatible smart home products. We also use other tools besides Google’s for broader Matter ecosystem compatibility.

Matter Smart Home Development for Connected Experiences

Developers can request access to Google’s Matter Private Beta Program to start working with Google Play Services Matter APIs and set up Matter devices in Google Home. Learn more about developing for Matter with Google here.

INTEGRATING MATTER SUPPORT INTO iOS ECOSYSTEM

Integrating Matter into iOS applications involves several key steps to ensure your app can discover, configure, and control Matter-compatible smart home devices. Here’s a step-by-step guide on how you can achieve this:  
  1. Set Up the Development Environment
  • Xcode and iOS SDK: Ensure you have the latest version of Xcode installed, including the necessary SDKs for developing applications with Matter support.
  • Matter SDK: Download and integrate the Matter SDK provided by Apple, which includes tools and libraries specifically designed for Matter compatibility.
  1. Configure Matter in Xcode
  • Info.plist Configuration: Add the necessary entries in your app’s Info.plist to allow your application to discover Matter devices. This might include permissions to use local network features and Bonjour services.
  1. Implement Matter Device Discovery
  • Discovery API: Utilize the Matter API to discover devices. This involves scanning for devices that advertise their availability. Handling the discovery process correctly ensures that your app can interact with many Matter-compatible devices.
  1. Device Commissioning and Setup
  • Commissioning: Once a device is discovered, it must be commissioned into your app’s ecosystem. This means initializing the device and securely adding it to the user’s network. Apple provides APIs within the MatterSupport framework to handle the commissioning process, which may involve authentication steps and user interaction for security confirmations.
  • MatterAddDeviceExtensionRequestHandler: Implement this class to handle specific tasks during the device setup, such as applying configurations and preferences.
  1. User Interface Flow
  • Setup UI: Implement user interface flows that guide users through the process of adding and configuring devices. This should include handling potential errors during device setup and providing users with feedback on the process.
  1. Control and Manage Devices
  • Device Control: After devices are commissioned, your app can send commands to control these devices. This is typically done through an API provided by the Matter framework that sends specific command data to the devices.
  • Device Management: Provide UI elements in your app that allow users to manage their Matter devices. This includes viewing device status, controlling device functions, and removing devices if necessary.
  1. Testing and Debugging
  • Simulators and Physical Devices: Test the integration with both simulators and physical devices. Apple’s development environment often provides simulated environments to test different aspects of device interaction.
  • Error Handling: Implement robust error handling to manage and mitigate issues that arise during device discovery, commissioning, or control.
  1. Deployment
  • App Store Requirements: Ensure your app meets all the requirements set by Apple for apps that use network protocols and accessories. You may need to provide additional documentation during the app review process.
  1. Stay Updated
  • Framework Updates: Keep your application up-to-date with the latest releases of the Matter protocol and Apple’s SDK updates. This ensures compatibility with new devices and features as they become available.

BUILDING MATTER DEVICES THAT WORK WITH ALEXA

Building Matter Devices That Work With Alexa

Matter’s integration with Alexa streamlines the smart home experience by enabling direct connectivity between Matter devices and Alexa without needing an additional hub or complex setup processes. This direct connectivity reduces latency and enhances reliability when controlling devices via Alexa, allowing users to simply command, “Alexa, discover my devices,” or manually add devices through the Alexa app.

Echo Device Capabilities Echo devices effectively manage and locally connect to Matter devices, supporting multiple connection protocols, including Wi-Fi and Thread. These capabilities ensure continued functionality even during internet outages, with Echo devices acting as Thread border routers to enhance network reliability and scalability.

Advanced Device Support and Development Tools Amazon has broadened its support for Matter devices, encompassing a wide range of categories such as lighting, sensors, thermostats, and more, with ongoing expansions to include new device types specified in Matter 1.2 and beyond. The introduction of the Alexa Ambient Home Dev Kit highlights Amazon’s commitment to developer collaboration. This kit includes features like credentials sharing and group sync, simplifying the integration process and enhancing users’ ability to manage their smart home ecosystem effectively.

Security and Privacy Tenets for Matter Devices

IoT cybersecurity is one of the main worries for consumers when deciding on smart home solutions. It is important to mention that Matter has been created with high standards of security and privacy. Matter development is performed with the flexibility and capabilities to support many security features (security by design) and address potential future attacks.

Devices must be provisioned securely with an identity (manufacturer ID) and firmware, secure encryption and authentication of communications, and a secure process that supports software/firmware updates (over-the-air).

Matter security is implemented in a layered approach that authenticates and provides an attestation mechanism for commissioning. Matter security implementation is self-contained and applies strong cryptographic standards, digital signatures, key exchanges, random number generators, and other mechanisms built into its definitions. Matter devices require AES 128-bit encryption security between devices and the cloud.

These mechanisms also establish sessions and implement the Distributed Compliance Ledger (DCL) technology for device commissioning (onboarding), attestation, and operations.

Matter Development with Blockchain Technologies

Matter integrates a blockchain-based Distributed Compliance Ledger (DCL) to secure IoT device management within its ecosystem. This integration underscores Matter’s commitment to foundational security and privacy principles, which are essential for building reliable and secure IoT devices.

  • Robust Security Framework: The DCL enhances device security through cryptographically secure transactions and immutable record-keeping. Each transaction is individually signed using pre-approved keys, creating an authoritative and transparent audit trail that is publicly accessible.
  • Global Network and Accessibility: Managed by a multi-node network run by Alliance member companies, it ensures that data is not centralized but distributed across various geographic locations. This setup enhances network resilience and real-time access globally.
  • Device Authentication and Management: Matter devices automatically verify software updates and certifications through the DCL. This system ensures that only certified and compliant devices are active, enhancing the trust and integrity of the network.
  • Counterfeit Protection and Future-Proofing: The DCL prevents counterfeit device and firmware operations within the network, safeguarding consumer installations. The DCL enables decentralized decision-making for IoT devices, allowing them to operate autonomously based on cryptographically signed transactions.

Matter offers a more reliable and user-friendly smart home environment by ensuring all devices are authenticated and their operations verified. This blockchain integration aligns with Matter’s objectives to provide secure, interoperable, and easily manageable IoT solutions that are ready to adapt to the challenges of future digital landscapes.

Learn more about IoT Blockchain

Matter Device Certification Program

Developing Matter products requires compliance with the specifications of the Connectivity Standard Alliance (CSA). Once the product is Matter certified, it is listed on the official site. It can use the Matter logo to show consumers it has been tested for interoperability in a Matter program.

Matter-certified devices or Certified End Products are tested for conformance with the standard, and compliant platforms are tested to a set of specifications before they are engineered into an end product. More than 7000  certified products, compliant platforms, and software components. 

Matter Development Services

  • Firmware Development–Matter development—firmware applications, dedicated application layer
  • Mobile App development—user experience (UX) design of Android Matter apps and iOS apps
  • Architecture design—evaluate and select Matter hardware platforms
  • Analyze use cases to select and implement functional security aspects—firmware attestation, authentication
  • IoT Development–open-source agnostic mindset
  • Compliance with Matter specifications and certification process
  • Maintainability of Matter devices with the evolution of Matter revisions
  • Adherence to Matter principles

About Us: Krasamo is a mobile-first digital services and consulting company focused on the Internet-of-Things and Digital Transformation.

Click here to learn more about our IoT services.

RELATED BLOG POSTS

Matter Smart Home: Reliable Connectivity Standard for IoT Devices

Matter Smart Home: Reliable Connectivity Standard for IoT Devices

The IoT Smart Home market currently offers numerous products that work with various different platforms, protocols, and applications, making the Smart Home setup and maintenance a cumbersome activity that requires effort and time. Therefore, users have been slow in adopting IoT Smart Home products due to decreased satisfaction or frustration produced by the complexities of incompatible protocols, specifications, and stacks.