Created a new node in ESPHome (chose esp-wrover-kit as the type of ESP32 board)
Used this yaml code for config of the ESP32 camera in the ESPHome node:
To upload firmware, I plugged in a micro-USB cable in the TTGO ESP32 Cam and connected it to a free USB port on the Raspberry PI3B+
Restarted ESPHome
Chose the new option for upload that now appeared in ESPHome in the top right menu for upload (not OTA and not the one called /dev/ttyACM0 [at least on my ESPHome dashboard])
Clicked Upload and after compilation and a report of successful upload and connection from ESPHome, I disconnected the TTGO ESP32 board from the RPi3 USB port, connected it to a separate USB power supply, and restarted Home Assistant.
A new device was now discovered by HA and clicking the link in the frontend to configure the integration of the new ESP32 TTGO Cam node, the new node showed up in a popup window, and “submit” was clicked. After that a picture from the new camera node showed up in the HA states frontend (I don’t use the Lovelace frontend as yet). The picture updates around every 10 seconds. If clicked on, the video stream starts in a small pop-up window:
I struggle to find a reason of having an OLED there, do you have a use case?
It’s more reasonable for PIR (like send a signal so the device starts streaming or HA reacts to it), but as far as I can see, it on has an interface (GPIO?) to support PIR, not an actual sensor…
This is the whole part of my camera config, the other part of the yaml code is only standard wifi setup. Or, maybe I did not quite understand which code you meant.
The TTGO board came with pre-installed firmware which had a webserver. In its original configuration the camera stream was accessed by connecting to this webserver with a web browser. With the original firmware the OLED was used to display the SSID of the webserver WiFi, so that you would know what to connect to. Some boards have a multisensor BME280, and then the OLED is used to display temperature, hunidity, etc. My particular board does not have bme280, I think.
But, otherwise I fail to see any clear important use for an OLED on a ESP32 Cam.
I agree with you, the PIR is most likely meant to setup motion detection for the camera stream. Haven’t got to that part yet.
The ESP32 cams are available at different prices, of course. The link I posted was something I grabbed off the web just now. Mine came at around $11.
The aim, however, was mainly to tinker and see if such a board could be integrated into Home Assistant. Now, I know that it works fine. It may or may not become a part of my home automation system.
I would rather have two-way audio communication.
Have no idea if that’s much more demanding/difficult to programm/use though…
they come in different forms and shapes…
anyway, it’s not bad as it’s a) pre-wired and b) keep the device compact so you only need a proper enclosure to start using it.
yeah, completely forgot about that. very useful feature indeed, sometimes I’m tempted to make that IR lights myself, but simply don’t know where to start (and I presume factory-built ones will be better anyway)
But, there is definitely an issue with the TTGO Cam board and ESPHome in my setting. After reset the board behaves correctly, updating a still image to the HA frontend every 10 seconds. If the video stream is started by clicking in the window this works too, but after the video stream is stopped by closing the pop-up window, the cam does not revert back to updating every 10 seconds. Now, it feeds 10 still images per second according to the logs in ESPHome (the serial log fills up quickly), and after a while the node stops working and no image is available in HA. Only a reset of the cam board will get the image back in HA. Also, a restart of ESPHome is necessary for the cam board to start correct updating every 10 seconds. So, not a very stable setup at the moment. Maybe, the videostream is not shut down properly, I am not sure.
I don’t know if this is an issue with this particular TTGO ESP32 cam board, or if similar unstability is seen with other ESP32 cam boards?
well, it can be everything, considering how new the stream feature, esphome and that ESP32 Cam thingies are…
let’s hope someone spot the reason of that/file a new issue and it will improve eventually as it doesn’t sound right as it is.
below is what I have for the display and pir.
I plan to use these in the basement using pir to turn lights on.
Camera is not low light, bonus for security just in case.