Table of Contents | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
This application note describes how to create a simple smart lamp device and connect it to NavQ Plus using the Matter protocol.
1. 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.
...
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.
2. Home Assistant
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 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.
3. Prerequisites
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.
4. Software Setup
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.
...
Code Block |
---|
user@server:~$ sudo rm -rf /tmp/chip_* |
5. Lighting Demo
The BSP ships with a lighting demo written in C. You can run it by issuing the following command on NAVQ Plus #1:
...
Code Block |
---|
user@client:~$ chip-tool onoff on 12 1 user@client:~$ chip-tool onoff off 12 1 |
6. Getting Matter QR Code
When you run chip-lighting-app
or the Python script, the program output will include a link to a QR code for connecting your device via Matter. The link will be in the following format: https://project-chip.github.io/connectedhomeip/qrcode.html?data=MT%3A-24J042C00KA0648G00
...
You will need this QR code when connecting devices to Home Assistant or other Matter software.
7. Automated WiFi Configuration
If you want Matter to configure the WiFi network on your NAVQ Plus automatically, run the demo from the previous step with the --wifi
parameter:
...
Code Block |
---|
user@client:~$ chip-tool onoff on 12 1 user@client:~$ chip-tool onoff off 12 1 |
8. Smart Lamp
In the previous step, we only sent commands without actually controlling anything. Now, let's use Matter's ON and OFF commands to control the Status LED on the NAVQ Plus.
...
Please refer to the Setting up Home Assistant with Matter plugin Plugin on NAVQ Plus application note to replace the Matter client with a Home Assistant server using the Matter plugin (currently in beta state).
...