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.55k stars 183 forks source link

Doesn't work after homeassistant upgraded to 2024.10 #753

Closed Nicolaith closed 1 month ago

Nicolaith commented 1 month ago

go2rts installed as a homeassistant's integration

processes:

$ ps -ef --forest
...
hass      956031       1  2 08:14 ?        00:11:37 /media/hass/bin/python3 /var/lib/hass/bin/hass -c /var/lib/hass/.homeassistant
hass     2061758  956031 99 15:48 ?        00:00:00  \\_ /var/lib/hass/.homeassistant/go2rtc-1.8.4
...

port closed:

$ nmap 127.0.0.1 -p 1984
Starting Nmap 7.94SVN ( https://nmap.org ) at 2024-10-05 08:15 +04
Nmap scan report for localhost (127.0.0.1)
Host is up (0.00021s latency).

PORT     STATE  SERVICE
1984/tcp closed bigbrother

homeassistant's log:

Detected that custom integration 'webrtc' calls hass.http.register_static_path which is deprecated because it does blocking I/O in the event loop, instead call `await hass.http.async_register_static_paths([StaticPathConfig("/webrtc/video-rtc.js", "/var/lib/hass/.homeassistant/custom_components/webrtc/www/video-rtc.js", True)])`; This function will be removed in 2025.7 at custom_components/webrtc/__init__.py, line 67: hass.http.register_static_path("/webrtc/" + name, str(path / name)), please create a bug report at https://github.com/AlexxIT/WebRTC/issues
AlexxIT commented 1 month ago

Looks like you using venv. Maybe problem related with this.

Nicolaith commented 1 month ago

Yes, I do. And yes, it seems that something changed in homesssistant, because when I start it not from systemd unit anything works fine. Thank you.