Hacking the XiaomiFang Wifi camera

You can turn the image it self via the snx_isp_ctl module. But i guess you mean physical movement of the camera it self? Mine doesnt support this feature, but i read that there is a new version of the dafang hacks (a fork from Samtap) that supports this from within the UI.

1 Like

I couldnt find this fork. Can you please share the link?

Thanks.

1 Like

Did anyone succeed to use the camera as a device for TTS?

Lars

Hi @thawizard @AlmostSerious

Do you get a “second” lag on your stream on VLC? and alot of lag on Homeassistant via the ffmpeg component? How can I resolve this?

Do you mind sharing your camera settings?

Thanks.

Sorry to post this here, but I think this is probably the largest group around working with these cameras in HA, can someone take a look at this Dafang camera (Wyze cam v2) stops working basically my HA system stops talked to the camera after awhile and I don’t know why.

@lolouk44 Are you getting smooth stream on HA?

Is there a benefit to performing the hack and attempting to set it up in my HA? I just got the Pan version as a monitor for our new puppy. I would like to have it integrated in my HA setup, but it seems like there is a loss of functionality (no smooth stream). Is this correct? Or am I misunderstanding? I am on a RPi3, but I have a Synology that I could set it up with, if that matters

If you use rtsp stream with rpi as renderer via ffmpeg then forget about high quality smooth stream. If you use synology and just feed it into home assistant that might work. Or try Shinobi Pro. In general the PI is not strong enough to handle the workload.

it’s smooth-ish. My linux box is under stress as I use motion on both my DaFangs to process the video, record on motion, and stream to HA, plus I have an OpenALPR agent processing a 4MP CCTV and I also run HA, Plex and backup on that same box
My streams are about 10 sec behind “real” time, and give me about 5 frames / sec maybe, and every so often I get a green screen (which triggers motion recording :frowning: )
Apart from that it’s working well.
I’m quite a few versions back as I’ve not updated my cams in several months so maybe with the latest firmware/software it’ll be better. Not had the time to look into this yet…

oh right well I am having the same streaming quality as you and I am running HA on a rp2 b. My rp2 is not heavily loaded just for appdaemon and nodered.

Is it the raspberry you think? I am running the latest dafang software.

also depends on how much you have running on your wifi network and which resolution your cam runs at…

true my wifi speed is good. I wanted to know what is your camera resolution and settings please?

720p (not rooted the cam to enable 1080p) pretty much everything set to default

1 Like

OK great, I’ll try taking a look at hooking it up to my Synology. I can then feed it in with Zoneminder, right?

I see no reason why not.

Is there a reason to use Motion on your Linux box and not the motion detection of the Dafangs?

Mine just arrived last week and am I also figuring out which features to use from the cameras themselves versus which from Home Assistant or other things components like ZoneMinder or Shinobi.

Yes I use motion for motion detection AND recording and the recorded videos are then uploaded on Dropbox so I can access then anywhere.

guys can we integrate the dafang hacks to use with binary sensor ffmpeg noise platform? I tried it but it doesnt work for me.

Has anyone tried it?

Hi,

I have the xiaofang 1s with mac 34:CE working in Spain (i sent mail to xiaofang company that they unlocked camera) and works fine in mi home app (i don’t see message about only in china).

Now i would like to see by HA and in mi home app as online. I put the this firmware

https://github.com/samtap/fang-hacks

But now in app mi home, appears me as offline, but i can see image by rtsp.

There is any method to use all as yi ants smart cam?

thanks