dermotduffy / frigate-hass-card

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

Helping to set up the config of my cards. #416

Closed Tuurkevg closed 2 years ago

Tuurkevg commented 2 years ago

I want to make an frigate card with an submenus for all my camera's in 1 card. I have multiple errors while setting it up. Can someone give me an example of his config card I followed the example on the readme page but it isn't working

`type: custom:frigate-card
cameras:
  - camera_entity: camera.cam0_2
  - camera_entity: camera.cam1_2
  - camera_entity: camera.cam2_2
  - camera_entity: camera.cam3
frigate:
  mode: above
  buttons:
    cameras: true
    image: true
    live: true
    frigate: true
    frigate_ui: true
elements:
  - type: custom:frigate-card-menu-state-icon
    entity: switch.gate_relay_0
    tap_action:
      action: toggle
view:
  default: live
  timeout: '30'
live:
  auto_unmute: true
  lazy_load: true
  provider: frigate
  preload: true
event_viewer:
  auto_unmute: true
  controls:
    next_previous:
      style: thumbnails
    thumbnails:
      mode: below
  lazy_load: true
  autoplay_clip: true
image:
  src: >-
    https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fimages.gludy.com%2Fphotos%2F0%2FAnonymous-wallpaper_950.jpg&f=1&nofb=1
dimensions:
  aspect_ratio_mode: dynamic
`

image

NickM-27 commented 2 years ago

Are you using the RC version (3.0.0)? That feature hasn't hit stable yet

Tuurkevg commented 2 years ago

Are you using the RC version (3.0.0)? That feature hasn't hit stable yet

I did it with both, Beta and also the stable release

image The picture in in dutch but you can see the version

NickM-27 commented 2 years ago

Did you use the yaml or GUI to set it up? You also might need to hard clear cache (ctrl + F5) as after updating sometimes it gets stale data

Tuurkevg commented 2 years ago

Did you use the yaml or GUI to set it up? You also might need to hard clear cache (ctrl + F5) as after updating sometimes it gets stale data

I used the yaml to configure because the GUI doesn't give me the choice to have multiple camera entitys in 1 card

NickM-27 commented 2 years ago

The GUI does give that choice and also has an automatic conversion wizard that converts to the new version. Odds are that you needed to hard refresh to get the configuration to update.

Screen Shot 2022-02-26 at 6 48 08 AM
Tuurkevg commented 2 years ago

How can i do that? Do i need to update back to update 3.0?

NickM-27 commented 2 years ago

Yes, this is only in 3.0. Then go to your HASS and hard refresh the browser (ctrl + F5) or (command + shift + R) depending on computer. It should then show up as you would expect.

Tuurkevg commented 2 years ago

Alright thankyou! It is working. image

NickM-27 commented 2 years ago

Awesome!

dermotduffy commented 2 years ago

Thanks for helping @NickM-27 !