Skip to content

vinepb/Matter-Lamp-Firmware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lamp Controller with Matter

Overview

This project is a smart lamp controller designed for a 3V3 3D printed lamp. It utilizes an ESP32 microcontroller and has been tested with Apple's HomeKit ecosystem. The project consists of both software and hardware components, making it a complete solution for controlling the lamp remotely.

C CMake Espressif KiCad

Hardware

Refer to Matter-Lamp-Hardware.

Software

This project is based on the following technologies:

  • esp-idf: Espressif's IoT Development Framework.
  • esp-matter: Espressif's SDK for Matter.

Installation

Follow the installation instructions for esp-idf

cd ~ && mkdir esp && cd esp
git clone --recursive https://github.com/espressif/esp-idf.git
cd esp-idf; git checkout v5.2.1; git submodule update --init --recursive;
./install.sh
cd ..

Then install esp-matter:

cd esp-idf
source ./export.sh
cd ..

git clone --recursive https://github.com/espressif/esp-matter.git
cd esp-matter
./install.sh
cd ..

Then clone this repository and configure the environment:

cd ~/esp
git clone https://github.com/vinepb/Matter-Lamp-Firmware.git

# The next two commands should be done with each new terminal session
source ~/esp/esp-idf/export.sh
source ~/esp/esp-matter/export.sh

Then set the device's serial port, build and flash:

cd ~/esp/Matter-Lamp-Firmware
export ESPPORT=/dev/tty.SLAB_USBtoUART # Set your board's serial port here
idf.py set-target esp32
idf.py build flash monitor

Add acccessory in the Home app

Open the Home app on your iPhone/iPad and follow these steps

  • Tap on "Add Accessory" and press "More options...".
  • A device named "Matter Accessory" should show up, click it and use setup code 20202021.
  • Select the "Add Anyway" option for the "Uncertified Accessory" prompt.

About

ESP32 Matter On Off Light

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published