Bonjour,
Oui j’ai réussi à l’intégrer avec esphome et avec frigate sur la base de ce projet.
https://hackermagnet.com/night-vision-on-esp32-cam/
La vision nocture est opérationnelle mais pas assez puissante dans le jardin. Sinon tout fonctionne bien
C’est pas non plus une tuerie en résolution, mais ca fait le job. En service depuis des mois et résiste même à la bonne pluie bretonne
esphome:
name: camerajardin
friendly_name: Camera Jardin
esp32:
board: esp32cam
framework:
type: arduino
# Enable logging
logger:
ota:
- platform: esphome
password: "XXXXXXXXX"
# Enable Home Assistant API
api:
encryption:
key: "XXXXXXXXXX"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Optional manual IP
manual_ip:
static_ip: 192.168.1.127
gateway: 192.168.1.1
subnet: 255.255.255.0
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Esp32Cam Fallback Hotspot"
password: "XXXXXXX"
captive_portal:
web_server:
port: 80
esp32_camera:
name: camera_jardin
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
# Image/Video settings, https://esphome.io/components/esp32_camera.html
max_framerate: 5 fps # default: 10 fps, max 60
idle_framerate: 0.2 fps # default: 0.1 fps - framerate for 'picture' in HA dashboard
resolution: 640x480
jpeg_quality: 10
vertical_flip: True
horizontal_mirror: True
contrast: 2 # default: 0, variable -2 to 2
brightness: 2 # default: 0, variable -2 to 2
saturation: 0 # default: 0, variable -2 to 2
#aec_mode: MANUAL
#aec_value: 100
# Server video/pictures, https://esphome.io/components/esp32_camera_web_server.html
esp32_camera_web_server:
- port: 8080
mode: stream
- port: 8081
mode: snapshot
time:
- platform: homeassistant
id: homeassistant_time
output:
#flashlight
- platform: gpio
pin: GPIO4
id: gpio_4
light:
#flashlight
- platform: binary
output: gpio_4
name: flash light
binary_sensor:
- platform: homeassistant
name: "Input Boolean Night Mode HA"
entity_id: input_boolean.camera_jardin_night_mode
on_press:
then:
- switch.turn_on: ir2
on_release:
then:
- switch.turn_on: ir1
switch:
- platform: gpio
pin: GPIO2
name: Camera jardin IR ON
id: ir1
on_turn_on:
- delay: 100ms
- switch.turn_off: ir1
interlock: [ir2]
- platform: gpio
pin: GPIO14
name: Camera jardin IR OFF
id: ir2
on_turn_on:
- delay: 100ms
- switch.turn_off: ir2
interlock: [ir1]


