Install the ESPHome Device Builder add-on by following the official ESPHome documentation. (Note: This tutorial is based on ESPHome 2025.12.5. If you encounter compilation errors, switch to this version for verification.)
Click the Online Flashing button below and follow the prompts to flash the firmware and configure Wi-Fi. You can then quickly experience Unit CamS3-5MP integration with Home Assistant.
After completing online flashing, you do not need to perform the "Firmware Compilation & Flashing" steps. Proceed directly to 4. Getting Started.
3. Firmware Compilation & Flashing
This section explains how to recompile the project from the yaml configuration file for secondary development, feature modifications, or adding new features.
Compilation Time
Compiling firmware through HA is resource-intensive. The first compilation may take a long time to download resources, depending on the device running the HA service and network quality.
Create Device
Click the green button in the lower-right corner to create the device.
Click CONTINUE.
Click New Device Setup.
Enter the device name, then click NEXT.
Click ESP32-S3.
Click SKIP.
Modify Configuration
Click EDIT to customize device functions through the YAML file.
The following is the core part of the code. Related references and instructions are provided below.
After making changes, click SAVE and INSTALL in the upper-right corner, then select Manual Download in the pop-up window.
Once the firmware compilation is complete, click Download and select Factory format(Previously Modern).
Configuration Example
Click Unit CamS3-5MP to view the complete example configuration.
Flash Firmware
Upload the firmware using one of the following two methods:
Hardware connection guide: Connect the camera module to the 4-pin cable, plug the other end of the cable into the USB adapter, and then connect it to a computer or power supply using a USB Type-C data cable. After powering on, the device is ready for firmware flashing or data transmission.
Connect the device to the host via a USB Type-C data cable. Open ESPHome Web and click CONNECT to connect to the device.
Locate the corresponding serial port number.
Click INSTALL.
Select the previously compiled firmware to upload.
After flashing is complete, restart the device.
4. Getting Started
Click Settings > Devices & Services to check the device.
We can find the corresponding device in the Discovered section.
After adding the device, the data will be displayed correctly.
Finally, we add these entities to the Dashboard; the following are the display results.