# Xiaomi Fang doorbel cam to tv

**URL:** <https://community.homey.app/t/xiaomi-fang-doorbel-cam-to-tv/2972>\
**Category:** Ideas & Suggestions\
**Created:** [October 18, 2018, 2:41pm UTC](https://community.homey.app/t/xiaomi-fang-doorbel-cam-to-tv/2972 "2018-10-18T14:41:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gijsje](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gijsje/32/3246_2.png) [@Gijsje](https://community.homey.app/u/Gijsje)\
**Post date:** [October 18, 2018, 2:41pm UTC](https://community.homey.app/t/xiaomi-fang-doorbel-cam-to-tv/2972/1 "2018-10-18T14:41:10Z")

</div>

I am very pleased that it work.  
Did take some time to get it working and figure out how to do it.

it started a few weeks ago and installed the Xiaomi Fang camera at the front door with the fang hack.

 ![14](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/4/4f789bef3d56ea5237fd022e58f2ff2134c0ca8d.jpeg)  
I was able to sent a picture to the phone when the bell was pressed.

For the camera to work not only with the rtsp stream but also with image.jpg i needed a different hack.

> **[fanghacks\_v0.2.0jpg.zip](https://drive.google.com/file/d/0B46sxK2orIewQzlSR042RWwzZGM/view)**
>
> Google Drive file.

  
Some french info about this one [http://domo-attitude.fr/camera-xiaomi-xiaofang-flux-jpg-domoticz-jeedom/](http://domo-attitude.fr/camera-xiaomi-xiaofang-flux-jpg-domoticz-jeedom/)

But i did not want to look on the phone when watching the tv.  
I already have a chrome cast on the Onkyo receiver and a LG tv.

I have created 3 flows to get it working.  
1e one is just for the doorbell itself to send a picture

 ![deurbel-1](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/f/fa79e812aa79dede3b4a547b5d930ca11074211c.jpeg)

Here the picture is send.

 ![deurbel-3](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/0/07bee846f99ce0f68d8404a366ea4c7c04885bfe.png)

I made (copied) a HTML page where image.jpg is refreshed every second or so and i stream this to the chrome cast.

```
<script type="text/javascript">
// <![CDATA[
var refreshrate = 1; // seconds between refresh
var image = "http://192.168.178.121/image.jpg"; // image name
var imgwidth = 1280; // image width
var imgheight = 720; // image height
var imgalt = "WebCam Image";
var imgtitle = "header=[WebCam Image] body=[WebCam Image Automatically Updated Every 30 Seconds] ";
function refresh() { document.images["pic"].src = image + "?" + new Date(); setTimeout('refresh()', refreshrate ); }
document.write('<img src="' + image + '" alt="' + imgalt + '" title="' + imgtitle + '" name="pic" id="pic" width="' + imgwidth + '" height="' + imgheight + '" style="border: none;" />');
if(document.images)window.onload=refresh;
// ]]>
</script>

```

And the flow for the camera to tv

 ![deurbel-2](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/e/e7f43330d8e069b0c33140f4a69c72f757fc2c3f.jpeg)

Here is a video how it looks like 🙂

---

<div class="post-metadata">

**Author:** ![Fire69](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fire69/32/8758_2.png) [@Fire69](https://community.homey.app/u/Fire69)\
**Post date:** [October 18, 2018, 5:07pm UTC](https://community.homey.app/t/xiaomi-fang-doorbel-cam-to-tv/2972/2 "2018-10-18T17:07:44Z")

</div>

Little bit off topic, but what button is that? 🙂

---

<div class="post-metadata">

**Author:** ![TedTolboom](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tedtolboom/32/12081_2.png) [@TedTolboom](https://community.homey.app/u/TedTolboom)\
**Post date:** [October 18, 2018, 5:13pm UTC](https://community.homey.app/t/xiaomi-fang-doorbel-cam-to-tv/2972/3 "2018-10-18T17:13:43Z")

</div>

Xiaomi wireless remote switch… of course… 😁

---

<div class="post-metadata">

**Author:** ![Fire69](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fire69/32/8758_2.png) [@Fire69](https://community.homey.app/u/Fire69)\
**Post date:** [October 18, 2018, 5:15pm UTC](https://community.homey.app/t/xiaomi-fang-doorbel-cam-to-tv/2972/4 "2018-10-18T17:15:34Z")

</div>

Can it be used outside? I’m desperately looking for a doorbell-button that has a better range than 433Mhz… ☹

---

<div class="post-metadata">

**Author:** ![TedTolboom](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tedtolboom/32/12081_2.png) [@TedTolboom](https://community.homey.app/u/TedTolboom)\
**Post date:** [October 18, 2018, 5:46pm UTC](https://community.homey.app/t/xiaomi-fang-doorbel-cam-to-tv/2972/5 "2018-10-18T17:46:01Z")

</div>

It’s not designed for outdoor usage… but with a soldering iron, you should be able to connect a normal door button to it…

---

<div class="post-metadata">

**Author:** ![Gijsje](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gijsje/32/3246_2.png) [@Gijsje](https://community.homey.app/u/Gijsje)\
**Post date:** [October 18, 2018, 5:51pm UTC](https://community.homey.app/t/xiaomi-fang-doorbel-cam-to-tv/2972/6 "2018-10-18T17:51:22Z")

</div>

I only used it for testing indoor.  
On the outside it is a kaku doorbel
