Hello,
I have one of the following cameras:
https://www.gearbest.com/ip-cameras/pp_193393.html
I have been trying to configure it with the new Xiaomi Cameras component.
I have the following code in my configuration.yaml:
camera:
- platform: xiaomi
name: Lounge Camera
host: '192.168.XX.XX'
model: 'yi'
password: mypassword
Naturally, I have checked and the IP address and it is correct. My username to log in to the camera is “root” so it is not defined here (default for the component is root) I can actually connect to FTP without password. I have installed the following firmware on my camera: fritz-smh firmware, as indicated on the component page.
I am using a raspberry pi running hassio 0.72.1. I have not installed any other components related to this. I am getting erros such as follows:
Unable to find path: /media/mmcblk0p1/record - 550 Error
7:03 PM components/camera/xiaomi.py (ERROR)
and:
FFmpeg fails all args must be str or bytes
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/haffmpeg/core.py", line 114, in open
stderr=stderr
File "/usr/lib/python3.6/asyncio/subprocess.py", line 225, in create_subprocess_exec
stderr=stderr, **kwds)
File "uvloop/loop.pyx", line 2533, in subprocess_exec
File "uvloop/loop.pyx", line 2493, in __subprocess_run
File "uvloop/handles/process.pyx", line 580, in uvloop.loop.UVProcessTransport.new
File "uvloop/handles/process.pyx", line 49, in uvloop.loop.UVProcess._init
File "uvloop/handles/process.pyx", line 38, in uvloop.loop.UVProcess._init
File "uvloop/handles/process.pyx", line 237, in uvloop.loop.UVProcess._init_options
File "uvloop/handles/process.pyx", line 280, in uvloop.loop.UVProcess._init_args
TypeError: all args must be str or bytes
7:03 PM /usr/lib/python3.6/site-packages/haffmpeg/core.py (ERROR)
I have not installed any dependencies as I am not aware there are any. I am a bit unsure if I have installed the right firmware as I cannot find the version number of the firmware that I’ve installed on the camera. It was just the latest on the page (but is obviously fairly old as the camera is relatively old and there has not been a commit for about 2 years).
Can anyone advise on what I might have done wrong?
Thanks,
James