# Looking for presence simulation based on past real behaviour

**URL:** <https://community.homey.app/t/looking-for-presence-simulation-based-on-past-real-behaviour/97584>\
**Category:** Questions & Help\
**Tags:** presence, homey-pro, logging\
**Created:** [December 11, 2023, 9:38pm UTC](https://community.homey.app/t/looking-for-presence-simulation-based-on-past-real-behaviour/97584 "2023-12-11T21:38:47Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Christoph\_S](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/christoph_s/32/79444_2.png) [@Christoph\_S](https://community.homey.app/u/Christoph_S)\
**Post date:** [December 11, 2023, 9:38pm UTC](https://community.homey.app/t/looking-for-presence-simulation-based-on-past-real-behaviour/97584/1 "2023-12-11T21:38:47Z")

</div>

I just installed the 2023 Homey Pro and created first flows for lighting and shutters/blinds.

What I really want to do is create a presence simulation based on actual behaviour. So i want to log all states / actions for all the lights. If I am not home, I would like Homey to recall the real actions from 7 days ago and replay the exact actions.

Example:  
If I am not home today and Light1 was switched on at 18:23 7 days ago, it should switch on at 18:23 today.

Is there anyone with experience or ideas on how to achieve this?  
Thank you very much.

---

<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:** [December 12, 2023, 12:43am UTC](https://community.homey.app/t/looking-for-presence-simulation-based-on-past-real-behaviour/97584/2 "2023-12-12T00:43:09Z")

</div>

Try the [Zone Memory App for Homey | Homey](https://homey.app/a/com.sdn.zone-memory/) app!

---

<div class="post-metadata">

**Author:** ![Christoph\_S](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/christoph_s/32/79444_2.png) [@Christoph\_S](https://community.homey.app/u/Christoph_S)\
**Post date:** [December 12, 2023, 6:27am UTC](https://community.homey.app/t/looking-for-presence-simulation-based-on-past-real-behaviour/97584/3 "2023-12-12T06:27:25Z")

</div>

Thank you Peter for the pointer.  
I looked into that. My understanding is that if I would like to save every minute, I would have to create a flow for every minute of the day to save it as a scene.  
Do I not yet understand the capabilities of Zone Memory App or is there a better way / another app?

---

<div class="post-metadata">

**Author:** ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)\
**Post date:** [December 12, 2023, 8:52am UTC](https://community.homey.app/t/looking-for-presence-simulation-based-on-past-real-behaviour/97584/5 "2023-12-12T08:52:08Z")

</div>

> [@Christoph\_S](#):
>
> I would like Homey to recall the real actions from 7 days ago and replay the exact actions.

For me this is exactly no presence simulation!  
I guess you don’t switch the Light1 at exactly the same time on, like the week before. And this is the same with the other lights and the shutters. Normally such actions are more or less random (in a certain period of time). When you turn on a light usually depends on the brightness and less on the time.  
But as I said, this is my idea of a simulation.

The **Zone Memory** app is not helpful for this use case. Have a look at the [**Advanced Scheduler**](https://homey.app/en-us/app/com.fp.advanced-scheduler/Advanced-Scheduler/) app and the related topic, I think it fits better for your use case:

> [@\[App\]\[Pro\] Advanced Scheduler](https://community.homey.app/t/app-pro-advanced-scheduler/43767):
>
> An advanced scheduler for weekly and monthly (comming) schedules with fixed time or solar events (sunset, sunrise, dusk, dawn, midday and so on). Advanced features include: Random schedule event times. Example: trigger at random time between 21:00 and 22:30. Conditional triggering (only trigger schedule event if before or after certain time). Example: trigger at sunrise but only if before 06:00. First of/last of triggering (trigger the first or last of two trigger times). Example: Trigger fir…

However, if you want to create your own flows and save times, I recommend the [**Better Logic Library**](https://homey.app/en-us/app/net.i-dev.betterlogic/Better-Logic-Library/) app and the related topics:

> [@\[APP\]\[Pro\] Better Logic Library - Just some better logic, variable and library management](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568):
>
> Now in Test/Review: Rebranding BL to: [Better Logic Library 2.0](https://homey.app/nl-nl/app/net.i-dev.betterlogic/Better-Logic-Library/test/). The Better Logic App has been rebranded to Better Logic Library. Check out the new App Settings for the new features, like BLL coding in [supported apps](https://community.homey.app/t/app-pro-better-logic-library-for-users/71876/4)! Submitted for review by Athom now! See [[APP][Pro] Better Logic Library - For Users - Apps - Homey Community Forum](https://community.homey.app/t/app-pro-better-logic-library-for-users/71876)[[APP][Pro] Better Logic Library - For developers - Apps - Homey Community Forum](https://community.homey.app/t/app-pro-better-logic-library-for-developers/71761) BLL has been updated to sdk3 to get everything up and running ag…

> [@\[APP\]\[Pro\] Better Logic Library - For Users](https://community.homey.app/t/app-pro-better-logic-library-for-users/71876):
>
> BLL is Live! If you are an App Developer and want to know more about how to include this into your App or how to let your App support BLL coding, goto the [[APP][Pro] Better Logic Library - For Developers](https://community.homey.app/t/app-pro-better-logic-library-for-developers/71761) Forum Topic. Part of: [Better Logic Library - Just some better logic, variable and library management](https://community.homey.app/t/app-pro-better-logic-just-some-better-logic-and-variable-management/5568)Homey’s first real Library: Better Logic Library! The [Better Logic](https://homey.app/a/net.i-dev.betterlogic/) App has a new addition: A library and library management for other apps to consume. This Topic describes how users can use th…

---

<div class="post-metadata">

**Author:** ![FKey](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fkey/32/14793_2.png) [@FKey](https://community.homey.app/u/FKey)\
**Post date:** [December 13, 2023, 7:49am UTC](https://community.homey.app/t/looking-for-presence-simulation-based-on-past-real-behaviour/97584/6 "2023-12-13T07:49:50Z")

</div>

> [@Christoph\_S](#):
>
> What I really want to do is create a presence simulation based on actual behaviour.

What is the reason you want to do this?  
Is it for safety reasons? (Burglar)

Then consider this:  
If somebody takes the time to monitor your house and notice that you are not at home…  
They have already targeted hour house and they will also find out even with fancy simulations.

Most burglary is just occasion, they come by and see an opportunity. Fancy presence simulations will not make a difference in that case either…

So before spending lots of time on complex presence simulation (that is also error-prone) think about it.

My house lights are switched unrelated to if I am home or not.  
Morning: on at fixed times, off at lux level  
Evening: on at lux level, off at fixed time  
([Scheduler](https://homey.app/en-us/app/com.fp.advanced-scheduler/Advanced-Scheduler/) app is great for it)

---

<div class="post-metadata">

**Author:** ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)\
**Post date:** [December 14, 2023, 1:07pm UTC](https://community.homey.app/t/looking-for-presence-simulation-based-on-past-real-behaviour/97584/7 "2023-12-14T13:07:27Z")

</div>

> [@FKey](#):
>
> What is the reason you want to do this?

Does it matter?

> [@FKey](#):
>
> So before spending lots of time on complex presence simulation (that is also error-prone) think about it.

I interpret that as a hint, not a recommendation, correct?  
But I (personally) can’t agree with that.  
A smart home gateway like Homey is also useful for such requirements, among other things. Otherwise, you could also buy old analog or digital timers for a fraction of the cost and use them to switch lights.  
And, it makes a lot of fun to create complex flows.

---

<div class="post-metadata">

**Author:** ![FKey](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/fkey/32/14793_2.png) [@FKey](https://community.homey.app/u/FKey)\
**Post date:** [December 14, 2023, 7:27pm UTC](https://community.homey.app/t/looking-for-presence-simulation-based-on-past-real-behaviour/97584/8 "2023-12-14T19:27:53Z")

</div>

> [@DirkG](#):
>
> I interpret that as a hint, not a recommendation, correct?

Sure, its a consideration anyone should do as they like best.  
Sometimes we get too enthusiast about what we can do with homey and forget the simple solutions 😉

---

<div class="post-metadata">

**Author:** ![Christoph\_S](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/christoph_s/32/79444_2.png) [@Christoph\_S](https://community.homey.app/u/Christoph_S)\
**Post date:** [December 15, 2023, 8:34am UTC](https://community.homey.app/t/looking-for-presence-simulation-based-on-past-real-behaviour/97584/9 "2023-12-15T08:34:26Z")

</div>

Thank you @DirkG for the recommendations.  
Since I am still new to this, it will take some time to understand all the possibilities, but I will keep you updated with solutions, if I find any.

@FKey : It is just what I try to do, because (I hope) it is fun and I believe it could make my life easier.
