Comparrisson of Dimensional Numbers fails, but works if dimensionless

  • Platform information:
    • Hardware: Virtual Machine
    • OS: Openhabian
    • openHAB version: 3.0.1
  • Issue of the topic:
    I have a very simple rule which compares a setable Temperature Value to a Temperature comming from the WeatherForecast Thing.
    Today Forecast (Item A) is 5.99 °C and the other Item (Item B) is 15°C.
    But A < B is not true.
    First Problem was that Item B was dimensionless, so I tried setting it to Number:Temperature too, but that still did not work.
    Setting both Items to dimensionless Number works perfectly.

Is there a guide how to deal with dimensions in rules in OH3?

I had another problem with dimensions here: https://community.openhab.org/t/problem-with-knx-control-item-and-dimension-types-in-oh3/119299

You should make your Item types match the type of the channel that they are linked to, for best results.

Be aware that a Number:Dimensionless is still a Quantity type, with units (%, dB, etc.), and is different from"just" a Number type.

Thank you very much, that helped to get it work