So i have this sprinkle rule and today it failed to turn off "backyard 2" because , somehow, the delay was set much higher it was supposed to.
So my timeshort variable its adjusted based on percentage from timenew, you can see from the logs that it worked ok for front yard(35mins), then something weird happen
|Set timeshort to (percentage2nd(85) / 100.0)||
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
||Set timeshort to (timeshort(7650000) * timenew(3000))|
At the line above of the rule when trying to get 85% of the timenew but it went to a crazy high number when the math should have been 0.85 * 3000
I have this rule working with no issues for months, I don't understand why the delay today was set to 7650000 sec (2125 hours) with the same math as always
It seems to me like a hubitat bug where it failed to properly do 85/100 calculation.
This is the log from 2 days ago when it worked like normal
Action: Wait for event: Aspersoare backyard 2 (S2)(off) turns off --> timeout: timeshort(0:42:30)
Action: Off: Aspersoare backyard 2 (S2) --> delayed: timeshort(0:42:30)(cancelable)
Here the delay was set correctly to 42 mins instead of 2125 hours like it did today using the same rule.