Matter Protocol on ESP32 with Arduino | Apple HomeKit Integration: A Step-by-Step Guide | SYNC BYTE
ฝัง
- เผยแพร่เมื่อ 5 ก.ค. 2023
- Welcome to SYNC BYTE! In this video, we'll walk you through the process of implementing the #Matter protocol on an #ESP32 development board and seamlessly connecting it to Apple #HomeKit using #Arduino IDE. Basically how to make matter smart switch at home.
The Matter protocol, formerly known as Project CHIP, is a game-changer in the world of smart home devices, enabling seamless interoperability and communication between different brands and ecosystems. By integrating Matter into your ESP32 board, you can create a smart home solution that can be controlled and monitored through Apple's Home app and other supported echo systems such as Google #nest, #smartthings , #alexa etc...
We'll start by guiding you through the setup of the Arduino IDE, ensuring that you have the necessary board definitions and libraries for programming the ESP32. Once that's done, we'll dive into writing the code using the Arduino programming language. We'll cover essential elements such as establishing Wi-Fi connectivity and initializing the HomeKit accessory.
Next, we'll demonstrate how to connect the ESP32 board to #AppleHomeKit. You'll be able to seamlessly integrate your ESP32 into your existing #smarthome, #smartgadgets setup by going through this guide.
By the end of this video, you'll have a clear understanding of how to implement the Matter protocol on an ESP32 board, connect it to Apple HomeKit, and create your own smart home solution. Whether you're a beginner or an experienced enthusiast, this step-by-step guide will provide you with the knowledge and confidence to embark on your own smart home projects.
Don't miss out on this opportunity to unlock the full potential of your ESP32 board with Matter and Apple HomeKit. Join us in SYNC BYTE and take your smart home to the next level! Cheers!!
Matter Library: github.com/Yacubane/esp32-ard...
Source: github.com/Yacubane/esp32-ard...
Music credits: • [1 Hour] Fredji - Happ... - วิทยาศาสตร์และเทคโนโลยี
Nice to see somebody that uses my library ;)
Hi buddy, so nice to talk to you!! Let’s do some cool stuff together!
BTW don’t delete the repo ;)
I think its nice, ill be using it too!
Love the instructions, but can you please mute the music, Its totally unnecessary
Thanks for the comment, yes I agree with you. there’s no way to mute the music only, in coming videos will do
Yes, great content but the music makes it hard to hear
Thanks for your sharing, I'm trying to do one also!
Good luck!
Works Perfectly! I need it to be a switch in Apple Home instead of a light. When the switch is turned ON, ESP32 will move a servo to 90 degrees using ESP32Servo for 1.5 seconds then back to 0 degrees and turn the switch OFF ready for the next ON request. Any help is appreciated!
It works perfectly! Thank you. I have it running with a Lolin D32 Board and Google Home. For Google Home i registered the device for testing in Matter Console (because it is not certified)
Thanks for sharing
@oschmid I am also using google home for my custom matter device, can you guide me or provide any suitable link for google registration process?
amazing video, i have one question, i really want to know what specific ESP32 module you are using, are you using the ESP32-WROOM-32, ESP32-WROOM-32E, ESP32-WROOM-32D or another model? because in the minute 4:01 doesn't show clearly. regards.
It’s WROOM-32
Thank you for your video. Is there any version requirement such as 2nd gen or 3rd gen if I want to use apple TV as a matter hub ?
require a Thread-enabled home hub, such as HomePod mini or Apple TV 4K (3rd generation) Wi-Fi + Ethernet,
Great video, I have linked my esp32 with alexa and it works perfectly, how do I put the esp32 back in search to link it with siri and thus control it with siri and alexa at the same time.
That’s a good question. Need to add a way to reset and enable pairing mode. Were you able to find a way?
Thanks for the video. I tried this on an ESP WROOM-32 that I have connected to an LED strip thinking that I could convert it to a Matter-enabled device to use it in Homekit for my scenes and automations. I was able to register the Matter device with my iPhone, but the LED strip will not turn on. Any suggestions on what to modify to make it turn on an LED strip? Thank you
Is this a RGB LED strip?
Hi i am trying it with a demos d1 mini esp32 but I got this error:
Brownout detector was triggered
ets Jul 29 2019 12:21:46
rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:1344
load:0x40078000,len:13964
load:0x40080400,len:3600
entry 0x400805f0
D (15) esp_matter_core: Set val called with string with size 0
D (15) esp_matter_core: Set val called with string with size 0
D (15) esp_matter_core: Set val called with string with size 0
D (20) esp_matter_core: Set val called with string with size 0
D (26) esp_matter_core: Set val called with string with size 0
D (32) esp_matter_core: read attribute from nvs: endpoint_id-0x0, cluster_id-0x28, attribute_id-0x6
D (40) esp_matter_core: Set val called with string with size 0
Are you testing with Android? with Google Home?
I want to implement matter in an esp32 h2 mini 1 that you would recommend, do you think I can implement your code in my esp32 h2?
h2 doesn’t support wifi right, so need to do a bit of research on it. I would like to listen to any findings you have..
Any advice on reducing electromagnetic interference? The switch triggers sometimes when I turn on my electric fireplace. Thanks.
The author didn't use a pullup resistor with the button. In this case the pin is "floating" and accidental sparks in nearby equipment can cause ESP32 to think that the button was pressed.
@@AB-pb8oo but the input mode is INPUT_PULLUP which uses the built-in pull up resistor. No? I’m wondering if I used the wrong pins. I have an ESP-WROOM-32 and I’m using pins 22 and 23.
Can we add matter device without actually having homepod or Apple tv in Apple home app and add google nest wifi pro as thread border router?
Yes, it is possible to add Matter devices without having a HomePod or Apple TV in the Apple Home app and add Google Nest Wifi Pro as a Thread border router. Google devices can act as a Thread border router with Google Home: Nest Hub (2nd gen), Nest Hub Max, and Nest Wifi Pro (Wi-Fi 6E). Apple's HomePod Mini, Google's Nest Hub, and Amazon's Echo smart speaker can become Thread border routers in the new Matter ecosystem. Once upgraded by the manufacturer, they can become a Thread 1.3.0 border router, allowing you to add any Thread device to your home without buying any additional hardware. Therefore, if you have any of these devices in your home, you can use them as a Thread border router to add Matter devices to your home.
Yes, it is possible to add Matter devices without having a HomePod or Apple TV in the Apple Home app and add Google Nest Wifi Pro as a Thread border router. Google devices can act as a Thread border router with Google Home: Nest Hub (2nd gen), Nest Hub Max, and Nest Wifi Pro (Wi-Fi 6E). Apple's HomePod Mini, Google's Nest Hub, and Amazon's Echo smart speaker can become Thread border routers in the new Matter ecosystem. Once upgraded by the manufacturer, they can become a Thread 1.3.0 border router, allowing you to add any Thread device to your home without buying any additional hardware. Therefore, if you have any of these devices in your home, you can use them as a Thread border router to add Matter devices to your home.
Might be a stupid question but at what point do you configure the wifi for the device to work without being plugged to the computer?
Wifi configuration happens automatically when you pair with the matter hub
@@syncbytetube I'm running into an error in the last step when adding the Matter accessory. Can I connect with you for help?
Will it work with just the app or do we require a hub device like apple homepod or google home mini?
you need a hub
Will it work with Google nest wifi pro instead?
How to dimmable matter
Nice
Thanks
thanks is there an ESP8266 version too?
So far no, since esp8266 has hardware limitations
Can i use it from different network? For example: from mobile data
matter device and matter hub should be in the same network
HI! I followed your instructions and tried to load this example onto an ESP32. The program loads, I can start the matter procedure but Alexa is unable to configure it. After I tell him the wifi network (the same as Alexa) he tells me that an error occurs. Can you help me?
what is the error you see in the console?
@@syncbytetube I solved it, everything works. It was Alexa throwing a tantrum... I didn't have to touch anything on the code or the Arduino at all. When more sample codes?
Will it work only on LAN or also on WAN ?
It will work on both depending on your hub
is that support google home and amazon alexa?
yes it should support matter enabled devices
@@syncbytetube can you take a video demo for alexa and google home, thanks
sure!
Yes - i have it running on Google Home. I registered the Device as in the Google Matter Console for testing (because it is not a certified device).
Make it 4 switch and dht22 sensor .. That will be great .
Thank You for the suggestion! will create one soon ❤️
Please do one with Google home
Yes planning to do coming videos with other platforms. Stay tuned 🙂
Nice tutorial bro, but The Google Home app says "You need a hub for matter to set up and control with Google Home". Please help
!!!
what is the Hub you use?
@@syncbytetube Nothing, can I use it without any hub?
you need a hub bro, without a hub you can’t
@@syncbytetube OK thank you for the clarification
LOVED YOUR VIDEO
@@syncbytetube Hi sir, can you make one more video on this topic with more customization options like how we can create our own device and functions?
Can I do it without Homehub sir
No you have to have a matter hub
Bhai you make good videos, But please do not add music, you can add very very gentle piano or something inbetween your lines.
Thank you 😊
Music. Stop please...
You seem real knowledgeable about this but I couldn't watch the video because the music was louder than your voice and super annoying. Maybe just do it without the music or turn it down low enough that it's just ambient. Thank you
Thanks for informing me. will try to remove the background music
i did not find the music to be affecting my ability to hear you. great video
@@jdm542 Thank You
@@syncbytetube or maybe just lower the volume some first? Sometimes that sounds fine on videos. I really hope it helps you.
Dude. I barely can understand what u are saying 🤣 please reduce or better - remove the music
Yes I get it, now can’t remove the music. Sorry for that. In my future videos I will fix it. Thank you for letting me know 😊