Hi,
I’m currently running OpenHab on the followings:
- Hardware: Raspberry Pi 3 Model B Rev 1.2
- CPU: armv71, 4 cores Cortex-A53, 600 MHz
- RAM: 1Gio
- storage: high speed SDHC card 32Gio
- OS: “Raspbian GNU/Linux 11 (bullseye)” (openhabian)
- Java Runtime Environment: 17 (openjdk-17-jre-headless:armhf 1:17.0.9+9-1~deb11u1+rpt1)
- openHAB version: 4.0.4-2
I got a lot of push button devices, e.g. small remote with 4 buttons which I use to trigger actions using scripting. E.g. one button trigger will send a ON / sleep 1s / OFF to an item controlling a contact wired to the garage door contact (simulating a press to a push-and-release button). Another button trigger will send similar “on” on to a contact to open the portal. Another to send “on”, wait for XX secs so it’s almost opened, send ON / sleep 1s / OFF again to stop it so it will be left opened and won’t close automatically, etc.
Today my rules are in written in blocky (which is great btw).
I’m experiencing a “show-stopper” huge delay when pressing a button, thus running the associated rule, for the 1st time after either openhab has been restarted, the rule has been updated, or similar.
After searching, I realized that this is due to the load of the helper library the first time the rule is updated / openhab restarted / etc. And that it won’t be fixed (which honestly desperates me)
This delay is definitely a show stopper for me. Regularly, when pressing the remote’s button to open the garage door, nothing happens (or so it seems) so my wife press the button again, gets angry saying “your stuff does not work” ! Well, joke aside, I got a lot of triggered based rules with zigbee buttons or remote which cannot suffer such a delay that, from user experience, is happening randomly. It is not thinkable to run all rules once after each openhab restart as I saw as resolution suggestions!
To me this delay is simply unthinkable. If something long would have to be done for rules to be executed normally, it should be done at start time, or right after the rule is updated. Not at use time. Anyway.
So I consider two solutions: giving up on openhab and moving to another solution ; all my items are zigbee based with zigbee2mqtt so I got no technical issue with that.
Or re-writing all my rule scripts in another language than blocky / javascript that would not have this delay issue.
This is why I’m writing that: what would you advice as an alternative, if any exists with similar capabilities, that won’t have this unbearable delay ? I’m ready to learn a new language if that is similar in effort than giving up on openhab and re-installing all my automation in another tool (basically my decision will be made on that particular effort!)
Thanks for your answer