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