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] – 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 38: | Zeile 39: | ||
- Drücken Sie erneut den RST-Button, um das Board neu zu starten | - Drücken Sie erneut den RST-Button, um das Board neu zu starten | ||
- | ===== Troubleshooting | + | ===== Integration in Home Assistant mit ESPHome |
- | * [[https:// | + | [[digitales:hardware:esp:erlaeuterungen_zum_code_esp32_cam]] |
- | * [[https:// | + | |
- | {{: | ||
- | ===== Nützliche Links ===== | + | ==== Basis-Konfiguration |
- | + | ||
- | * [[https:// | + | |
- | * [[https:// | + | |
- | + | ||
- | ===== Code ===== | + | |
- | < | + | <code yaml> |
substitutions: | substitutions: | ||
devicename: esp-cam | devicename: esp-cam | ||
Zeile 66: | Zeile 60: | ||
type: arduino | type: arduino | ||
- | # Enable logging | + | # Aktiviere Logging |
logger: | logger: | ||
level: WARN | level: WARN | ||
+ | # Externe Pakete einbinden | ||
packages: | packages: | ||
wifi: !include packages/ | wifi: !include packages/ | ||
mqtt: !include packages/ | mqtt: !include packages/ | ||
ota: !include packages/ | ota: !include packages/ | ||
+ | </ | ||
- | # Enable Home Assistant API | + | ==== Kamera-Konfiguration |
- | # 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 | + | |
- | 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 | + | |
+ | <code yaml> | ||
esp32_camera: | esp32_camera: | ||
name: $upper_devicename | name: $upper_devicename | ||
Zeile 143: | 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: | + | ==== Webserver und LED-Steuerung ==== |
- | light.turn_on: | + | |
- | on_stream_stop: | + | |
- | light.turn_off: | + | |
- | # camera webserver | + | <code yaml> |
+ | # Kamera-Webserver | ||
esp32_camera_web_server: | esp32_camera_web_server: | ||
- port: 80 | - port: 80 | ||
Zeile 181: | 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 192: | 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 ===== | ||
+ | |||
+ | Nach erfolgreicher Einrichtung können Sie auf die Kamera zugreifen: | ||
+ | |||
+ | * Livestream: '' | ||
+ | * Einzelbild: '' | ||
+ | * In MotionEye einbinden: '' | ||
+ | |||
+ | ===== Troubleshooting ===== | ||
+ | |||
+ | ==== Bekannte Probleme ==== | ||
+ | |||
+ | - **Niedrige Bildrate (FPS)** | ||
+ | * Mögliche Ursache: Interferenzen zwischen IO0 und der WLAN-Antenne | ||
+ | * Lösung: Abschirmung des IO0-Pins mit antistatischer Folie oder durch Berührung | ||
+ | * Alternativ: Positionierung des Boards entfernt von Störquellen | ||
+ | - **Verbindungsprobleme** | ||
+ | * Überprüfen Sie die Stromversorgung (mindestens 5V/1A empfohlen) | ||
+ | * Stellen Sie sicher, dass sich das Board in Reichweite des WLAN-Routers befindet | ||
+ | * Versuchen Sie eine Firmware-Aktualisierung | ||
+ | |||
+ | {{: | ||
+ | ===== Nützliche Links ===== | ||
+ | |||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||