šŸ“ŗ Lovelace: Camera Card

Same results with Chrome on iOS.

When I move from the main tab to my security tab one of the streams will automatically open. I can then swipe to the next stream. The security tab remains obscured by these streams.

Thatā€™s iOS behavior as I understand it. If there is a single video element on a page, it will full screen it. Try putting two cards on a page

Iā€™ve got two camera-cards and one generic on my security page. In Firefox, on the W10 machine, all three cameras appear. Active streams showing in the two camera-cards and a still image on the generic. Clicking on the generic still brings up the more-info card with the active stream playing. Clicking on the camera-card does nothing. Double-clicking on the generic gives me a full-screen playback. Double-clicking on the camera-card opens the full screen view, but doesnā€™t play.

On iOS with Safari only the generic appears on the page when you first open the tab. After a brief while (1 -2 sec) the camera-card stream appears full screen and Iā€™m able to swipe to the second stream. Chrome behaves similarly.

Chrome uses the same webkit as safari, so theoretically every browser on ios should perform similar. This also means that special chrome only features wonā€™t work on ios as it is basically just safari with a skin :stuck_out_tongue: (not exactly but simply put).

Nice i was looking for something like this! would be great if we could put sensors in it like a glance card.

That wonā€™t happen in this card. This was just a quick hack and is not the long-term solution. Iā€™ll likely be adding a stream option to all picture cards in lovelace in the future

3 Likes

Hi Ian,

works really good ,thanks. This one was missing from the cards :smiley:
Would be really nice to add entities linke in the picture-glance card, for example to pan / select presets from a button in the card.
Would it be possible to to add that?

Cheers!

I think something like that would be best done with a picture-elements card to start

Released version 1.2:

  • show more-info on click
1 Like

Hi Ian,

I mean a few ā€˜buttonsā€™ in the lower part of the camera-card, to select a few PTZ presets

This is a temporary card. Wonā€™t be around long and wonā€™t be adding a lot of features. Instead will be adding streams to picture cards

1 Like

Works fab with my Foscam cameras. Still trying to get my SV3C PoE RTSP IP cameras working in HA, but when they doā€¦ this will be great.

Will having say 7 windows updating be a massive drain? I am running on a Mac Mini with VM

:man_shrugging:

1 Like

Could you share me the config of the Foscam cams?
I have some but couldnā€™t find the URLs to make them work.
Thanks

Works perfectly with Axis Cameras. Thnx

Hi, this could be a solution for something iā€™m looking to achieve but iā€™m having problems with the card (sorry, iā€™m noob).
I copied the camera-card.js file to the www folder and linked it in resources but i get
Custom element doesnā€™t exist: camera-card
and in the logā€¦
http://192.168.x.xxx:8123/local/camera-card.js?v=1:7:1 Uncaught SyntaxError: Unexpected token

Have I missed something?

You likely copied the html version of the file and not the raw contents. Did you following the Troubleshooting steps listed at the bottom of the Readme?

Apologies, it started working after i refreshed. Thanks for you helpā€¦this looks good!

Just wanted to say this card is getting me very close to where I want to be in terms of making a very user friendly camera control frontend in lovelace. My ambition being to be able to press on an image or button and have the camera move to a preset PTZ position and then show the stream from that camera in full screen.

Is it possible to configure the size of the card to make them bigger?
And would you know of a way to determine which camera the card will stream from given certain conditions?

Awesome work BTW :slight_smile:

This card is awesome! Thank you for the time put into developing it and sharing it with us. It is exactly what I was looking forā€¦ but (did you see that coming :wink:)ā€¦ like some other custom cards it does not work on the Amazon Fire tablets with Fully Kiosk Browser - the best answer I could track down as a reason is the use of ā€œLitElementā€ and FireOS doesnā€™t have the latest web elements which FKB uses. (admittedly I donā€™t really understand the technical aspects of this).

It works with Chrome on Fire tablets.

Fire tablets are a great, inexpensive option for wall mounted panels which I believe a lot of the HASS community usesā€¦ and FKB works great in a lot of other areas for that purpose as well. It would be nice to figure out how to utilize this combination with all these fantastic custom cards being developed.

Has anybody else run into this with custom cards on Fire tablets with FKB or been able to get this camera_card to work with that combination?

Bonus question - Iā€™m not sure if my LitElement description of the problem is correctā€¦ if someone knows and could provide a clearer (worded) explanation that would be great.

Thanks in advance.