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!!!
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?
Hello,
I’ve got this card working with some of the examples here, but the images are way too big and the card is centered which makes it hard to use…Is there any code to shrink the size and/or make it shift towards the left?
Thanks
I can’t for the life of me get this card working. I’ve followed steps 1 and 2 (both manually and via HACS), now I’m stuck on step 3.
I’ve pasted the code below into the {} Raw Configuration Editor. When I do that, I see a new tab on my dashboard called Surveillance. When I go to that tab it tries to make the Card but I always get the error "Custom element doesn’t exist: surveillance-card"
- title: Surveillance
icon: mdi:cctv
panel: true
cards:
- type: custom:surveillance-card
thumb_interval: 15
update_interval: 2
recording_duration: 10
show_capture_buttons: true
cameras:
- entity: camera.front_porch
motion_entity: binary_sensor.front_porch_motion
- entity: camera.back_yard
motion_entity: binary_sensor.back_yard_motion
- entity: camera.driveway
I’m stuck too…did you ever get it working?
ui mode, add blank page, set to panel mode, add card, manual then paste this
type: custom:surveillance-card
thumb_interval: 15
update_interval: 2
recording_duration: 10
show_capture_buttons: true
focus_motion: true
cameras:
- entity: camera.drive_way
motion_entity: binary_sensor.drive_way_motion
name: Drive Way
- entity: camera.garden_camera_1
motion_entity: binary_sensor.garden_camera_1_motion
name: Garden 01
- entity: camera.front_door
motion_entity: binary_sensor.front_door_motion
change the motion entities to yours and camera to your ones
Is there a option or workaround to disable sound?
I have an employee I want to view the cameras, Just no access to sound.