AlexxIT / go2rtc

Ultimate camera streaming application with support RTSP, RTMP, HTTP-FLV, WebRTC, MSE, HLS, MP4, MJPEG, HomeKit, FFmpeg, etc.
https://github.com/AlexxIT/Blog
MIT License
7.06k stars 505 forks source link

hass protocol not working after 2024.11 #1468

Open bradyemerson opened 6 days ago

bradyemerson commented 6 days ago

I'm no longer able to retrieve camera feeds via the hass:// protocol after updating Home Assistant to 2024.11. In this version they did significant refactoring of the Camera entity

I believe the issue is that the websocket call to exchange SDP changed from "type": "camera/web_rtc_offer" to "type": "camera/webrtc/offer". New implementation: https://github.com/home-assistant/core/commit/675ee8e813c1da3046d1b688180d61873558501d#diff-1afc12e5bc3856abf6faf0dd854e4eb89e0c42de2320f910c4c97071522aa5baR202 (Edit: for some reason the deep links aren't working. File is homeassistant/components/camera/webrtc.py, line 202)

Example of the change in a test: https://github.com/home-assistant/core/commit/675ee8e813c1da3046d1b688180d61873558501d#diff-5d8717c7e858fd3693aa909ef8a5fb6c31aa503ae7578ceee2844e28e1428870R611 (Edit: File is tests/components/nest/test_camera.py, line 611)

I have not tested this, but I think the change would be here: https://github.com/AlexxIT/go2rtc/blob/25145f72e56560666e6718740442d16a8c5127bb/pkg/hass/api.go#L59