- Platform information:
- Openhab running as a VM.
- Hardware: 9900k (1 core, 2 threads 4GB of ram i think)
- OS: Ubuntu 18.04 server
- Java Runtime Environment: which java platform is used and what version
- openHAB version: 2.4
- Issue of the topic:
I am experiencing a random delay in rule execution occasionally. Its not isolated to one rule and it involves both z-wave devices and other devices. It only happens rarely but doesnt seem to happen to any specific kind of rule.
I have already eliminated any Thread:sleeps over 500ms. One more note, like i said above, this isnt specific to rules that have delay in them.
I will give some examples:
Rule 1: I want any 1 switch in my bathroom to control all the lights in my bathroom. There are a total of three switches. So this rule says that if any of the switches are triggered (on or off) that the other 2 will follow. Sometimes this happens almost immediately and sometimes it takes 10 or 15 seconds.
Rule 2: Leaving scene. I activate this rule when i am leaving the house. It turns all the lights off, turns the tv off and opens the garage door.
It has been working fine for months but just yesterday i activated this rule and it worked as expected except for the garage didnt open. So i opened it manually and left. After I had gotten in the car, backed out, lowered the garage and driven about a mile, i got a notification that the garage just went up. It seems that the garage up command didnt go through for a few minutes!
All in all this isnt specific to a rule or a type of item. it just seems like Openhab is too busy to get around to the command at the moment causing a delay. I find that hard to believe as Openhab has 2 threads of a 9900k and 4bg of ram. probably very OP for a simple openhab install.
I will post the actual rules from the rules file when I get home but since this is more of a general issue, your thoughts are appreciated.