frigate-hass-card: 2-way audio does not work with certain Hikvision cameras

Checklist:

  • I updated to the latest version available
  • I cleared the cache of my browser

Release with the issue: Specific PR release: https://github.com/dermotduffy/frigate-hass-card/pull/1291 But it also happens with 5.2.0 and Frigate addon

Last working release (if known): Unknown Browser and Operating System: This happens on all browsers mac/chrome/companion app

Description of problem:

Using the config below, two way audio works, toggling the MIC button on/off again, always stops/starts the two way audio… But the camera is also a doorbell, when a call is received, we need to first mute the call, by sending a service to it, to make the ringing sound stop, afterwards we press the mic button to start talking… so far so good… Then i press the mic button to stop the audio, this also works… Next on the second call, we do the same thing, we send the service to the doorbell to stop the ringing, but the when we press the MIC button, the two way audio isnt initiated… this is my issue What we need todo, is to refresh the page where the frigate card is located, after the refresh, when we then press again the MIC button, it seems to work…

I dont know why, or whats the cause, or why i need to refresh the page?

frigate card config:

        - type: custom:frigate-card
          cameras:
            - camera_entity: camera.deurbel
              live_provider: go2rtc
              go2rtc:
                url: https://user:pass@go2rtc.mydomai:8123
                stream: deurbel
                modes:
                  - webrtc
                  ......

go2rtc config:

streams:
  deurbel:
    - rtsp://user:xxx@192.168.0.14:554/Sms=24.unicast
    - isapi://user:xxx@192.168.0.70:80/

I also checked the go2rtc addon logs, no isses there… so not sure if its go2rtc or frigate card related, difficult to tell… What is happening on a refresh of the view? whats different between a refresh of the view and toggling the mic button?

What i also see, when you do a refresh of the page, the mic button is not immediately visible, it takes a second, and then its there… Is there maybe a way to force that refresh? That could maybe solve my issue, alltough still dont know the root cause…

Edit:

My guess, go2rtc is using ISAPI to use two way audio on hikvision camera’s, I think the audio session is not closed when pressing the mute button? When refreshing the page it starts a new two way audio session? The audio session is always open, regardless the mic button is muted or not?? That way, on an incoming call the audio session is closed, bur frigate thinks it’s still open?

About this issue

  • Original URL
  • State: open
  • Created 5 months ago
  • Comments: 23 (7 by maintainers)

Most upvoted comments

Thnx!

If you want, I can give you access to my intercom, so you can test it remote