#Camera Card should get a red border and play a sound, when person detected.

1 messages · Page 1 of 1 (latest)

fringe compass
#

Hi, I want my Advanced Camera Card to get a red border and play a sound when it detects a person. I use a RLC-520A by Reolink and Advanced Camera Card from HACS. And I do have card mod installed as well.

fringe compass
bold ginkgo
#

i don't think you can play a sound through the dashboard like that unless you have a specific custom card i don't know about - you would need to make an automation to play the sound

late silo
#

For the border color, I figured this request would just require some simple card_mod but I could not figure out how to get it to work. It is a lot more complex than manipulating standard ha-card elements. As an alternative, I kinda got it to work by embedding the camera card inside a custom:button-card.

type: custom:button-card
styles:
  card:
    - outline: >-
        [[[ if (states['input_boolean.tester'].state == 'on') return '5px solid
        red' ]]]
    - padding: 0px
custom_fields:
  cam:
    card:
      type: custom:frigate-card
      cameras:
        - camera_entity: camera.demo_camera
```I'm still using the Frigate Card which is the predecessor to the Advanced Camera Card. Replace the input_boolean that I used with your person detected entity. This should work well with one camera but I don't know how well it will work with multiple cameras. You may have to apply some extra styling to get it to look the way you want. Also, I went with using `outline` instead of `border` because border messed with the size of the camera feed when active.
#

The sound, more than likely, would have to come from an automation. Not sure if HA can do it by itself. It might need some help from browser_mod.