After a painless setup of esp32cam using Arduino IDE the camera web server is all normal and I can start a stream, get a still, etc, etc.
However on trying to add to my 0.91.0 install of HA (on a QNAP Docker) with config set as a Generic IP Camera I added this to my config:
camera:
- platform: generic
name: esp32Cam2
stream_source: http://192.168.1.189:81/stream
still_image_url: http://192.168.1.189:81/
And on restarting I get the below
2019-04-07 00:30:46 INFO (MainThread) [homeassistant.components.stream] Started stream: http://X.X.X.X:81/stream
Exception in thread stream_worker:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/threading.py", line 917, in _bootstrap_inner
self.run()
File "/usr/local/lib/python3.7/threading.py", line 865, in run
self._target(*self._args, **self._kwargs)
File "/usr/src/app/homeassistant/components/stream/worker.py", line 53, in stream_worker
container = av.open(stream.source, options=stream.options)
File "av/container/core.pyx", line 275, in av.container.core.open
File "av/container/core.pyx", line 227, in av.container.core.Container.__cinit__
File "av/container/core.pyx", line 129, in av.container.core.ContainerProxy.__init__
File "av/container/core.pyx", line 195, in av.container.core.ContainerProxy.err_check
File "av/utils.pyx", line 105, in av.utils.err_check
av.AVError: [Errno 1094995529] Invalid data found when processing input: 'http://X.X.X.X:81/stream'
The still image and stream never appear.
Has anyone else had a problem with this?
Am I using the right URL’s?
PS: /dev/state shows the entity ID like this:
Entity: camera.esp32cam2
State: idle
Attributes:
access_token: dea245f6e549b38dbf8b5e7bb63080cc2caec1583ca1201334a6bf233e0ebca3
friendly_name: esp32Cam2
entity_picture: /api/camera_proxy/camera.esp32cam2?
token=dea245f6e549b38dbf8b5e7bb63080cc2caec1583ca1201334a6bf233e0ebca3
supported_features: 2
Cheers!