Code examples for "Surveillance Card"?

Tags: #<Tag:0x00007f326547b528>

Hi all, does anyone have any sample code of this custom card working? I can’t for the life of me get any configuration of this to work. Installed using HACS, it shows up in the resources. Sample code would be great!

here is my current code, and I get “You need to define cameras”

type: 'custom:surveillance-card'
views:
  - title: Surveillance
    icon: mdi:cctv
    panel: true
    cards:
      - type: custom:surveillance-card
        thumb_interval: 15
        update_interval: 2
        cameras:
          - entity: camera.hallway

I think you just need to get rid of the first line.

hmm, thought I tried that. I’ll try again in a clean config. Thanks for the help!

Yup, when I take that out it gives a new error of “no card type found”. This one has got me good! It shows up in resources, no issues there.

This code tries and pulls the entity and does get the correct name, but broken image, no actual stream. Confirmed cam is working on another dashboard.

views:
title: Surveillance
icon: mdi:cctv
panel: true
cards:
type: custom:surveillance-card
thumb_interval: 15
update_interval: 2
cameras:
  - entity: camera.hallway

Adding some activity to this thread. Anyone have any working code on the surveillance card they can share with me as an example?? Thank you!!! :slight_smile:

Here is what I use:

views:
  - title: Surveillance
    icon: mdi:cctv
    panel: true
    cards:
      - type: custom:surveillance-card #https://github.com/custom-cards/surveillance-card
        thumb_interval: 15 #update in sec. 0.5 is min.
        update_interval: 2 #update main image in sec. 0.5 is min
        focus_motion: true #switch to camera when motion detected
        cameras:
          - entity: camera.camera1
            motion_entity: binary_sensor.test_sensor
          - entity: camera.camera2
            motion_entity: binary_sensor.test_sensor
          - entity: camera.camera3

has anyone got this working from the examples here, I’m well and truly stuck with this

type: ‘custom:surveillance-card’
cameras:

  • entity: camera.side
    motion_entity: binary_sensor.side_light_motion
  • entity: camera.front_door
    motion_entity: binary_sensor.front_door_motion
    views:
  • title: Surveillance
    icon: ‘mdi:cctv’
    panel: true
    cards:
    thumb_interval: 15
    update_interval: 2
    recording_duration: 10
    show_capture_buttons: true Blockquote

I get an auto download if JPEGS not video stream though

Hi guys, I’ve tried just now and all works fine. I get an image on my desktop when pushing one of those two rings on the stream’s image.
Here is my configuration:

type: 'custom:surveillance-card'
views: null
title: Surveillance
icon: 'mdi:cctv'
panel: true
cards:
  - type: 'custom:surveillance-card'
    thumb_interval: 15
    update_interval: 2
    focus_motion: true
cameras:
  - entity: camera.husky_eye
    motion_entity: binary_sensor.husky_eye_motion_trigger

I’m wondering if it’s possible to customize those rings to show an icon or a text on hover.
Anyone can help?