Problem with yi camera (image not available)

hi
I have a xiaomi yi camera , Yi Home 27US

I did everything according to the guide in HA site: https://www.home-assistant.io/components/camera.yi/

I enabled the platform,By adding the following lines to yourconfiguration.yaml file:

camera:

  • platform: yi
    name: Camera
    host: ‘192.168.1.100’
    password: my_password

in the Overview TAB i get the messege:
"Camera(Image not available)

Just note that I installed on the camera the ALTERNATIVE FIRMWARE

Can something help / understand why it does not work?

TNKS

Someone has experience with the connection of this camera to HA?

You found any solution? I’m in the same boat!

no :frowning: :frowning: :frowning:
baasa

I fix it! on my case was that I have the latest firmware installed and on the documentation clearly said that the latest firmware supported is ‘version 0.1.4-beta2’ I have 0.1.5

Make sure that you have ffmpeg installed on your raspberry pi
$ sudo apt-get install ffmpeg

The problem with the latest firmware is that is using pure-ftpd has default! (https://github.com/shadow-1/yi-hack-v3/issues/129)

In order to fix it you need to access your camera through ftp

  • Open up /home/yi-hack-v3/script/system.sh in a text editor (via FTP, SSH, etc.).
  • Comment out line 36 (i.e., pure-ftpd -B).
  • One line above or below, add in the original command: tcpsvd -vE 0.0.0.0 21 ftpd -w &
  • Reboot the camera.

your system.sh on the camera should look like this:
#!/bin/sh

CONF_FILE="/yi-hack-v3/etc/system.conf"

if [ -d "/usr/yi-hack-v3" ]; then
        YI_HACK_V3_PREFIX="/usr"
elif [ -d "/home/yi-hack-v3" ]; then
        YI_HACK_V3_PREFIX="/home"
fi

get_config()
{
        key=$1
        grep $1 $YI_HACK_V3_PREFIX$CONF_FILE | cut -d "=" -f2
}

if [ -d "/usr/yi-hack-v3" ]; then
	export LD_LIBRARY_PATH=/home/libusr:$LD_LIBRARY_PATH:/usr/yi-hack-v3/lib:/home/hd1/yi-hack-v3/lib
	export PATH=$PATH:/usr/yi-hack-v3/bin:/usr/yi-hack-v3/sbin:/home/hd1/yi-hack-v3/bin:/home/hd1/yi-hack-v3/sbin
elif [ -d "/home/yi-hack-v3" ]; then
	export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/lib:/home/yi-hack-v3/lib:/tmp/sd/yi-hack-v3/lib
	export PATH=$PATH:/home/base/tools:/home/yi-hack-v3/bin:/home/yi-hack-v3/sbin:/tmp/sd/yi-hack-v3/bin:/tmp/sd/yi-hack-v3/sbin
fi

hostname -F $YI_HACK_V3_PREFIX/yi-hack-v3/etc/hostname

if [[ $(get_config HTTPD) == "yes" ]] ; then
	lwsws -D
fi

if [[ $(get_config TELNETD) == "yes" ]] ; then
	telnetd
fi

if [[ $(get_config FTPD) == "yes" ]] ; then
	# pure-ftpd -B
  tcpsvd -vE 0.0.0.0 21 ftpd -w &
fi

if [[ $(get_config DROPBEAR) == "yes" ]] ; then
        dropbear -R
fi

if [ -f "/tmp/sd/yi-hack-v3/startup.sh" ]; then
	/tmp/sd/yi-hack-v3/startup.sh
elif [ -f "/home/hd1/yi-hack-v3/startup.sh" ]; then
	/home/hd1/yi-hack-v3/startup.sh
fi

Then Restart your camera, and voila! you should see the image. Note that he feed is not live, is only showing the latest clip recorded with the camera. I think in order to show the live feed you need rstp server, and yi-hack-v3 doesn’t support it yet!

Hope this work for you

1 Like

The problem is that I have the Yi Home 27US model
This model is not supported in yi-hack-v3 version 0.1.4-beta2