bramkragten / swipe-card

Card that allows you to swipe throught multiple cards for Home Assistant Lovelace
261 stars 35 forks source link

Please add support for "picture-glance" type (sec.cam.video) #71

Closed banditto9 closed 1 year ago

banditto9 commented 1 year ago

Hello and many thanks for the wonderful swipe-card. I like it a lot and it suits well for a wall-panel setups. Unfortunately, it seems that a standard HA "picture-glance" type is not supported - it says "invalid configuration", other cards like entity ones are ok. Can you please consider a possibility to add support for a card of this type? It would be great to have a swipe-enabled picture preview cards from CCTV cameras on the wall panels. Thank you for your time and support!

antonio1475 commented 1 year ago

I'm using picture glance and it works okay

type: custom:swipe-card
cards:
  - type: 'custom:button-card' 
    template:
      - custom_card_room_8
      - yellow_on
    name: Entrada
    entity: light.entrada
    icon: mdi:door-closed

  - type: picture-glance
    camera_view: live
    entities: []
    camera_image: camera.entrada_hd
    aspect_ratio: '1'
    card_mod:
      style: |
        div.box {display:none; }
banditto9 commented 1 year ago

@antonio1475 many thanks for your note! works like a charm now - seems to be some update has been done or I was not very careful with the tabulation in the past.. Looks very nice together with buttons in the bottom part (I use manual lights on/off and a manual screenshot) and I do highly recommend this from my side, especially for a space-limited screens like wallpanels.