Onvif camera for Sricam and motion detect sensor

I have a few ip camera that all works with RTSP onvif. all of them works with concam windows software. In HA core, I successfully add falmeei camera ones using either onvif camera or generic camera. However, for Sricam SP019, I got no way to setup. Both GUI interface returns timeout. I used vlc to find out rtsp://192.168.30.12:554/onvif1 with username/password. it connects ok. However, how to get HA manually change the stream settings?

Another questions is all Falmeei camera and TP link camera has motion detection function. However, I seems cannot find sensor entities for them. how to get motion detect working?

Some time ago I used sricam cameras with HA. I have since moved to using them with frigate.

The sricam did often have issues with onvif and generic cameras so I used FFMPG

- platform: ffmpeg
  name: Kitchen Cam
  input: rtsp://192.168.1.xxx:554/onvif1

Thanks. I am using HA 2023.9.3 that is in Qnap NAS container. Where can I put your coding into? I tried in configuration.yaml and noticed camera: is invalid now “Integration error: Camera - Integration ‘Camera’ not found.”

Read this

The config lives under your camera section in you yaml file.

thanks. Added in configuration.yaml. However, it seems can’t load stream.

further checking. It seems latest HA core removes mjpeg, onvif camera manual settings via configuration.yaml. all should be done through GUI while GUI way is not so flexable.

Hi, can you share your Sricam configuration for Frigate? Thank you

I gave up to config Sricam on HA

Here you go.

 e_shedcam:
    birdseye:
      order: 4
    ffmpeg:
      hwaccel_args: preset-vaapi
      input_args: preset-rtsp-udp
      inputs:
      - path: rtsp://192.168.1.61:554/onvif1
        roles:
        - detect
        - record
    motion:
      mask:
      - 311,0,309,35,0,32,0,0
    detect:
      enabled: true
      width: 800
      height: 480
      fps: 5
    objects:
      track:
      - person
        #- cup
       # - car
      - bicycle
       # - motorcycle
      - dog
      - cat
      #  - window
     #   - keyboard
    snapshots:
      enabled: true
      timestamp: true
      bounding_box: false
      crop: false
      #height: 175
      required_zones: []
      retain:
        default: 5
        objects:
          person: 5
          car: 5
          cup: 1
    record:
      enabled: true
      retain:
        days: 7
        mode: motion
      events:
        retain:
          default: 5
          mode: active_objects
          objects:
            dog: 2
            car: 5