Yi vs xiaomi camera component

Hi,

I saw there is now 2 components for the Yi Camera :

  • Yi Home
  • Xiaomi

For me it seems to be the same thing for my 27US. Which one is the best ? Is there some difference i have not seen ?

Thanks

I noticed it this morning. My 2 Yi cameras have stopped working since the 0.72.0 update this morning so have just tried the Xiaomi settings on my Yi 47US cameras without success. Rolling it back now.

Have managed to get 1 camera showing again briefly (now gone again) but not the other. Rebooted both my Pi and both cameras via their web interface. Get this error in the logs

Error while fetching video: Waiting for ('200',) but got 250 [' Operation successful']

OK - fixed it. Found PR 14944 which changes the FFMPEG argument. Changed mine from

ffmpeg_arguments: ‘-vf scale=800:450’
to
ffmpeg_arguments: -s 800x450

And that fixed my issue.

Hopefully the dev @bachya will get the docs updated to show the change.

FYI, that PR does nothing to change the underlying FFMPEG calls, so the original arguments should work fine.

Hello Aaron,

Not sure what’s happening then as my Yi cameras work on a restart for a few minutes then throw the following error

Error while fetching video: Waiting for ('200',) but got 421 [' Timeout']

Might need to raise an issue on this one as they worked fine before 0.72.0

After review, seeing the same: getting lots of BrokenPipeError exceptions in the logs. Bug and PR submitted for 0.72.1.

1 Like

Another quick follow up: I’ve merged the fix in for 0.72.1, but in the meantime, you can always copy the upcoming fixes into <CONFIG_DIR>/custom_components/camera/yi.py.

1 Like

Customer component has sorted it for me :grinning:

1 Like

hmm well, I dont see this working - I get a picture into hass but the video component always ends in not available … I see that there is an ftp call but no stream becomes available …

I got 2 cams with 0.1.4b2 and 0.1.5 with the changes ftp configuration for testing and both behave the same

2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] 220 Operation successful
2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] USER root
2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] 220 Operation successful
2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] USER root
2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] 331 Please specify password
2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] PASS p4ssw0rd
2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] 331 Please specify password
2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] PASS p4ssw0rd
2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] 230 Operation successful
2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] CWD /tmp/sd/record
2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] 230 Operation successful
2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] CWD /tmp/sd/record
2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] 250 Operation successful
2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] TYPE I
2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] 250 Operation successful
2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] TYPE I
2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] 200 Operation successful
2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] EPSV
2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] 200 Operation successful
2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] EPSV
2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] 229 EPSV ok (|||35144|)
2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] 229 EPSV ok (|||46696|)
2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] MLSD
2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] MLSD
2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] 500 Unknown command
2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] TYPE I
2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] 500 Unknown command
2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] TYPE I
2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] 200 Operation successful
2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] EPSV
2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] 200 Operation successful
2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] EPSV
2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] 229 EPSV ok (|||52581|)
2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] 229 EPSV ok (|||39888|)
2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] LIST
2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] LIST
2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] 150 Directory listing
2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] 150 Directory listing
2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] 226 Operation successful
2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] CWD 2018Y06M30D21H
2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] 250 Operation successful
2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] TYPE I
2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] 200 Operation successful
2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] EPSV
2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] 229 EPSV ok (|||34607|)
2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] MLSD
2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] 226 Operation successful
2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] CWD 2018Y06M30D21H
2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] 250 Operation successful
2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] TYPE I
2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] 500 Unknown command
2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] TYPE I
2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] 200 Operation successful
2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] EPSV
2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] 200 Operation successful
2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] EPSV
2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] 229 EPSV ok (|||37186|)
2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] 229 EPSV ok (|||59277|)
2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] LIST
2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] MLSD
2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] 500 Unknown command
2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] TYPE I
2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] 150 Directory listing
2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] 226 Operation successful
2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] QUIT
2018-06-30 22:46:12 INFO (MainThread) [aioftp.client] 221 Operation successful
2018-06-30 22:46:13 INFO (MainThread) [aioftp.client] 200 Operation successful
2018-06-30 22:46:13 INFO (MainThread) [aioftp.client] EPSV
2018-06-30 22:46:13 INFO (MainThread) [aioftp.client] 229 EPSV ok (|||48676|)
2018-06-30 22:46:13 INFO (MainThread) [aioftp.client] LIST
2018-06-30 22:46:13 INFO (MainThread) [aioftp.client] 150 Directory listing
2018-06-30 22:46:13 INFO (MainThread) [aioftp.client] 226 Operation successful
2018-06-30 22:46:13 INFO (MainThread) [aioftp.client] QUIT
2018-06-30 22:46:13 INFO (MainThread) [aioftp.client] 221 Operation successful
2018-06-30 22:46:14 INFO (MainThread) [aioftp.client] 220 Operation successful
2018-06-30 22:46:14 INFO (MainThread) [aioftp.client] USER root
2018-06-30 22:46:14 INFO (MainThread) [aioftp.client] 331 Please specify password
2018-06-30 22:46:14 INFO (MainThread) [aioftp.client] PASS p4ssw0rd
2018-06-30 22:46:14 INFO (MainThread) [aioftp.client] 220 Operation successful
2018-06-30 22:46:14 INFO (MainThread) [aioftp.client] USER root
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] 331 Please specify password
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] PASS p4ssw0rd
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] 230 Operation successful
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] CWD /tmp/sd/record
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] 250 Operation successful
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] TYPE I
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] 230 Operation successful
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] CWD /tmp/sd/record
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] 200 Operation successful
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] EPSV
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] 229 EPSV ok (|||40145|)
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] MLSD
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] 500 Unknown command
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] TYPE I
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] 250 Operation successful
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] TYPE I
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] 200 Operation successful
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] EPSV
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] 200 Operation successful
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] EPSV
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] 229 EPSV ok (|||48221|)
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] 229 EPSV ok (|||51084|)
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] MLSD
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] LIST
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] 500 Unknown command
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] TYPE I
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] 200 Operation successful
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] EPSV
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] 150 Directory listing
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] 229 EPSV ok (|||49287|)
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] LIST
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] 150 Directory listing
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] 226 Operation successful
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] CWD 2018Y06M30D21H
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] 226 Operation successful
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] CWD 2018Y06M30D21H
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] 250 Operation successful
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] TYPE I
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] 250 Operation successful
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] TYPE I
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] 200 Operation successful
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] EPSV
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] 200 Operation successful
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] EPSV
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] 229 EPSV ok (|||37459|)
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] 229 EPSV ok (|||53870|)
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] MLSD
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] MLSD
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] 500 Unknown command
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] TYPE I
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] 500 Unknown command
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] TYPE I
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] 200 Operation successful
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] EPSV
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] 200 Operation successful
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] EPSV
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] 229 EPSV ok (|||53438|)
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] LIST
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] 229 EPSV ok (|||41027|)
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] LIST
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] 150 Directory listing
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] 150 Directory listing
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] 226 Operation successful
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] QUIT
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] 221 Operation successful
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] 226 Operation successful
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] QUIT
2018-06-30 22:46:15 INFO (MainThread) [aioftp.client] 221 Operation successful
2018-06-30 22:46:15 INFO (MainThread) [homeassistant.components.http.view] Serving /api/camera_proxy_stream/camera.yi_nursery to 192.168.1.10 (auth: False)

not sure what the issue is to be honest …

ffmpeg version 3.3.4-2

Well turns out the recorded stream works on the iOS app but not in Safari iOS or OSX … havent tested other browsers yet …

Guys, I’m getting this error with 47US.

Error while fetching video: Waiting for (‘2xx’,) but got 550 [’ Error’]

Any help? tks