This application note describes how to create a simple smart lamp device and connect it to NavQ Plus using the Matter protocol.
The Matter protocol, formerly known as Project CHIP (Connected Home over IP), is an open-source smart home connectivity standard developed by the Connectivity Standards Alliance (CSA). It aims to create a unified and secure standard for smart home devices, allowing them to seamlessly communicate with each other and integrate into different ecosystems.
Matter protocol is designed to address the interoperability challenges faced by consumers, device manufacturers, and smart home platforms. By adopting a common networking protocol, Matter enables devices from different brands to work together, regardless of their underlying technology or communication method. This simplifies the setup process, enhances device compatibility, and provides a more cohesive and user-friendly smart home experience.
Matter protocol is built upon existing IP-based technologies, such as Ethernet, Wi-Fi, and Thread, and leverages standard internet protocols like IPv6 and TCP/UDP. It aims to provide reliable and secure connectivity while ensuring data privacy and minimizing latency.
With the support of major industry players, including Apple, Google, Amazon, and other members of the CSA, the Matter protocol is expected to become a widely adopted standard, driving the growth and development of the smart home industry.
Home Assistant is an open-source home automation platform that allows you to control and automate various smart devices and services within your home. It provides a unified interface to interact with devices from different brands and protocols, enabling seamless integration and automation.
Home Assistant supports a wide range of devices, including lights, thermostats, cameras, sensors, and more. Home Assistant also offers a user-friendly web-based interface and mobile apps for convenient control and management of your smart home.
With Home Assistant, you can create custom automations, set up schedules, and create complex routines to control your devices based on different triggers and conditions. It also integrates with popular voice assistants like Amazon Alexa and Google Assistant, allowing you to control your smart home using voice commands.
Home Assistant has a large and active community of users and developers who contribute to its continuous improvement. It offers extensive customization options, flexibility, and compatibility with a wide range of smart home devices, making it a popular choice for DIY smart home enthusiasts.
Before proceeding with the setup, make sure you have the following:
NAVQ Plus #1: This will serve as the Matter device and will be referred to as server in further steps. Console commands will have the 'server' prompt.
NAVQ Plus #2 or a Linux PC: This will serve as the Matter client and will be referred to as client in further steps.
To ensure the proper operation of the Matter Python library with the NAVQ Plus, please use the NAVQ+ BSP Release 1.1.10 or a higher version.
If you have any previous Matter configuration files that are no longer required, it is recommended to clean them up. Use the following command to remove the chip-tool data:
user@server:~$ sudo rm -rf /tmp/chip_*
The BSP ships with a lighting demo written in C. You can run it by issuing the following command on NAVQ Plus #1:
user@server:~$ sudo chip-lighting-app
In the output you will see:
Pin Code: 202021
Manual pairing code: 34970112332
Link to QR code image
Let's attempt to connect to the Matter device on NAVQ Plus #1 from NAVQ Plus #2 (or a Linux PC) using Node ID 12 and the pairing code obtained in the previous step: