In my HA I get the below view. However, I don’t know why it says that camera is inactive (lower right corner of the picture). Also when I click on the camera, I don’t see any stream at all.
After using it for some time now, I also realize that the state “idle” is normal for this type of component.
Regarding the stream, no, I haven’t used that. Maybe that is the part I missed? I will check it up tomorrow. Do you mean that I should substitute camera in my configuration.yaml with stream? I have tried to look up on the stream: in configuration.yaml from google search, but could not seem to find any documentation to read up on.
No, stream is a separate component. When it is not enabled, and you click on the camera thumbnail in the frontend, the “more info” window will open and it will update by taking multiple “snapshots” (from the RTSP URL.) However, when the stream component is enabled, then the “more info” window should use the stream component to “live stream” from the RTSP URL.
So, your config should have both what you have now, and add:
BTW, I don’t use the ffmpeg camera. I use the amcrest integration. So I can’t say for sure if the live streaming will actually work for you. Maybe someone else that uses the ffmpeg camera will chime in.
Oh, I’m guessing you do, but do you have ffmpeg configured, too? As in:
Thanks so much for this suggestion! I have got it up and running now. It really helped. Also today there was an update for Hassio, and I noticed that one of the feature for the update was the possibility to go live with the camera.
If you are seeing artefacts when streaming using this firmware (I think this happens on some hardware but not others) see my video settings in my post here: Hacking the XiaomiFang Wifi camera
I use generic instead of ffmpeg and I’m happy with the results, not sure if ffmpeg is better or not? Using generic has zero impact on my tinkerboard hardware.
I am having issues related to Dafang Camera, which led me to this thread. I just can’t get the camera to show any picture in Home Assistant. I successfully installed Hacks. All checkboxes are active. I am running latest HASSIO.
I can see a picture and edit settings in https://dafang/
In VLC player it shows the live stream at rtsp://dafang:8554/unicast