AlexxIT / WebRTC

Home Assistant custom component for real-time viewing of almost any camera stream using WebRTC and other technologies.
https://github.com/AlexxIT/Blog
MIT License
1.5k stars 177 forks source link

Custom element doesn't exist: webrtc-camera #697

Closed Scoff123 closed 5 months ago

Scoff123 commented 5 months ago

Since updating HA Core to 2024.5.1 , I have started to see the message 'Custom element doesn't exist: webrtc-camera' when trying to play a camera stream on the dashboard on my Android Companion app. This has been working perfectly for months with my current setup, and still works correctly when viewing the camera stream on my dashboard on a web browser on PC or laptop. I enabled debug logging on the WebRTC integration, but the only error messages that are logged are:

2024-05-06 22:00:17.490 WARNING (ImportExecutor_0) [homeassistant.helpers.typing] HomeAssistantType was used from webrtc, this is a deprecated alias which will be removed in HA Core 2025.5. Use homeassistant.core.HomeAssistant instead, please report it to the author of the 'webrtc' custom integration
2024-05-06 22:00:17.492 WARNING (ImportExecutor_0) [homeassistant.helpers.typing] ServiceCallType was used from webrtc, this is a deprecated alias which will be removed in HA Core 2025.5. Use homeassistant.core.ServiceCall instead, please report it to the author of the 'webrtc' custom integration

I am using the following card configuration on my dashboard:

type: picture-entity
entity: camera.front_doorbell_sub
name: Front Door
show_name: true
show_state: false
tap_action:
  action: fire-dom-event
  browser_mod:
    service: browser_mod.popup
    data:
      title: Front Door
      timeout: 60000
      card_mod:
        style: |
          @media screen and (min-width: 1100px) {
            ha-dialog {
              --mdc-dialog-min-width: 1000px !important;
              --mdc-dialog-max-width: 1000px !important;
            }
          .content {
            width: auto !important;
          }
      content:
        type: custom:webrtc-camera
        mode: webrtc
        url: FrontDoorBell_sub
        style: ".mode {display: none}"

I have read through https://github.com/AlexxIT/WebRTC/issues/260 however it doesn't apply to my scenario, as I have been using this same setup for some time.

milanov8 commented 5 months ago

I did it visa verca from this solution: https://github.com/AlexxIT/WebRTC/issues/260#issuecomment-1537094770 removed the " v= " from "v=v3.5.2" and it worked for me.

Scoff123 commented 5 months ago

I've tested, and yes, that has worked. Thanks for letting me know 👍

thekiwismarthome commented 1 week ago

that worked for me as well