Stream Component: Confirmed Cameras and Configurations

Hi All,

I’m trying to use this IP camera with HA (Hass.io 0.93.1) to see its stream in Lovelace card.
Here’s the code in camera.yaml;

- platform: generic
  name: Dericam_generic
  still_image_url: http://192.168.0.58/tmpfs/auto.jpg
  password: !secret passwd

It worked for a while and then stopped, now it looks like this:
18%20(2)

and there is no errors in the log (but it generates errors “[homeassistant.components.generic.camera] Error getting new camera image: Cannot connect to host 192.168.0.58:80 ssl:None [Connection refused]” every second if I power off the camera).

The funny thing is I can see the camera’s feed if I paste the URL in my browser and enter password, so it’s not the camera issue.
Tried to clear cache, enable/dasable the component, updated to 0.93.1 to no avail…

How can I get it back even in generic mode?
UPDATE: after adding stream: to configuration.yaml and changing my card from this

entity: camera.dericam_generic
type: picture-entity

to this

camera: live
camera_image: camera.dericam_generic
entity: camera.dericam_generic
type: picture-entity

and adding stream_source to my camera component config:

stream_source: rtsp://admin:[email protected]/11

I’m able to see live stream if I click on the broken page icon:

but the “preload stream” checkbox (what’s that for?) covers part of the timestamp, very annoying… :
and there is about 5 seconds lag.

Also, the camera support ONVIF, but the following give me the similar visual outcome:

- platform: onvif
  name: Dericam
  host: 192.168.0.58
  password: !secret passwd

and in the HA log:

WARNING (MainThread) [homeassistant.components.onvif.camera] Couldn’t connect to camera ‘Dericam’, but will retry later. Error: Cannot connect to host 192.168.0.58:5000 ssl:None [Connection refused]

UPDATE: ONVIF component is working now, the issue was port (8080 instead of default 5000)