Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Will this integration work with Audio Events? #766

Open
dougransom opened this issue Nov 12, 2024 · 5 comments
Open

Will this integration work with Audio Events? #766

dougransom opened this issue Nov 12, 2024 · 5 comments
Labels

Comments

@dougransom
Copy link

dougransom commented Nov 12, 2024

I'd like an event or state variable in home assistant when the cat event is triggered (see below, it is an audio event), and for it to be a different event than detecting a cat with the camera. If a cat is making noise near the microphone, it should trigger, assuming the model works.

# yaml-language-server: $schema=http://ha.local:5000/api/config/schema.json
detectors:
#  cpu1:
#    type: cpu
  coral:
    type: edgetpu
    device: usb

record:
  enabled: true
mqtt:
  # Required host name
  host: ha
  port: 1883
  #topic prefix must be  unique if running multiple instances
  topic_prefix: frigate
  stats_interval: 60
  user: mqttuser
  password: hotdog
environment_vars:
  LIBVA_DRIVER_NAME: i965

go2rtc:
  streams:
  # https://www.reddit.com/r/frigate_nvr/comments/1dkd2ua/doorbell_exceeded_fps_limit_exiting_ffmpeg/
  #possibly need to change settings on doorbell to use flv
    reolink_doorbell_det:
#      - "ffmpeg:http://doorbell.local/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=doug&password=ransom#video=copy#audio=copy"
      - rtsp://doug:[email protected]:554/h264Preview_01_sub

    reolink_doorbell_rec:
#      - "ffmpeg:http://doorbell.local/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=doug&password=ransom#video=copy#audio=copy"
      - rtsp://doug:[email protected]:554/h264Preview_01_main


# Optional: logger verbosity settings
logger:
  # Optional: Default log verbosity (default: shown below)
  default: info
  # Optional: Component specific logger overrides
  logs:
    frigate.event: debug

ffmpeg:
  hwaccel_args: preset-intel-qsv-h264

audio:
  enabled: True

cameras:


  reolink_doorbell_det:
    motion:
      mask:
        - 0.461,0.507,0.465,0.543,0.618,0.536,0.612,0.506
        - 0.333,-0.001,0.333,0.056,0.662,0.056,0.66,0
    ffmpeg:
      inputs:
        - path: rtsp://localhost:8554/reolink_doorbell_det
          roles:
            - detect
            - audio
          input_args: preset-rtsp-restream
        - path: rtsp://localhost:8554/reolink_doorbell_rec
          roles:
            - record
          input_args: preset-rtsp-restream
    audio:
      enabled: True
      listen:
        - cat
    detect:
      enabled: true # <---- disable detection until you have a working camera feed
      # width: 640 # <---- update for your camera's resolution
      # height: 480 # <---- update for your camera's resolution
    record:
      enabled: true
    snapshots:
      enabled: true
 

    zones:
      default_zone:
        coordinates: 
          0.307,0.103,0.359,0.48,0.34,0.615,0.209,0.597,0.198,0.979,0.959,0.987,0.949,0.585,0.853,0.569,0.824,0.156,0.534,0.075
        loitering_time: 0
birdseye:
  enabled: true
  mode: continuous
version: 0.14

@dougransom
Copy link
Author

@blakeblackshear also do you want to turn on discussions for the various frigate github repos?

@NickM-27
Copy link
Collaborator

discussions are on in the main frigate repo

@NickM-27
Copy link
Collaborator

@dougransom
Copy link
Author

I did find the entity related to the sound notification. I guess I didn't see it in the search.

Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the Stale label Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants