MikeTheTux
MikeTheTux
> Both "kWh" and "kW*h" are valid Java QuantityType syntax, otherwise they would not work No it does not: `energy.toUnit("kW*h").multiply(energyPrice)` comes up with the unit `kW·h·EUR/kWh` instead of `EUR`.
`consoleTrace("energyCosts: " + energy.toUnit("kW*h").multiply(energyPrice).toUnit("EUR"));` indeed normalizes the `kW·h·EUR/kWh` back to `EUR`.
`.postUpdate()` of a `QuantityType` item does only support the normalized variant. > Is `5 m/s` multiplied by `2 s` automatically converted to `10 m`? Or is it `10 m/s` *...
Implemented the following tests: ``` consoleTrace("test OK: " + Quantity("5 m/s").multiply("2 s")); consoleTrace("test OK: " + Quantity("5 m*s").multiply("2 s")); const javaQty = new QuantityType("5 ms"); const jsQty = Quantity(javaQty); consoleTrace("test...
I had the same problem. It is gone since I removed all orpahn objects (https://www.openhab.org/docs/administration/runtime.html#links) as well as migrated all my DSL to JavaScript rules.
@soeren-r I was facing the same issue, also in a docker setup with plenty resources available and in combination with a quite low CPU load. Can you deactivate your rules...
@J-N-K, @lolodomo: It's not yet functional. You may wanna have a look???
debug output: ``` [ab.binding.evcc.internal.EvccHandler] - channelGroupTypeId: loadpoint1current; channelGroupTypeUID: evcc:loadpoint1current; channelGroupType: evcc:loadpoint1current [ab.binding.evcc.internal.EvccHandler] - channelGroupTypeId: heatingheatpump; channelGroupTypeUID: evcc:heatingheatpump; channelGroupType: evcc:heatingheatpump ```
> You might also want to look into the last SAT warning: NonThreadSafeSingleton done
> There are some compiler warnings to check. There are also some checkstyle warnings left. You could take a look at target/code-analysis/report.html. @jlaur, compiled it in an OH4.0.0 environment and...