Fix cameras streaming:
First access the home assistant bash with:
docker exec -it homeassistant bash
Then try to find the component with:
find / -name "stream"
The result should be something like:
/usr/src/homeassistant/homeassistant/components/stream
Edit the file:
vi /usr/src/homeassistant/homeassistant/components/stream/__init__.py
Then comment the three lines:
# For RTSP streams, prefer TCP
if isinstance(stream_source, str) \
and stream_source[:7] == 'rtsp://' and not options:
options['rtsp_flags'] = 'prefer_tcp'Exit and restart hassio (not sure it is necessary ?)
Finally just add camera with either:
ffmpeg:
ffmpeg_bin: /usr/bin/ffmpeg
camera:
- platform: ffmpeg
name: Kitchen
input: "rtsp://192.168.0.171:554/onvif1"
- platform: onvif
name: Leaving room
host: 192.168.0.170
username: admin
password: XXXXXXXXX
Help with configuration files
Find text in configuration files
grep -c TEXT *.yaml
grep -c TEXT .storage/core*