2024.11: Slick dashboards and speedy cameras

Thanks, using reolink integration RTSP, and set to live the camera view in the picture card. Works like a charm.

Yes I know that. It is also clear that I could remove the default_config from the configuration.yaml and then add all integrations manually, but there must also be a way to exclude an integration - in this case go2rtc - from the default_config via configuration.yaml?

If I deactivate the WebRTC cloud connection, it doesn’t help. go2rtc is still loaded and even with Core 2024.11.1 it still causes errors.

Probably they are still there, but hidden!

Did you read the part about the imported cards section?

When the dashboard is converted to the new sections layout, you have to go to edit mode, en drag the cards out of the imported cards section .

Yes! Thanks for the tip! I have custom config, not default, so in this case it’s mandtory to add this line into config:

go2rtc:

After restart there’s no more delay. Perhaps this shoudl be pointed out more clearly…

1 Like

WebRTC custom card uses go2rtc app as streaming core.
Starting from 2024.11 - HA core uses same go2rtc app for build-in lovelace cards.
They both uses different binaries of same app. Same technology. Both can works simultaneously.

2 Likes

I found even better “system”: an old thread: user arturpragacz wrote an addon which does exactly what we need: exclude only what we don’t want to be loaded in default_config, rather to exclude all, then include wanted (and forget some…). i installed it and it seems that it works just fine.

1 Like

After updating to 2024.11 i deleted RTSP to WEBRTC because it is build in in this version.
However my camera streams are much slower than before ??
Someone else having this issue ?

Yeah I just tested exactly this. After removing the integration the videos had poor latency. I’m using reolink camera with reolink integration. It was bad with both RTSP and flv setting. Doing a restore now. I feel the inclusion of webrtc in 2024.11 needs more explanation than I can currently find.

2 Likes

I have the same setup, RTSP to WEBRTC with reolink integration.
Before the update it worked like a charm.
I restored already and it looks fine now.
I’ll wait for some news about this issue.

As you said it needs more explanation !!

1 Like

Removing default config and adding everything in except go2rtc is the way you exclude go2rtc. There is no other way.

OK, thanks for the info and it’s a shame that it doesn’t work. I was hoping that I could exclude certain things from the default_config: using configuration.yaml.

Something like:

default_config:
  exclude:
    go2rtc

You can. Read my post above!

Sorry, I should have been more precise. :slightly_smiling_face: I mean that you can do it directly under/with HA without having to install any additional custom integrations. I assumed that this is possible with the default_config: using exclude: just like with recorder:, logbook: etc.

@petro using pipUp from here: GitHub - rogro82/PiPup: Enhanced notifications for Android TV
Sent an rest command with an go2rtc link like this:

  - data:
      title: Ding Dong!
      message: Es steht jemand vor der Tür!
      width: 960
      height: 720
      duration: 60
      url: http://192.168.0.8:1984/stream.html?src=doorbell_main&mode=webrtc
    enabled: true
    action: rest_command.pipup_url_on_tv_wz

How can i archive this with the new integrated go2rtc version? (get the link)
Do i have to enable debug_ui?

PS.: i know that HA go2rtc port is 11984, but when changing this, it doesnt work.

Thank you

1 Like

That looks like it’s outside HA, so you don’t change anything.

It does not work because i have removed hacs webrtc (& go2rtc) in favour of HA’s native go2rtc.
Without the following, i cant access http:[HA_IP]:1984 or 11984:

go2rtc:
  debug_ui: true

the rest command is defined like this:

pipup_url_on_tv_wz:
  # Use with Webrtc camera as described here:
  # https://github.com/AlexxIT/WebRTC/wiki/Cast-or-share-camera-stream#html-page
  url: http://192.168.0.4:7979/notify
  content_type: 'application/json'
  verify_ssl: false
  method: 'post'
  timeout: 20
  payload: >
    {
      "duration": {{ duration | default(20) }},
      "position": {{ position | default(0) }},
      "title": "{{ title | default('') }}",
      "titleColor": "{{ titleColor | default('#50BFF2') }}",
      "titleSize": {{ titleSize | default(10) }},
      "message": "{{ message }}",
      "messageColor": "{{ messageColor | default('#fbf5f5') }}",
      "messageSize": {{ messageSize | default(14) }},
      "backgroundColor": "{{ backgroundColor | default('#0f0e0e') }}",
      "media": { 
        "web": {
          "uri": "{{ url }}", 
          "width": {{ width | default(640) }},
          "height": {{ height | default(480) }}
        }
      }
    }

And was called like this:

  - data:
      title: Ding Dong!
      message: Es steht jemand vor der Tür!
      width: 960
      height: 720
      duration: 60
      url: http://192.168.0.8:1984/stream.html?src=doorbell_main&mode=webrtc
    enabled: true
    action: rest_command.pipup_url_on_tv_wz

Also tried url http://192.168.0.8:11984/stream.html?src=doorbell_main&mode=webrtc
in browser, the stream also doesnt work when debug_ui is false.

I want to use HA’s native integration of go2rtc, so i dont have to mess around with the hacs webrtc camera & go2rtc.

How can i get an go2rtc link from HA’s native go2rtc with debug_ui disabled?

P.S.: when enabling debug_ui, and with the help of my magic mirror, which always starts an dashboard (with an stream), i can use the url http://192.168.0.8:11984/stream.html?src=camera.tuer_sub&mode=webrtc and it works. But if my MagicMirror (which shows an dashboard) is offline, that would’nt.

Please help, how i can get an link from HA for my automation.

thx

I’ve seen a feature request for this. Perhaps do a search and vote for it. The alternative (replacing the default config with what you need) is so simple that I personally don’t think the FR will ever be implemented.

The FR has been denied multiple times. The core team doesn’t want to support it largely because it may or may not actually exclude the integration. Integrations in HA will use other integrations if it’s a dependency. When this happens, the integration will load regardless if you have it via default_config for not. So excluding integrations isn’t really a thing.

2 Likes

Sorry, I don’t know enough bout that external lib to help.

Thats not an external lib.

I want to use the integrated go2rtc to generate an http webrtc link (as before with hacs addons). Just sending this link to an android TV app (pipUp) which displays the camera stream.

Now, that go2rtc is highly integrated into HA, which action/service do i have to call to get an http stream link, which i can use in my automations?

Ps.: For now i have installed go2rtc addon again and will use it alongside HA’s native, but running/maintaining the same process two times is not what i prefer.
But it works.