WebRTC icon indicating copy to clipboard operation
WebRTC copied to clipboard

How to correctly add resources?

Open Klagio opened this issue 3 years ago • 2 comments

I have the file ui-lovelace.yaml

How to add resources? Like below?


  - url: /custom_components/webrtc/www/webrtc-camera.js
    type: module

my HACS installation installed webrtc-camera.js under

X:\custom_components\webrtc\www

but I receive custom element doesn't exist error

this my lovelace configuration


      - id: 7c608881aeasdds7f4f8198e0953dc7asdasdf83541  # Automatically created id
        type: custom:webrtc-camera
        url: rtsp://admin:[email protected]:554/Streaming/Channels/101

Klagio avatar Nov 02 '21 08:11 Klagio

HACS - Integrations - Explore and download repositories - search webrtc - install master branch restart home assistant and check you have the webrtc card on HACS integrations Configuration - Integrations - add integration - search webrtc - install Restart, the card webrtc should show in integration (main home assistant) Edit dashboard - click on the 3 dots menu on the top right, make sure the webrtc resources are installed in resources menu Back to edit dashboard - add card - at the bottom you should have the webrtc card where you set the name and rtsp feed

dandanarsk avatar Dec 12 '21 15:12 dandanarsk

~~I'm also struggling with this, every item apart from the list above is OK apart from the last - there's no webrtc card when adding a card to the dashboard~~

Clearing the browser cache fixed this

jamestowers avatar Jan 06 '22 08:01 jamestowers

Read this #260

AlexxIT avatar Jan 02 '23 12:01 AlexxIT