home assistant & eufy doorbell / webcam integration
Ich habe eine Homebase und eine eufyCam.
Um es sauber in das Dashboard meines Heimassistenten zu integrieren, habe ich Folgendes getan.
Meine Vorgehensweise:
- Die Eufy Security Integration über HACS heruntergeladen und HA neu gestartet.
- Das Add-on über den folgenden Link aus dem GIT-Repository runtergeladen und unter Add-on store/Repositories hinzugefügt.
https://github.com/bropat/hassio-eufy-security-ws
- HA neu gestartet und unter Einstellungen-Addon das eufy-security-ws gesucht und es installiert und HA neu gestartet.
- Anschließend habe ich unter Konfiguration von eufy-security-ws folgende Konfigurationsdaten eingegeben und startet.
username: xxx # created in eufy mobile app password: xxx country: GR port: 3000 polling_interval: 10 accept_invitations: true debug: false ipv4first: false event_duration: 10 stations: - serial_number: T8210Pxxx ip_address: 192.168.x.x - serial_number: T8210Pxxx ip_address: 192.168.x.x
- Danach habe ich über Einstellungen-Geräte u. Dienste die Eufy Securtity Integration von HACS hinzufügt.
Hier habe ich die Kamera IP Adresse 0.0.0.0. eingegeben und den Port 3000 hinterlegt.
(Standardoption beibehalten und speichern)
Geräte wie Kamera und Hubs sollten automatisch durch Eufy Securtity erkannt werden.
go2rtc installieren und einrichten
go2rtc oder Frigate ist für das Online-Anzeigen des Streams mit WebRTC/MSE/HLS/usw.
GO2RTC support multiple streaming protocols wie RTSP, WebRTC, MSE, HLS, MP4, MJPEG, FFmpeg …
Install Add-On:
- Settings > Add-ons > + > Repositories > Add
https://github.com/AlexxIT/hassio-addons
- nach go2rtc suchen und intallieren
(Standard-Konfiguration beibehalten und speichern)
go2rtc findet alle Kameras und Entitäten. (So war es bei mir, Vorher sollte man kameras einseln unter go2rtc in HA-Konfigurations-YAML hinzufügen.)
Ich werde die WebRTC-Integration (WebRTC integration aus HACS) mit custom cards zur Anzeige von Bildern verwenden.
square: false columns: 1 type: grid cards: - show_state: false show_name: true camera_view: auto type: picture-entity tap_action: action: perform-action target: {} perform_action: "" aspect_ratio: "16:9" theme: Mushroom camera_image: camera.T8210Pxxx hold_action: action: perform-action perform_action: "" target: {} image: /config/www/doorbell/doorbell_last_image.jpg entity: image.T8210Pxxx_event_image name: config - doorbell_last_image
hier ist ein Beispiel für einen Shell Command zum Kopieren von Doorbell-Snapshots in eine Datei unter WWW-Verzeichnis
shell_command: # rtsp://127.0.0.1:8554/T8210xxx eufy: 'wget -O /config/www/doorbell/doorbell_last_image.jpg http://192.168.xx.xx:8123{{state_attr("image.T8210Pxxx_event_image","entity_picture")}}'
Hinzufügen der Kamera als „Generische Kamera“ über die Adresse: „rtsp://[IP_ADRESSE_HOMEASSISTANT]]:8551/[[STREAM_NAME_GO2RTC]]?mp4“.
Standbild kann über den Link wie folgt hinzugefügt werden:
„http://[[IP_ADRESSE_HOMEASSISTANT]:1984/api/frame.jpeg?src=[[STREAM_NAME_GO2RTC]]“
RTSP Kamera in Home Assistant einbinden
Für die Anbindung des Live Streams habe ich folgende 2 RTSP nach WEBRTC Integrationen ausprobiert:
- RTSPToWeb – WebRTC Integration
- WebRTC Camera Integration mit go2rtc
Aktivieren Sie die RTSP-Schnittstelle und nachdem dies geschehen ist, ist der Stream über folgende URLs erreichbar:
- rtsp://user:password@IP Address:554/< Das lässt sich mit dem Programm VLC herausfinden >
Videostream einer Überwachungskamera herausfinden (RTSP), aber wie?
Schau hier: https://www.ispyconnect.com/cameras
Zum Testen kann das Programm VLC verwendet werden. Wenn das Kamerabild dort angezeigt wird, dann ist alles bereit für die Integration in Home Assistant.
RTSPToWeb – WebRTC Integration
Führen Sie die folgenden Schritte aus und installieren Sie das Add-on RTSPtoWeb-WebRTC:
- Add-on Repository hinzufügen:
https://github.com/allenporter/stream-addons - Add-on RTSPtoWeb-WebRTC installieren und starten
- Benutzeroberfläche öffnen
- Kamera hinzufügen über „Add stream“
Einbindung in Home Assistant
Hinzufügen der Kamera als „Generische Kamera“ über die Adresse rtsp://[IP_ADRESSE_HOMEASSISTANT]]:5541/[[Stream_Name_In_RTSPtoWEB]]/0
WICHTIG: Vorladen bei „Generischer Kamera“ aktivieren, damit bei der Automation auch die eingestellten 10 Sekunden vor der Auslösung (lookback Parameter) aufgezeichnet werden.
Quellen
Add-ons:
- Eufy security WS: https://github.com/bropat/hassio-eufy-security-ws
- Go2RTC add on: https://github.com/AlexxIT/hassio-addons
HACS components:
- WebRTC camera HACS: https://github.com/fuatakgun/WebRTC
- Browser mod: https://github.com/thomasloven/hass-browser_mod
Leave a Reply