@jbeale1 wrote:
I’m brand new to HA. I have HA 0.103.6 running on a RPi4, I got far enough to control a Z-wave device. I would now like to get a still image from an IP camera displayed on the UI page at http://hassio:8123/lovelace/default_view
I see there is a built-in “camera” described at https://www.home-assistant.io/integrations/camera/ but that page assumes more knowledge than I have so far. I put the below code in /config/configuration.yaml and it appears to be valid (no error reported at least http://hassio:8123/config/server_control “CHECK CONFIG” button). I have previously done work with OpenCV using this Dahua IP camera, and I’m pretty confident the still image and RTSP URLs are correct.
camera: - platform: generic name: DH8 still_image_url: "http://192.168.1.28/cgi-bin/snapshot.cgi" stream_source: "rtsp://admin:MySecret@192.168.1.28:554/cam/realmonitor?channel=1&subtype=00" username: admin password: MySecret
From http://hassio:8123/developer-tools/state I can see the “current entity” list includes “camera.dh8” so that’s encouraging. How do I access this to make it visible on the front page of the UI, I guess it would need a “card” of some kind? How would that be created?
For testing from http://hassio:8123/developer-tools/service I entered the Service Data:
entity_id: camera.dh8 filename: '/tmp/snapshot_{{ entity_id }}'
and hit “call service” button and nothing obviously happens, but I see at least no error appears in the log display at http://hassio:8123/developer-tools/logs so maybe it worked. How do I get to the picture?
Posts: 1
Participants: 1