Hello everybody,
I’m new to this community, I apologize if I’m wrong section.
I installed Home Assistant OS 2021.3.4 on my Raspberry Pi 3B+ and wanting to add an IP cam (SV3C cam), I tried to add the lines of code in the configuration.yaml:
camera:
- platform: generic
name: Camera1
stream_source: rtsp://admin:pw@camIP/stream0
still_image_url: http://admin:123456@camIP:10554/snapshot.cgi?user=admin&pwd=pw
I checked the rtsp link with VLC and it is correct.
Restarted Home Assistant but I have a notification “Invalid config”:
The following integrations and platforms could not be set up (Camera).
Error during setup of component camera
0:31:12 – util/json.py (ERROR)
Could not parse JSON content: /config/.storage/camera
0:31:11 – util/json.py (ERROR)
Below is the complete log:
Logger: homeassistant.util.json
Source: util/json.py:32
First occurred: 0:31:11 (1 occurrences)
Last logged: 0:31:11
Could not parse JSON content: /config/.storage/camera
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/util/json.py", line 32, in load_json
return json.loads(fdesc.read()) # type: ignore
File "/usr/local/lib/python3.8/json/__init__.py", line 357, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python3.8/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/lib/python3.8/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
I would be grateful if anyone would be able to help me.
Thanks.