question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Home Assistant Error

See original GitHub issue

Hi all! I have installed the home assistant plugin and trying to make it work with one RTSP camera in the beggining. I have tried to follow the configuration example but the plugin does not start. Can you help me make it work? In the logs

I have the following error:

Fontconfig error: Cannot load default config file
On connect called
Traceback (most recent call last):
  File "detect_objects.py", line 441, in <module>
    main()
  File "detect_objects.py", line 202, in main
    ffmpeg_output_args = ["-r", str(config.get('fps'))] + ffmpeg_output_args
TypeError: can only concatenate list (not "NoneType") to list
Starting detection process: 20

My config:

web_port: 5000
detectors:
  coral:
    type: edgetpu
    device: usb
save_clips:
  max_seconds: 300
  clips_dir: /clips
  cache_dir: /cache
mqtt:
  host: 10.10.10.3
  port: 1883
  topic_prefix: frigate
  client_id: frigate
  user: mqtt
  password: password
ffmpeg:
  global_args:
    - '-hide_banner'
    - '-loglevel'
    - panic
  hwaccel_args:
    - '-hwaccel'
    - vaapi
    - '-hwaccel_device'
    - /dev/dri/renderD128
    - '-hwaccel_output_format'
    - yuv420p
  input_args:
    - '-avoid_negative_ts'
    - make_zero
    - '-fflags'
    - nobuffer
    - '-flags'
    - low_delay
    - '-strict'
    - experimental
    - '-fflags'
    - +genpts+discardcorrupt
    - '-rtsp_transport'
    - tcp
    - '-stimeout'
    - '5000000'
    - '-use_wallclock_as_timestamps'
    - '1'
  output_args:
    - '-f'
    - rawvideo
    - '-pix_fmt'
    - yuv420p
cameras:
  lroom:
    ffmpeg:
      input: 'rtsp://10.10.10.47/unicast'
      global_args: null
      hwaccel_args: null
      input_args: null
      output_args: null
    height: 1080
    width: 1920
    fps: 5
    mask: 'poly,0,900,1080,900,1080,1920,0,1920'
    best_image_timeout: 120
    mqtt:
      crop_to_region: true
      snapshot_height: 300
    zones:
      lroom_door:
        coordinates: '545,1077,747,939,788,805'
        filters:
          person:
            min_area: 5000
            max_area: 100000
            threshold: 0.8
    save_clips:
      enabled: false
      pre_capture: 30
      objects:
        - person
    snapshots:
      show_timestamp: true
      draw_zones: false
      draw_bounding_boxes: true
    objects:
      track:
        - person
      filters:
        person:
          min_area: 5000
          max_area: 100000
          min_score: 0.5
          threshold: 0.85
objects:
  track:
    - person
  filters:
    person:
      min_area: 5000
      max_area: 100000
      min_score: 0.5
      threshold: 0.85

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
tubalainencommented, Jan 22, 2021

Thank you ! I’ll try my luck there!

A friendly tip - start with the bare minimum in your config, make sure that all indentations are correct and move on from there. 😃 Have a nice weekend!

0reactions
grego1981commented, Jan 22, 2021

Thank you ! I’ll try my luck there!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting your configuration - Home Assistant
One of the most common problems with Home Assistant is an invalid configuration.yaml or other configuration file. Home Assistant provides a CLI that...
Read more >
Errors | Home Assistant Companion Docs
You have denied local network access to the app. To solve the issue on iOS, open the Home Assistant entry in the system...
Read more >
Connection error - Home Assistant
Connection error. It can happen that you get a traceback that notify you about connection issues while running Home Assistant. Eg.
Read more >
Newbie with error messages - Home Assistant Community
I am a newbie I'm getting error messages that I can't fix on my own. Can you help me please? My HA has...
Read more >
Reporting issues - Home Assistant
If you found a bug then please report it in one of our trackers. To help you and our developers to identify the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found