Hi,
i’ve searched a lot, read a lot, but didn’t get it working.
Here is the log, can integrate it into HA with glance card, than i get an image every second.
But i can not see a stream, i tried it with :8080, but didn’t works.
Can i disable the Image/Sec, and enable a stream?
The Yaml:
esphome:
name: esphome-web-ccf4bc
esp32:
board: esp32dev
framework:
type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Esphome-Web-Ccf4Bc"
password: "viMWjrZ386IF"
captive_portal:
esp32_camera:
name: esp32_cam
external_clock:
pin: GPIO0
frequency: 20MHz
i2c_pins:
sda: GPIO26
scl: GPIO27
data_pins: [GPIO5, GPIO18, GPIO19, GPIO21, GPIO36, GPIO39, GPIO34, GPIO35]
vsync_pin: GPIO25
href_pin: GPIO23
pixel_clock_pin: GPIO22
power_down_pin: GPIO32
resolution: 1024x768
esp32_camera_web_server:
- port: 8080
mode: stream
- port: 8081
mode: snapshot
output:
- platform: gpio
pin: GPIO4
id: gpio_4
binary_sensor:
- platform: status
name: "ESP32Cam status"
sensor:
- platform: wifi_signal
name: "ESP32Cam WiFi Signal"
update_interval: 60s
light:
- platform: binary
output: gpio_4
name: "ESP32Cam light"
The Log
[10:04:35][C][wifi_signal.sensor:009]: WiFi Signal 'ESP32Cam WiFi Signal'
[10:04:35][C][wifi_signal.sensor:009]: Device Class: 'signal_strength'
[10:04:35][C][wifi_signal.sensor:009]: Accuracy Decimals: 0
[10:04:35][C][esp32_camera_web_server:088]: ESP32 Camera Web Server:
[10:04:35][C][esp32_camera_web_server:089]: Port: 8080
[10:04:36][C][esp32_camera_web_server:091]: Mode: stream
[10:04:36][C][esp32_camera_web_server:088]: ESP32 Camera Web Server:
[10:04:36][C][esp32_camera_web_server:089]: Port: 8081
[10:04:36][C][esp32_camera_web_server:093]: Mode: snapshot
[10:04:38][D][api:102]: Accepted ::FFFF:C0A8:19B
[10:04:38][D][api.connection:827]: Home Assistant 2022.9.7 (::FFFF:C0A8:19B): Connected successfully
[10:04:40][D][esp32_camera:168]: Got Image: len=28168
[10:04:50][D][esp32_camera:168]: Got Image: len=41472
[10:05:00][D][esp32_camera:168]: Got Image: len=40884
[10:05:10][D][esp32_camera:168]: Got Image: len=40640