In this video I will show you the ESP32-CAM, Node-RED & Home Assistant. This is the cheapest WIFI camera that I’ve ever found on the market. Also This tiny Camera can stream video via web server and can work with Node-RED & Home Assistant and I will show you how.  

Steps for ESP32-CAM, Node-RED & Home Assistant

To make this camera to work as I want I will flash it will Arduino sketch which will actually start a mini Web Server inside it that can be accessed from any web browser and of course Node-Red and Home-Assistant. 

Before I continue I want to say that all the credits for the Arduino sketch and the Idea as a whole goes to the guys from

They have a great video and article about ESP32-CAM showing how to flash the camera and how to integrate it with Home Assistant. So thank you guys for your great work. 

Be careful with the ESP32-CAM model, there a 4-5 different brands out there the one that you want is Ai-Thinker. 


To complete this tutorial you will need:

Other brands may also work, but it’s not guaranteed. I tried with the one camera that looks the same, but it has no labels on it and everything went fine, but at the end there is some strange flickering during the streaming.

Flashing the ESP32-CAM

With that being said lets flash the ESP32-CAM now: 

  • Install Arduino IDE for your OS
  • Go to Arduino \ Preferences
  • Enter into the “Additional Board Manager URLs”
  • Go to Tools \ Board \ Boards Manager…
  • Install “ESP32 by Espressif Systems“ for me only version 1.0.2 worked OK
  • Copy and paste the following sketch inside your Arduino –
  • Replace SSID and password with your WIFI credentials 
  • If you are using other ESP32-CAM model than Ai-Thinker uncomment your camera model in the code
  • Connect the ESP32-CAM board to your computer using an FTDI adapter and Follow the diagram shown below.
  • Chose all the settings in Arduino exactly as shown in the video
  • Click the upload button to upload the code.
  • After uploading the code, disconnect IO0 from GND. Open the Serial Monitor at a baud rate of 115200. Press the ESP32-CAM on-board Reset button. The ESP32 IP address should be printed in the Serial Monitor.
Scheme To flash ESP32-CAM to work with Node-RED & Home Assistant
Connect the ESP32-CAM board to your computer using an FTDI adapter

ESP32-CAM, Node-RED & Home Assistant

Node-RED integration

Home Assistant integration

  • Click on Configure UI in the upper right corner
  • Find the Plus button in the lower right corner and click on it
  • Click on the Picture Card
  • Type the URL of the ESP32-CAM in the Image Path of the Picture Card Configuration


Are you interested in image recognition software – you can say yes or no in the comments section bellow and I will know for what you are talking about.

Support my work

Any sort of engagement on this site and YouTube channel does really help out a lot with the Google and YouTube algorithm, so make sure you leave comments, hit the subscribe, Like and Bell buttons If you enjoy this post.

You can also find my other articles here –

Also feel free to add me on Twitter by searching for KPeyanski username. I post there pretty much daily. 

I really hope that you find this information useful and you are going to make your ESP32-CAM to work with Node-RED, Home Assistant and as video streaming web-server  

Thank you for watching, stay safe and see you next time.


Samu · 17/02/2020 at 9:32 pm

good afternoon kiril, very good article.
I would like to know if from Node-red we could simultaneously see the streaming make a photo capture

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *