# Aqara FP2, mmWave presence detection on WiFi

**URL:** <https://community.homey.app/t/aqara-fp2-mmwave-presence-detection-on-wifi/76955>\
**Category:** Devices\
**Tags:** wifi, presence\
**Created:** [February 28, 2023, 9:54am UTC](https://community.homey.app/t/aqara-fp2-mmwave-presence-detection-on-wifi/76955 "2023-02-28T09:54:40Z")\
**Posts on this page:** 20\
**Page:** 6

<div class="post-metadata">

**Author:** ![Pieter\_Pessers](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pieter_pessers/32/8848_2.png) [@Pieter\_Pessers](https://community.homey.app/u/Pieter_Pessers)\
**Post date:** [May 27, 2023, 6:42pm UTC](https://community.homey.app/t/aqara-fp2-mmwave-presence-detection-on-wifi/76955/101 "2023-05-27T18:42:03Z")

</div>

Same here. 30 euro

---

<div class="post-metadata">

**Author:** ![JeroenD](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jeroend/32/14297_2.png) [@JeroenD](https://community.homey.app/u/JeroenD)\
**Post date:** [May 27, 2023, 7:07pm UTC](https://community.homey.app/t/aqara-fp2-mmwave-presence-detection-on-wifi/76955/102 "2023-05-27T19:07:45Z")

</div>

Same here €30,— for a Homey app

---

<div class="post-metadata">

**Author:** ![Rudiger](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rudiger/32/28535_2.png) [@Rudiger](https://community.homey.app/u/Rudiger)\
**Post date:** [May 27, 2023, 7:54pm UTC](https://community.homey.app/t/aqara-fp2-mmwave-presence-detection-on-wifi/76955/103 "2023-05-27T19:54:00Z")

</div>

Adrian, you are getting rich and richer 😬😀

---

<div class="post-metadata">

**Author:** ![Quakerix](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/quakerix/32/10155_2.png) [@Quakerix](https://community.homey.app/u/Quakerix)\
**Post date:** [May 27, 2023, 8:18pm UTC](https://community.homey.app/t/aqara-fp2-mmwave-presence-detection-on-wifi/76955/104 "2023-05-27T20:18:08Z")

</div>

who counts what’s the total?

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [May 27, 2023, 11:29pm UTC](https://community.homey.app/t/aqara-fp2-mmwave-presence-detection-on-wifi/76955/105 "2023-05-27T23:29:38Z")

</div>

You?

---

<div class="post-metadata">

**Author:** ![Quakerix](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/quakerix/32/10155_2.png) [@Quakerix](https://community.homey.app/u/Quakerix)\
**Post date:** [May 28, 2023, 12:24am UTC](https://community.homey.app/t/aqara-fp2-mmwave-presence-detection-on-wifi/76955/106 "2023-05-28T00:24:50Z")

</div>

220 i think at least. Some people didn’t define a number.

30+30+30+30(pounds)+?donate+40+50+10

---

<div class="post-metadata">

**Author:** ![owuerker](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/owuerker/32/39707_2.png) [@owuerker](https://community.homey.app/u/owuerker)\
**Post date:** [May 28, 2023, 10:55am UTC](https://community.homey.app/t/aqara-fp2-mmwave-presence-detection-on-wifi/76955/107 "2023-05-28T10:55:26Z")

</div>

30 € from me, too

---

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [May 28, 2023, 12:16pm UTC](https://community.homey.app/t/aqara-fp2-mmwave-presence-detection-on-wifi/76955/108 "2023-05-28T12:16:49Z")

</div>

That’s more than I have made over the last 6 years on my 15 other apps 🙂

---

<div class="post-metadata">

**Author:** ![Pieter\_Pessers](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pieter_pessers/32/8848_2.png) [@Pieter\_Pessers](https://community.homey.app/u/Pieter_Pessers)\
**Post date:** [May 29, 2023, 9:36am UTC](https://community.homey.app/t/aqara-fp2-mmwave-presence-detection-on-wifi/76955/109 "2023-05-29T09:36:34Z")

</div>

I’m to blame as well @Adrian_Rockall. But now that i bought the HP2023 i understand the importance of developers and that they keep developing, supporting and maintaining there apps. So when there is a new app, solved a issue for me or the app is updated for future hardware (Like a new homey), i show my gratitude by placing a small donation.

I hope more people will follow this path, because it is especially that apps made by developers makes the homey a stong, versatile product.

---

<div class="post-metadata">

**Author:** ![Pieter\_Pessers](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pieter_pessers/32/8848_2.png) [@Pieter\_Pessers](https://community.homey.app/u/Pieter_Pessers)\
**Post date:** [May 29, 2023, 6:40pm UTC](https://community.homey.app/t/aqara-fp2-mmwave-presence-detection-on-wifi/76955/110 "2023-05-29T18:40:42Z")

</div>

P.S. after a week i see a huge improvement in the presence detection on my FP2 in the kitchen and living room. It is almost flawless. Sometime it takes longer for my kitchen sensor to see i’m absent. But that is 2 minutes at most.

---

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [May 30, 2023, 7:57am UTC](https://community.homey.app/t/aqara-fp2-mmwave-presence-detection-on-wifi/76955/111 "2023-05-30T07:57:32Z")

</div>

I have been looking into the possibilities of an app and it’s not looking good.  
I contacted Aqara and they firmly said there is no local API for the FP2, so any app would have to be cloud based.

The official cloud API is a bit of a mess:

First problem, it uses a none standard webhook implementation that requires a JSON object returned in the body of the POST response to confirm the message was received. Athom’s webhook server can’t cope with that so it’s not possible to register the address in the Aqara developer console. I have asked Athom if an option can be added when declaring the webhook, but I’m not sure it is important enough to get any attention at the moment. Therefore, the app would be based on polling, which is a terrible state.

The second problem is due to the rate limit of 100000 messages per month (sum of API requests and push messages) that is imposed on the free developer account. That’s probably enough for a single user but not for multiple users. That would mean every user would need to create their own developer account and use their own appID and keys.

So at the moment I’m hitting walls in every direction.

---

<div class="post-metadata">

**Author:** ![JeroenD](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jeroend/32/14297_2.png) [@JeroenD](https://community.homey.app/u/JeroenD)\
**Post date:** [May 30, 2023, 8:08am UTC](https://community.homey.app/t/aqara-fp2-mmwave-presence-detection-on-wifi/76955/112 "2023-05-30T08:08:28Z")

</div>

Is there no other way to import FP2? Just like Home assistant does?

---

<div class="post-metadata">

**Author:** ![Pieter\_Pessers](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pieter_pessers/32/8848_2.png) [@Pieter\_Pessers](https://community.homey.app/u/Pieter_Pessers)\
**Post date:** [May 30, 2023, 9:56am UTC](https://community.homey.app/t/aqara-fp2-mmwave-presence-detection-on-wifi/76955/113 "2023-05-30T09:56:19Z")

</div>

Aaaai. That is terrible news. I hope that matter will be implented soon on aqara. That way hopefully there is a way to work around the cloud, but that will only be possible to use for people with the HP2023.

On this moment i got it working with a raspberry pi, home assistant and the homekit plugin on the home assistant. And then install home assistant app on the homey. So the home assistant detects presence from FP2 and sends this thru to homey with the help on the home assistant app.

The only problem for homey is that he only sees on motion sensor per device at the time. So first you must find out what is the general motion detection. For instant in the home assist you set the general motion detection to motion. Then as second a important zone you set that for armed. Another zone will be set for occipied and so on. If you set it all, setup the fp2 in homey with the home assistant app. You will see you now have a few triggers. There are many choices, not all of them is working. So it is a trail and error search.

It is expertimental and not perfect. But hopefully there comes a better solution in the future.

From Aqara: I asked the same question in the email if there was a api or i could use webhooks and they where very vague. That while in the ad and websites they where really talking about local api.

---

<div class="post-metadata">

**Author:** ![Pieter\_Pessers](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pieter_pessers/32/8848_2.png) [@Pieter\_Pessers](https://community.homey.app/u/Pieter_Pessers)\
**Post date:** [May 30, 2023, 1:27pm UTC](https://community.homey.app/t/aqara-fp2-mmwave-presence-detection-on-wifi/76955/114 "2023-05-30T13:27:23Z")

</div>

Hello @Adrian_Rockall .Is there not a possibility to connect homekit compatible devices to homey? This because the PF2 is homekit compatible. There is a homekit and homekitty app for homey, but these apps are to attach homey to homekit, so you can switch on/off, adjust, etc homey devices with apple products or …!  
But for me it is to connect homekit compatible devices to homey and these apps doesn’t exist for homey on the moment.  
Home assistant has this possibility. But maybe it is easier said then done and is it much more difficult or impossible to do this as well for homey, what probably is.

---

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [May 30, 2023, 4:44pm UTC](https://community.homey.app/t/aqara-fp2-mmwave-presence-detection-on-wifi/76955/115 "2023-05-30T16:44:24Z")

</div>

Not that I know of. I believe @robertklep started one a few years ago but abandoned it when he sold his Homey. Maybe he will see this and put me right.

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [May 30, 2023, 4:46pm UTC](https://community.homey.app/t/aqara-fp2-mmwave-presence-detection-on-wifi/76955/116 "2023-05-30T16:46:21Z")

</div>

You’re right, there isn’t a HomeKit Controller app for Homey.

I once started with one, and [someone else actually created one](https://community.homey.app/t/discontinued-homekit-controller/48802), but we both moved away from using Homey (I still have Homey’s, but only to maintain my apps for it).

---

<div class="post-metadata">

**Author:** ![Pieter\_Pessers](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pieter_pessers/32/8848_2.png) [@Pieter\_Pessers](https://community.homey.app/u/Pieter_Pessers)\
**Post date:** [May 30, 2023, 5:25pm UTC](https://community.homey.app/t/aqara-fp2-mmwave-presence-detection-on-wifi/76955/117 "2023-05-30T17:25:21Z")

</div>

Sad to hear. That really sounded good if it still existed, cause maybe that could help to get the FP2 working with homey. Now i hope that someone likes to take over.  
Anyone…? 😁😁

---

<div class="post-metadata">

**Author:** ![JeroenD](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jeroend/32/14297_2.png) [@JeroenD](https://community.homey.app/u/JeroenD)\
**Post date:** [May 30, 2023, 5:38pm UTC](https://community.homey.app/t/aqara-fp2-mmwave-presence-detection-on-wifi/76955/118 "2023-05-30T17:38:58Z")

</div>

so we have to encourage @robertklep to make an app…😘 also for for you €30,— if you can build a HomeKit. Maybe for a spare tire for your bike

---

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [June 2, 2023, 1:08am UTC](https://community.homey.app/t/aqara-fp2-mmwave-presence-detection-on-wifi/76955/119 "2023-06-02T01:08:13Z")

</div>

I now have the basics of an app working. It needs some polishing to select server regions and I am discussing an addition to the webhook definition with Athom, so that I can specify the good response that is expected by Aqara. I have proved it works by using my Homey as the webhook server and I am getting push messages as expected.  
So, the only question is whether 100000 message per month will be enough. As I have no idea how many users there will be or how often their sensors will trigger a message, I don’t know if that is going to work.  
There are two ways to get more allowance:

1. I sign up for a paid account, which is 1000 USD per year and then a small charge for every block of 10000 messages over the 100000. Am I that dedicated I ask myself 🙂

2. Every user creates a free developer account with Aqara to get their own 100000 call per month allowance.

So, if all this works out, what capabilities are people expecting?  
For example, I currently have it setup for luminance and person present. How many of you need to have zone active alarms and if so how many zones?

---

<div class="post-metadata">

**Author:** ![Smurf1975](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/smurf1975/32/12478_2.png) [@Smurf1975](https://community.homey.app/u/Smurf1975)\
**Post date:** [June 2, 2023, 5:05am UTC](https://community.homey.app/t/aqara-fp2-mmwave-presence-detection-on-wifi/76955/120 "2023-06-02T05:05:04Z")

</div>

Can you as much in detail explain how you set it up. For me it’s not working

[Previous page](https://community.homey.app/t/aqara-fp2-mmwave-presence-detection-on-wifi/76955.md?page=5)

[Next page](https://community.homey.app/t/aqara-fp2-mmwave-presence-detection-on-wifi/76955.md?page=7)
