New Xiaomi aqara camera/gateway

You beat me to the answer :slight_smile: Good luck.

1 Like

Sorry, i missed your message. Frankly spoken, Iā€™m a complete zero in MIIO, sorry :pensive:

How can I install this on hass.io? I have no ssh access to my Pi3 so cannot sudo install. I can install ffmpeg by creating a line in the configuation.yaml. How can I install Netifaces, python-miio (or are both allready installed with hass.io?) and how can I install videoP2Proxy?

Hope you can help and I can test it :slight_smile:

1 Like

I have no information about hass.io. Never used it. Sorry.

Is there anybody who could put together a guide to set this up in hass.io? Ideally both as a camera and a gateway, seems like lots of people could do with the implementation. Thanks!

2 Likes

I think/hope someone has to make an add-on. Without that is isnā€™t possible yet.

2 Likes

How about just as a gateway? How hard would that be to implement?

2 Likes

+1 for at least a gateway for hassio :frowning:

2 Likes

any news on this camera?

Come on people! What would it take to make this work either as a gateway or camera?

For those of you that are running Docker, I just put an image for Arm based systems, like Raspberry Pi on Docker Hub at Arm Docker xiaomi-aqara-rtsp.
If you are running a Linux environment, this guy is where I got the idea, Linux Docker xiaomi-aqara-rtsp.
Itā€™s my first post to Docker Hub, so be gentle, but Iā€™ll try to answer any questions about the install.

Thanks to miguelangel.nubla and sendorm for the inspiration.

4 Likes

With this, would it be possible to make it a add-on for hassio?

iā€™m not terribly familiar with making hassio addons, it might be possible to make this work as hassio addon. right now the image is not generic enough, but iā€™m working on it. give me a week or so and weā€™ll see what i can do.

6 Likes

Any update on this?

1 Like

puncake Iā€™m still working on it is the short answer. Iā€™m having trouble getting the Dockerfile to compile in the Hassio world.

2 Likes

Did anyone get success with gateway part of this device?

ok, got it to work. butā€¦ Any idea how one can obtain the pass key needed for Home Assistant (HASS)? This should be a 16 character key

@Ozon1969
if you are using the plan laid out in post #113 or #134 then the home assistant config should look like thisā€¦
in home assistant config:

camera:
  - platform: ffmpeg
    input: -rtsp_transport tcp -i rtsp://<DOCKER_MACHINE_IP>:8554/

the 16 digit token is needed to get the videop2proxy app to display video via rtsp. the posts above explain the process.
iā€™ve written a tutorial to get the key in a repo iā€™ve published for the docker container here.

Thanks for your reply.
I am however not yet on the path of getting the videop2proxy app to display the video at this point (will go that route later).
At this point I am trying to get the Aqara camera hub to work as a hub in HASS.io
Just like it works in the Middle Home app.

Using the cam that way I need the cameraā€™s pass key. This is a 16 character key.
Since Xiaomi doesnā€™t support entering developer mode in itā€™s Mi Home app anymore one canā€™t get the needed key in a simple wayā€¦
I tried the hacked Mi Home app to get into the network settings and that worked. Partially, it gave me a 32 character Token, not the required keyā€¦
I tried older versions of the Mi Home app, as suggested heren and in other topics, on my Android phone, tried several using Android emulators in Windows but had no luck. The apps keep crashing when setting the regional settings to mainland Chinaā€¦
I would like the camera (and a few more if it works) to work as a hub for several sensors without the internet dependency to the China servers but it seems to be a dead end. I will keep looking a bit more but if all fails I will choose a different pass using a modified signed sniffer to be the hub of my door and windows sensors.

But if anyone has a working solution to helping me (and many more) out it would be a Christmas presentā€¦

@Ozon1969

as far as i am aware no one has developed a method for using this device as a gateway in HASS. the HASS component documentation has a note about itā€¦

Unsupported Devices

  • Xiaomi Aqara Gateway (lumi.gateway.aqhm01), as it is not possible to activate dev mode in the Mi Home App.

iā€™m not sure that the camera/gateway is that particular model number. the camera/gateway is definitively not the Xiaomi Mijia Gateway (lumi.gateway.v2, lumi.gateway.v3), which is supported by HASS natively.

the new MiHome app doesnā€™t support developer mode, but the old one used to. the camera/gateway did not support LAN mode even then.

if a device can go into LAN mode the developer menu in MiHome produces the key you need to talk to the device over your local LAN. old versions of MiHome should allow you to activate LAN mode on supported devices. maybe you could get a supported gateway to pair your window and door sensors to.

or iā€™m using smartthings to pair all my xiaomi devices to. smartthings then uses mqtt to tell HASS whatā€™s going on.

Iā€™m sorry this is not the information you were looking for. i bought the camera/gateway for features you are after. unfortunately it hasnā€™t panned out. iā€™ve made it work, though. just not ideally.