# HomeyPro with KSenia Security

**URL:** <https://community.homey.app/t/homeypro-with-ksenia-security/90711>\
**Category:** Questions & Help\
**Tags:** homey-pro\
**Created:** [October 1, 2023, 7:50pm UTC](https://community.homey.app/t/homeypro-with-ksenia-security/90711 "2023-10-01T19:50:14Z")\
**Posts on this page:** 6\
**Page:** 2

<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:** [October 16, 2023, 5:33pm UTC](https://community.homey.app/t/homeypro-with-ksenia-security/90711/21 "2023-10-16T17:33:06Z")

</div>

I guess HomeyScript chokes (runs out of max allowed app memory), because of the very little time between the triggers. Every 2 secs is insane.

Why would you want to query stuff?  
Homey is event driven for the most part.  
When a sensor notices anything, it will report, it doesn’t need polling.

---

<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:** [October 16, 2023, 5:36pm UTC](https://community.homey.app/t/homeypro-with-ksenia-security/90711/22 "2023-10-16T17:36:09Z")

</div>

> [@Tamas\_Kovacs](#):
>
> I wanted to query a total of 6 alarm sensors, in such a way that I run the scripts written to query the sensors one by one with a 2-second cycle.

Do you mean you’re running 6 scripts every 2 seconds?

---

<div class="post-metadata">

**Author:** ![Tamas\_Kovacs](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tamas_kovacs/32/80084_2.png) [@Tamas\_Kovacs](https://community.homey.app/u/Tamas_Kovacs)\
**Post date:** [October 16, 2023, 6:14pm UTC](https://community.homey.app/t/homeypro-with-ksenia-security/90711/23 "2023-10-16T18:14:21Z")

</div>

Yes. I felt it Peter… although I didn’t see any sign of it on the control panel. (out of memory)  
This mode seems to be a dead end (I really don’t need the status of all my sensors anyway)  
I just tried it. 🙂  
Tamas

---

<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:** [October 16, 2023, 6:48pm UTC](https://community.homey.app/t/homeypro-with-ksenia-security/90711/24 "2023-10-16T18:48:12Z")

</div>

Yeah that’s one of the odd parts of Homey. It kills the app when it runs out of memory, to ensure the rest can continue, but there’s no automatic warnings for that.  
For HomeyScript it can be handy to create a check flow.

This flow checks every 61s for the Homeyscript memory value of 0 minutes ago (= last updated), and from a minute ago. This to filter out short peaks. I choose to auto restart the app when it’s over 60MB

 ![Screenshot from 2023-10-16 20-42-01](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/4/34cf5e7fc229d570d05376cfed765608aa894990.png)

---

<div class="post-metadata">

**Author:** ![Joakim\_Magnusson](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/joakim_magnusson/32/120987_2.png) [@Joakim\_Magnusson](https://community.homey.app/u/Joakim_Magnusson)\
**Post date:** [March 22, 2025, 8:10pm UTC](https://community.homey.app/t/homeypro-with-ksenia-security/90711/25 "2025-03-22T20:10:34Z")

</div>

Hello,  
Did you ever get this script to work. I also have a Ksenia Lares and a Homey Pro and i am interested in an integration.  
In the webapp for Ksenia you can get “READ GET-STATUS” but i dont understand if you need the Porta IOT for the Ksenia system to get this readings to work.

Does any of you know this?

//Joakim

---

<div class="post-metadata">

**Author:** ![Tamas\_Kovacs](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tamas_kovacs/32/80084_2.png) [@Tamas\_Kovacs](https://community.homey.app/u/Tamas_Kovacs)\
**Post date:** [March 23, 2025, 8:21pm UTC](https://community.homey.app/t/homeypro-with-ksenia-security/90711/26 "2025-03-23T20:21:26Z")

</div>

Hi Joakim!

I’m really glad you wrote and that you’re using Lares.  
I think it’s very innovative.  
Finally, I solved the problem of transferring my wired alarm sensors from Lares to Homey in a different way.  
I think I needed the KSenia Gateway.  
I have to say, I got help with it 🙂  
Something like this worked for me;  
Maybe this tells you something?

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/6/f6993832ac37d9d6f648073bc7b1dceb76d1d8e2.png)

Be sure to report the results!

Best reg!

Tamas

[Previous page](https://community.homey.app/t/homeypro-with-ksenia-security/90711.md?page=1)
