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.
Do you mean you’re running 6 scripts every 2 seconds?
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
1 Like
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
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
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?
Be sure to report the results!
Best reg!
Tamas