HomeyPro with KSenia Security

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. :slight_smile:
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