dermotduffy / frigate-hass-card

A Lovelace card for Frigate in Home Assistant
MIT License
551 stars 59 forks source link

Cannot mute live feeds on camera load #1654

Open ziptbm opened 5 days ago

ziptbm commented 5 days ago

Checklist:

[REQUIRED] Card diagnostic information:

{
  "ha_version": "2024.10.2",
  "card_version": "5.2.0",
  "browser": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 Edg/130.0.0.0",
  "date": "2024-10-22T11:37:16.320Z",
  "frigate_version": {},
  "lang": "en",
  "timezone": "America/Detroit",
  "git": {
    "build_version": "5.2.0-HEAD+g69249b6",
    "build_date": "Fri, 23 Jun 2023 15:26:26 GMT",
    "commit_date": "Thu, 22 Jun 2023 09:21:26 -0600"
  },
  "config": {
    "type": "custom:frigate-card",
    "cameras": [
      {
        "camera_entity": "camera.front_porch_webrtc",
        "webrtc_card": {
          "entity": "camera.front_porch_webrtc"
        },
        "live_provider": "webrtc-card"
      },
      {
        "camera_entity": "camera.doorbell_webrtc",
        "webrtc_card": {
          "entity": "camera.doorbell_webrtc"
        },
        "live_provider": "webrtc-card"
      },
      {
        "camera_entity": "camera.circle_drive_webrtc",
        "webrtc_card": {
          "entity": "camera.circle_drive_webrtc"
        },
        "live_provider": "webrtc-card"
      },
      {
        "camera_entity": "camera.driveway_webrtc",
        "webrtc_card": {
          "entity": "camera.driveway_webrtc"
        },
        "live_provider": "webrtc-card"
      }
    ],
    "live": {
      "auto_mute": "all"
    }
  }
}
type: custom:frigate-card
cameras:
  - camera_entity: camera.front_porch_webrtc
    webrtc_card:
      entity: camera.front_porch_webrtc
    live_provider: webrtc-card
  - camera_entity: camera.doorbell_webrtc
    webrtc_card:
      entity: camera.doorbell_webrtc
    live_provider: webrtc-card
  - camera_entity: camera.circle_drive_webrtc
    webrtc_card:
      entity: camera.circle_drive_webrtc
    live_provider: webrtc-card
  - camera_entity: camera.driveway_webrtc
    webrtc_card:
      entity: camera.driveway_webrtc
    live_provider: webrtc-card
live:
  auto_mute: all

[REQUIRED] Description of problem:

Within the UI for this card, there's an option for Automatically Mute Live Cameras to be "All Opportunities" which puts this setting as "all" in the YAML. Shouldn't this option automatically set the live camera feeds to a muted state? If not, how do you accomplish this? I do not want the audio on unless I tap the unmute button for any of the camera feeds.

Screenshot 2024-10-22 at 07 39 40

What's interesting is the configuration documentation for live auto_mute does not even show the "all" option available or provide any instruction that's clear to accomplish this goal.

[OPTIONAL] Last working release (if known):

[OPTIONAL] Javascript errors shown in the web inspector:

[OPTIONAL] Additional information:

tm8 commented 5 days ago

Same here!

dermotduffy commented 5 days ago

Please try the latest beta release and let me know if the issue persists: https://github.com/dermotduffy/frigate-hass-card/releases/tag/v6.0.0-beta.8

dermotduffy commented 5 days ago

Shouldn't this option automatically set the live camera feeds to a muted state?

It should! This may have been fixed already, give the beta release a shot.

ziptbm commented 5 days ago

Shouldn't this option automatically set the live camera feeds to a muted state?

It should! This may have been fixed already, give the beta release a shot.

I’ve upgraded to the beta, but haven’t been able to fully test due to network connectivity (cellular issues at the moment). But the all option is no longer in it and breaks the current config. What’s the recommend setting to have them muted by default?

UPDATE - it looks like the "all" option is no longer available with the beta. And I've now tried all three options available (individually and all together), but none of those configurations start the live camera feeds in a muted state. I have to manually click the mute icon for each one each time I navigate to that page in my HA dashboard.

@dermotduffy any other recommendations?

dermotduffy commented 4 days ago

UPDATE - it looks like the "all" option is no longer available with the beta. And I've now tried all three options available (individually and all together), but none of those configurations start the live camera feeds in a muted state.

OK -- that sounds like a bug. What you are trying to do should definitely be possible (in fact should be the default). Can you hold down your Frigate button again and paste your diagnostics with the new beta version. I will attempt to reproduce.

ziptbm commented 4 days ago

UPDATE - it looks like the "all" option is no longer available with the beta. And I've now tried all three options available (individually and all together), but none of those configurations start the live camera feeds in a muted state.

OK -- that sounds like a bug. What you are trying to do should definitely be possible (in fact should be the default). Can you hold down your Frigate button again and paste your diagnostics with the new beta version. I will attempt to reproduce.

Here you go. PLMK what else I can provide to help or test. Thanks! @dermotduffy

card_version: 6.0.0-beta.8
browser: >-
  Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML,
  like Gecko) Chrome/130.0.0.0 Safari/537.36 Edg/130.0.0.0
date: 2024-10-23T16:23:02.730Z
lang: en
timezone: America/Detroit
git:
  hash: a869109
  build_date: Mon, 14 Oct 2024 00:01:23 GMT
  commit_date: Sun, 13 Oct 2024 16:50:47 -0700
ha_version: 2024.10.2
config:
  type: custom:frigate-card
  cameras:
    - camera_entity: camera.garage_webrtc
      live_provider: webrtc-card
      webrtc_card:
        entity: camera.garage_webrtc
  live:
    auto_mute:
      - microphone