- Platform information:
- OS: WIN 10
- Java Runtime Environment: JRE 11
- openHAB version: 3.4.3
At first: I´m not good in programming, so i have a lot of problems with OH 3.4.3
As this version of OH 3 on PC with WIN10 needs JAVA11 my rules with timers are not working.
I tried for days to find a solution for my problem, but all blogs i found did not really fit do my problems and many explations i could not understand!
I figguerd out, the Problem must be the difference between JAVA 8 and JAVA 11. In JAVA 8 this rules is working.
I tried some examples for timers, but they only work with
createTimer(now.plusMinutes((Item.state as DecimalType)
createTimer(now.plusMinutes((Item.state as Number)
An error occurred during the script execution: Could not invoke method: java.time.Instant.plusMinutes(long) on instance: 2023-05-02T11:29:49.520329600Z
So my Question:
What to do, that my Rules:
Item Sonoff_2_Bewaesserung changed from OFF to ON
createTimer(now.plusMinutes((Laufzeit_Sonoff_2_mm.state as DecimalType).intValue), [ |
is working in JAVA 11
Thanks for help!