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

Can't mute a specific cam automatically when switching to it #1658

Open
akcasoy opened this issue Oct 23, 2024 · 0 comments
Open

Can't mute a specific cam automatically when switching to it #1658

akcasoy opened this issue Oct 23, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@akcasoy
Copy link

akcasoy commented Oct 23, 2024

[REQUIRED] Card diagnostic information:

card_version: 6.0.0-beta.8
browser: >-
  Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML,
  like Gecko) Version/17.5 Safari/605.1.15
date: 2024-10-23T07:02:07.046Z
frigate_versions:
  01JAR2AQ33X1B3FZ52TGCYEKTE: 5.4.0/0.14.1-f4f3cfa
lang: de
timezone: Europe/Berlin
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.1
config:
  type: custom:frigate-card
  cameras:
    - camera_entity: camera.doorbell
      live_provider: go2rtc
      go2rtc:
        stream: reolink_doorbell
    - camera_entity: camera.defne_cam
      live_provider: go2rtc
      go2rtc:
        stream: reolink_e1_zoom
  menu:
    buttons:
      camera_ui:
        enabled: false
      cameras:
        enabled: false
      snapshots:
        enabled: false
      timeline:
        enabled: false
      frigate:
        enabled: true
      download:
        enabled: false
      media_player:
        enabled: false
      display_mode:
        enabled: false
      mute:
        enabled: true
        alignment: opposing
    style: outside
    position: bottom
    button_size: 40
  live:
    controls:
      next_previous:
        style: chevrons
      builtin: false
      thumbnails:
        mode: none
    preload: true
    transition_effect: slide
  dimensions: {}
  status_bar:
    style: none
  media_gallery:
    controls:
      thumbnails:
        size: 140
        show_favorite_control: false
        show_timeline_control: false
        show_download_control: false
      filter:
        mode: none
  performance:
    profile: high
  automations:
    - conditions:
        - condition: camera
          cameras:
            - camera.doorbell
      actions:
        - action: custom:frigate-card-action
          frigate_card_action: unmute
      actions_not:
        - action: custom:frigate-card-action
          frigate_card_action: mute
  elements:
    - type: custom:frigate-card-conditional
      conditions:
        - condition: camera
          cameras:
            - camera.defne_cam
      elements:
        - type: custom:frigate-card-menu-state-icon
          icon: mdi:ceiling-light
          entity: light.hue_white_lamp_kinderzimmer
          tap_action:
            action: toggle
        - type: custom:frigate-card-menu-state-icon
          icon: mdi:track-light
          entity: switch.e1_zoom_infrarotlicht_im_nachtmodus
          tap_action:
            action: toggle

[REQUIRED] Description of problem:

I have 2 cameras, and i want to hear sounds from the first camera "camera.doorbell" automatically (unmute). And as soon as i switch to the 2. camera it should mute. So this works as expected.
But when i switch to the first camera again, it should again unmute. And this part does not work. See the video below.

  automations:
    - conditions:
        - condition: camera
          cameras:
            - camera.doorbell
      actions:
        - action: custom:frigate-card-action
          frigate_card_action: unmute
      actions_not:
        - action: custom:frigate-card-action
          frigate_card_action: mute
Bildschirmaufnahme.2024-10-23.um.09.04.31.mov
@akcasoy akcasoy added the bug Something isn't working label Oct 23, 2024
@akcasoy akcasoy closed this as completed Oct 23, 2024
@akcasoy akcasoy reopened this Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant