Metainformationen zur Seite
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
digitales:hardware:esp:esp32-cam [05.04.2025] – [Basis-Konfiguration] cs | digitales:hardware:esp:esp32-cam [25.05.2025] (aktuell) – [ESP32-CAM Dokumentation] cs | ||
---|---|---|---|
Zeile 3: | Zeile 3: | ||
====== ESP32-CAM Dokumentation ====== | ====== ESP32-CAM Dokumentation ====== | ||
- | {{..:..: | + | {{..: |
+ | |||
+ | {{..: | ||
- | {{..: | ||
===== Übersicht ===== | ===== Übersicht ===== | ||
Zeile 39: | Zeile 40: | ||
===== Integration in Home Assistant mit ESPHome ===== | ===== Integration in Home Assistant mit ESPHome ===== | ||
+ | |||
+ | [[digitales: | ||
+ | |||
==== Basis-Konfiguration ==== | ==== Basis-Konfiguration ==== | ||
Zeile 67: | Zeile 71: | ||
</ | </ | ||
+ | ==== Kamera-Konfiguration ==== | ||
- | ===== Code ===== | + | <code yaml> |
- | + | ||
- | < | + | |
- | substitutions: | + | |
- | devicename: esp-cam | + | |
- | upper_devicename: | + | |
- | + | ||
- | esphome: | + | |
- | name: $devicename | + | |
- | friendly_name: | + | |
- | + | ||
- | esp32: | + | |
- | board: esp32dev | + | |
- | framework: | + | |
- | type: arduino | + | |
- | + | ||
- | # Enable logging | + | |
- | logger: | + | |
- | level: WARN | + | |
- | + | ||
- | packages: | + | |
- | wifi: !include packages/ | + | |
- | mqtt: !include packages/ | + | |
- | ota: !include packages/ | + | |
- | + | ||
- | # Enable Home Assistant API | + | |
- | # Für ESP32 Camera Component siehe: https:// | + | |
- | # Für lambda siehe: https:// | + | |
- | api: | + | |
- | services: | + | |
- | # change camera parameters on-the-fly | + | |
- | - service: camera_set_param | + | |
- | variables: | + | |
- | name: string | + | |
- | value: int | + | |
- | then: | + | |
- | - lambda: |- | + | |
- | bool state_return = false; | + | |
- | if ((" | + | |
- | if ((" | + | |
- | if ((" | + | |
- | if ((" | + | |
- | if ((" | + | |
- | if ((" | + | |
- | if ((" | + | |
- | if ((" | + | |
- | if ((" | + | |
- | if ((" | + | |
- | if ((" | + | |
- | if ((" | + | |
- | if ((" | + | |
- | if ((" | + | |
- | if ((" | + | |
- | if ((" | + | |
- | + | ||
- | if (true == state_return) { | + | |
- | id(my_camera).update_camera_parameters(); | + | |
- | } | + | |
- | else { | + | |
- | ESP_LOGW(" | + | |
- | } | + | |
- | wifi: | + | |
- | manual_ip: | + | |
- | # Set this to the IP of the ESP | + | |
- | static_ip: 192.168.178.40 | + | |
- | # Set this to the IP address of the router. Often ends with .1 | + | |
- | gateway: 192.168.178.1 | + | |
- | # The subnet of the network. 255.255.255.0 works for most home networks. | + | |
- | subnet: 255.255.255.0 | + | |
- | + | ||
- | captive_portal: | + | |
- | + | ||
- | time: | + | |
- | - platform: homeassistant | + | |
- | id: esptime | + | |
esp32_camera: | esp32_camera: | ||
name: $upper_devicename | name: $upper_devicename | ||
Zeile 161: | Zeile 91: | ||
max_framerate: | max_framerate: | ||
- | # Image settings | + | # Bildeinstellungen |
contrast: 0 | contrast: 0 | ||
special_effect: | special_effect: | ||
- | # exposure settings | + | # Belichtungseinstellungen |
aec_mode: auto | aec_mode: auto | ||
aec2: false | aec2: false | ||
ae_level: 0 | ae_level: 0 | ||
aec_value: 300 | aec_value: 300 | ||
- | # gain settings | + | # Verstärkungseinstellungen |
agc_mode: auto | agc_mode: auto | ||
agc_gain_ceiling: | agc_gain_ceiling: | ||
agc_value: 0 | agc_value: 0 | ||
- | # white balance setting | + | # Weißabgleich-Einstellung |
wb_mode: auto | wb_mode: auto | ||
- | # orientation | + | # Ausrichtung |
vertical_flip: | vertical_flip: | ||
horizontal_mirror: | horizontal_mirror: | ||
+ | </ | ||
- | on_stream_start: | ||
- | light.turn_on: | ||
- | on_stream_stop: | ||
- | light.turn_off: | ||
- | # camera webserver | + | ==== Webserver und LED-Steuerung ==== |
+ | |||
+ | <code yaml> | ||
+ | # Kamera-Webserver | ||
esp32_camera_web_server: | esp32_camera_web_server: | ||
- port: 80 | - port: 80 | ||
Zeile 199: | Zeile 129: | ||
light: | light: | ||
- | # For the white LED. | + | # Für die weiße |
- platform: monochromatic | - platform: monochromatic | ||
output: gpio_4 | output: gpio_4 | ||
name: $upper_devicename Flash LED | name: $upper_devicename Flash LED | ||
- | # For the red status | + | # Für die rote Status-LED |
- platform: status_led | - platform: status_led | ||
name: $upper_devicename Status LED | name: $upper_devicename Status LED | ||
Zeile 210: | Zeile 140: | ||
number: GPIO33 | number: GPIO33 | ||
inverted: true | inverted: true | ||
+ | </ | ||
- | switch: | + | ==== WLAN-Konfiguration (Beispiel) ==== |
- | | + | |
- | name: $upper_devicename Restart | + | |
- | binary_sensor: | + | <code yaml> |
- | - platform: status | + | wifi: |
- | | + | |
+ | manual_ip: | ||
+ | | ||
+ | gateway: 192.168.178.1 | ||
+ | subnet: 255.255.255.0 | ||
+ | # Alternative: | ||
+ | # ssid: " | ||
+ | # password: " | ||
</ | </ | ||
+ | |||
===== Kamera-Zugriff ===== | ===== Kamera-Zugriff ===== | ||
Zeile 241: | Zeile 178: | ||
* Versuchen Sie eine Firmware-Aktualisierung | * Versuchen Sie eine Firmware-Aktualisierung | ||
+ | {{: | ||
===== Nützliche Links ===== | ===== Nützliche Links ===== | ||