How to correctly add resources?
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
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
~~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
Read this #260