# \[APP\]\[Pro\] Homey ESPresense room presense system

**URL:** <https://community.homey.app/t/app-pro-homey-espresense-room-presense-system/94742>\
**Category:** Apps\
**Created:** [November 15, 2023, 6:52pm UTC](https://community.homey.app/t/app-pro-homey-espresense-room-presense-system/94742 "2023-11-15T18:52:10Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![Menno\_van\_Hout](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/menno_van_hout/32/77843_2.png) [@Menno\_van\_Hout](https://community.homey.app/u/Menno_van_Hout)\
**Post date:** [February 12, 2024, 9:11pm UTC](https://community.homey.app/t/app-pro-homey-espresense-room-presense-system/94742/22 "2024-02-12T21:11:08Z")

</div>

Hi there little update from my site.

I’ve been very ocupied with [https://hdashboards.app](https://hdashboards.app)  
However picked-up a bit of development of this plugin today.  
I’m working on a new drive that includes your device so you can get the room back!

---

<div class="post-metadata">

**Author:** ![Chris\_nl](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/chris_nl/32/27194_2.png) [@Chris\_nl](https://community.homey.app/u/Chris_nl)\
**Post date:** [March 10, 2024, 2:00am UTC](https://community.homey.app/t/app-pro-homey-espresense-room-presense-system/94742/23 "2024-03-10T02:00:15Z")

</div>

@Menno_van_Hout if you need someone to help you test, feel free to let me know

---

<div class="post-metadata">

**Author:** ![Menno\_van\_Hout](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/menno_van_hout/32/77843_2.png) [@Menno\_van\_Hout](https://community.homey.app/u/Menno_van_Hout)\
**Post date:** [March 13, 2024, 7:05am UTC](https://community.homey.app/t/app-pro-homey-espresense-room-presense-system/94742/24 "2024-03-13T07:05:46Z")

</div>

Thanks a lot, I’m just not having any time yet to work on this app.

---

<div class="post-metadata">

**Author:** ![John\_Clegg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/john_clegg/32/79366_2.png) [@John\_Clegg](https://community.homey.app/u/John_Clegg)\
**Post date:** [May 6, 2024, 1:18am UTC](https://community.homey.app/t/app-pro-homey-espresense-room-presense-system/94742/25 "2024-05-06T01:18:10Z")

</div>

Hey

I’ve just installed ESPresence app for the homey pro. Thanks for creating the app.

I’ve got a couple of questions

1. I’m not seeing the device name in the widget eg. Here . It just shows me the distance to the device.  
 ![IMG_2076.PNG](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/e/eeb9962d5acd2c96091f89a3accd55102bd1ac3d.jpeg)

Someone posted earlier in this thread that this is what they saw on the app. Has this been fixed ?

1. Do you have any suggestions for debugging / testing flows? I know the MQTT is getting the ESPresence data but I’m not sure if the ESPresence app mapping is working . Or it could be that my flow is not buggy.  
I’m going to create a basic flow to change the colour of a light to see to confirm that ESP is working.

Do you have any other suggestions ?

Cheers

John

---

<div class="post-metadata">

**Author:** ![John\_Clegg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/john_clegg/32/79366_2.png) [@John\_Clegg](https://community.homey.app/u/John_Clegg)\
**Post date:** [May 7, 2024, 12:24am UTC](https://community.homey.app/t/app-pro-homey-espresense-room-presense-system/94742/26 "2024-05-07T00:24:43Z")

</div>

I have successfully tested ESP App working using a light.

I found out that I needed to use “known:” in my ID for the saved devices that I have created on the ESP device…

Any news about having the names of tracked items in the homey widget?

---

<div class="post-metadata">

**Author:** ![John\_Clegg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/john_clegg/32/79366_2.png) [@John\_Clegg](https://community.homey.app/u/John_Clegg)\
**Post date:** [May 18, 2024, 5:38am UTC](https://community.homey.app/t/app-pro-homey-espresense-room-presense-system/94742/27 "2024-05-18T05:38:26Z")

</div>

FYI:  
I have got some tailbaits ( [ATOM TailBat - Battery Accessory for ATOM | m5stack-store](https://shop.m5stack.com/products/atom-tailbat) ) which are battery packs for the atom lite. They take about 2 hours to charge . (I found nothing anywhere that says how long they take to charge)

This means that I can use atom lite plus tailbait at our mailbox and you use them to signal the homey that my kids have left the house. 🙂

---

<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 18, 2024, 5:54am UTC](https://community.homey.app/t/app-pro-homey-espresense-room-presense-system/94742/28 "2024-05-18T05:54:43Z")

</div>

With a 190mAh capacity, how long can you make them last?

---

<div class="post-metadata">

**Author:** ![Menno\_van\_Hout](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/menno_van_hout/32/77843_2.png) [@Menno\_van\_Hout](https://community.homey.app/u/Menno_van_Hout)\
**Post date:** [May 22, 2024, 8:04pm UTC](https://community.homey.app/t/app-pro-homey-espresense-room-presense-system/94742/29 "2024-05-22T20:04:40Z")

</div>

I sadly still didn’t have much time yet to work on ESPresense again. Hope fully soon…

---

<div class="post-metadata">

**Author:** ![John\_Clegg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/john_clegg/32/79366_2.png) [@John\_Clegg](https://community.homey.app/u/John_Clegg)\
**Post date:** [May 22, 2024, 8:58pm UTC](https://community.homey.app/t/app-pro-homey-espresense-room-presense-system/94742/30 "2024-05-22T20:58:51Z")

</div>

Hi Robert,

How the batteries last is what I was wanting to test.

Unfortunately, I have found out that the ATOMs run at a different expected clock speed and this triggers the Tailbat to turn off after 30 mins.

I have got the ESPresence Code and have upped the clock speed and tested. So far I am not successful to get it to last more than 30 mins. I will keep at it and update here.

John

---

<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 23, 2024, 4:11am UTC](https://community.homey.app/t/app-pro-homey-espresense-room-presense-system/94742/31 "2024-05-23T04:11:34Z")

</div>

With WiFi and BT always on you can probably expect a power consumption of about 150 to 200mA, which means that your battery will drain in about an hour or so, and that’s in optimal conditions.

My guess is that the Tailbat might be turning itself off to protect the battery from completely discharging (which is a no-no for lithium-based energy storage).

---

<div class="post-metadata">

**Author:** ![John\_Clegg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/john_clegg/32/79366_2.png) [@John\_Clegg](https://community.homey.app/u/John_Clegg)\
**Post date:** [May 23, 2024, 5:25am UTC](https://community.homey.app/t/app-pro-homey-espresense-room-presense-system/94742/32 "2024-05-23T05:25:02Z")

</div>

Hi Robert.

Right. OK. That’s not going to work for my use case. I am going to investigate how to get power to my mailbox.

I’m trying to figure out how to use ESP to know when my kids have left the house. I thought that putting an ESP sensor in my mailbox will tell me they are out. Because if they come near any of the other sensors then they are inside the house.

John

---

<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 23, 2024, 7:05am UTC](https://community.homey.app/t/app-pro-homey-espresense-room-presense-system/94742/33 "2024-05-23T07:05:33Z")

</div>

> [@John\_Clegg](#):
>
> Because if they come near any of the other sensors then they are inside the house.

And you can’t use those sensors to determine if they are outside the house (if they’re not within range of any of the sensors, they are outside)?

---

<div class="post-metadata">

**Author:** ![John\_Clegg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/john_clegg/32/79366_2.png) [@John\_Clegg](https://community.homey.app/u/John_Clegg)\
**Post date:** [May 23, 2024, 7:48am UTC](https://community.homey.app/t/app-pro-homey-espresense-room-presense-system/94742/34 "2024-05-23T07:48:28Z")

</div>

Hi

Thanks for the suggestion.

I’ll need to put sensors in all our rooms to aid that. 🙂

John

---

<div class="post-metadata">

**Author:** ![John\_Clegg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/john_clegg/32/79366_2.png) [@John\_Clegg](https://community.homey.app/u/John_Clegg)\
**Post date:** [May 24, 2024, 1:07am UTC](https://community.homey.app/t/app-pro-homey-espresense-room-presense-system/94742/35 "2024-05-24T01:07:22Z")

</div>

I have a question. @robertklep

Is there a good time comparison in homey for variables?

Why would I get the sensor to update . “Last updated” variable and periodically compare to current time and then I would know that they are “out” of the house.

---

<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 24, 2024, 4:37am UTC](https://community.homey.app/t/app-pro-homey-espresense-room-presense-system/94742/36 "2024-05-24T04:37:39Z")

</div>

You probably have to do set up something with timers: for each person you’re trying to track, you start a timer for (say) one hour. When the person is marked as present again by ESPresense you restart the timer, and when the timer times out (meaning that the person hasn’t been marked present in the last hour) you mark them as being out.

The Chronograph app can provide such timers.

---

<div class="post-metadata">

**Author:** ![John\_Clegg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/john_clegg/32/79366_2.png) [@John\_Clegg](https://community.homey.app/u/John_Clegg)\
**Post date:** [May 24, 2024, 4:57am UTC](https://community.homey.app/t/app-pro-homey-espresense-room-presense-system/94742/37 "2024-05-24T04:57:13Z")

</div>

So I’m guessing that means that there is no date time comparison .

Thanks I’ll give that a go

---

<div class="post-metadata">

**Author:** ![John\_Clegg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/john_clegg/32/79366_2.png) [@John\_Clegg](https://community.homey.app/u/John_Clegg)\
**Post date:** [May 24, 2024, 6:13am UTC](https://community.homey.app/t/app-pro-homey-espresense-room-presense-system/94742/38 "2024-05-24T06:13:52Z")

</div>

I have added the timers and they work a treat . Thanks

John

---

<div class="post-metadata">

**Author:** ![Menno\_van\_Hout](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/menno_van_hout/32/77843_2.png) [@Menno\_van\_Hout](https://community.homey.app/u/Menno_van_Hout)\
**Post date:** [May 24, 2024, 11:42am UTC](https://community.homey.app/t/app-pro-homey-espresense-room-presense-system/94742/39 "2024-05-24T11:42:19Z")

</div>

As i can see from the comments here, most people looking for ESPresense have some kind of technical background. I will make the repository opensource this evening.

If people would like to contribute feel free, i’ll make sure to keep my eye on pull requests and testing.

---

<div class="post-metadata">

**Author:** ![Menno\_van\_Hout](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/menno_van_hout/32/77843_2.png) [@Menno\_van\_Hout](https://community.homey.app/u/Menno_van_Hout)\
**Post date:** [May 24, 2024, 2:43pm UTC](https://community.homey.app/t/app-pro-homey-espresense-room-presense-system/94742/40 "2024-05-24T14:43:30Z")

</div>

Here we go:

> **[GitHub - mennovanhout/homey-espresense](https://github.com/mennovanhout/homey-espresense)**
>
> Contribute to mennovanhout/homey-espresense development by creating an account on GitHub.

I was working on a beacon, so you can actually also track a single device. I want to create that you can add a device that has a capability of room, so you activly know in which room that device is right now, aswell as last updated etc. Should also fix your needs @John_Clegg

---

<div class="post-metadata">

**Author:** ![John\_Clegg](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/john_clegg/32/79366_2.png) [@John\_Clegg](https://community.homey.app/u/John_Clegg)\
**Post date:** [May 24, 2024, 8:59pm UTC](https://community.homey.app/t/app-pro-homey-espresense-room-presense-system/94742/41 "2024-05-24T20:59:05Z")

</div>

Hi Menno

Thanks for sharing the code. I will definitely check it out. 🙂

John

[Previous page](https://community.homey.app/t/app-pro-homey-espresense-room-presense-system/94742.md?page=1)

[Next page](https://community.homey.app/t/app-pro-homey-espresense-room-presense-system/94742.md?page=3)
