{"id":905,"date":"2025-06-30T21:16:42","date_gmt":"2025-06-30T19:16:42","guid":{"rendered":"https:\/\/www.yelloworb.com\/orbblog\/?p=905"},"modified":"2025-06-30T21:28:57","modified_gmt":"2025-06-30T19:28:57","slug":"esp32-cam-in-homeassistant","status":"publish","type":"post","link":"https:\/\/www.yelloworb.com\/orbblog\/esp32-cam-in-homeassistant\/","title":{"rendered":"ESP32-CAM in HomeAssistant"},"content":{"rendered":"\n<p>I have an <a href=\"https:\/\/www.electrokit.com\/esp32-cam-utvecklingskort-med-wifi-och-kamera\">ESP32-CAM<\/a> unit I wanted to try to connect to Home Assistant. This is how I managed to add it.<\/p>\n\n\n\n<p>First I Googled and found the <a href=\"https:\/\/esphome.io\/components\/esp32_camera.html\">esp32_camera<\/a> component for <a href=\"https:\/\/esphome.io\/\">ESPHome<\/a> so it was a natural start since I already have several other ESPHome devices.<br \/><br \/>After a while I found that the esp32_camera component came with a number of <a href=\"https:\/\/esphome.io\/components\/esp32_camera.html#configuration-examples\">configuration examples<\/a>. After a little investigation among checking the <a href=\"https:\/\/github.com\/raphaelbs\/esp32-cam-ai-thinker\">https:\/\/github.com\/raphaelbs\/esp32-cam-ai-thinker<\/a> project I realized that I should be able to use the <strong>Ai-Thinker Camera<\/strong>-example.<\/p>\n\n\n\n<p>I also wanted to be able to control the LEDs on the board, both the status LED and the Flash and added those as well.<\/p>\n\n\n\n<p>This was my final yaml configuration which I added to the rest of the ESP yaml in the ESP Builder<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\" data-line=\"\">esp32_camera:\n  name: ESP32 camera\n  external_clock:\n    pin: GPIO0\n    frequency: 20MHz\n  i2c_pins:\n    sda: GPIO26\n    scl: GPIO27\n  data_pins: &#091;GPIO5, GPIO18, GPIO19, GPIO21, GPIO36, GPIO39, GPIO34, GPIO35]\n  vsync_pin: GPIO25\n  href_pin: GPIO23\n  pixel_clock_pin: GPIO22\n  power_down_pin: GPIO32\n  resolution: 1600x1200 # Native resolutions CIF 400x296, SVGA 800x600, UXGA 1600x1200\n  jpeg_quality: 10\n  vertical_flip: false\n  horizontal_mirror: false\n\noutput:\n  - platform: gpio\n    id: camera_flash_led\n    pin: GPIO04\n\nlight:\n  - platform: status_led\n    name: &quot;Camera status LED&quot;\n    pin: \n      number: GPIO33\n      inverted: true\n\n  - platform: binary\n    name: &quot;Camera Flash LED&quot;\n    output: camera_flash_led<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I have an ESP32-CAM unit I wanted to try to connect to Home Assistant. This is how I managed to add it. First I Googled and found the esp32_camera component for ESPHome so it was a natural start since I already have several other ESPHome devices. After a while I found that the esp32_camera component [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"off","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"categories":[29,86],"tags":[],"class_list":["post-905","post","type-post","status-publish","format-standard","hentry","category-hardware-projects","category-home-assistant"],"_links":{"self":[{"href":"https:\/\/www.yelloworb.com\/orbblog\/wp-json\/wp\/v2\/posts\/905","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yelloworb.com\/orbblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yelloworb.com\/orbblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yelloworb.com\/orbblog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yelloworb.com\/orbblog\/wp-json\/wp\/v2\/comments?post=905"}],"version-history":[{"count":3,"href":"https:\/\/www.yelloworb.com\/orbblog\/wp-json\/wp\/v2\/posts\/905\/revisions"}],"predecessor-version":[{"id":909,"href":"https:\/\/www.yelloworb.com\/orbblog\/wp-json\/wp\/v2\/posts\/905\/revisions\/909"}],"wp:attachment":[{"href":"https:\/\/www.yelloworb.com\/orbblog\/wp-json\/wp\/v2\/media?parent=905"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yelloworb.com\/orbblog\/wp-json\/wp\/v2\/categories?post=905"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yelloworb.com\/orbblog\/wp-json\/wp\/v2\/tags?post=905"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}