How to Compare Number:Temperature in next generation rule engine

  • Platform information:
    • Hardware: zwave CT100 thermostat
    • OS: Ubuntu
    • Java Runtime Environment: Zulu8
    • openHAB version: 2.5
  • Issue of the topic:
    I am working on the next generation rule and realized the compare does not work:

New rule engine:

  • Click + under but only if:
  • Use an item has a given state
  • Item: current temperature from the following binding:
  • Operator: >
  • State: 76

Basically, I want to trigger the but only if condition when temperature coming from the weather forecast source is larger than 76F.

But it NEVER WORKS.

I am assuming what I did is what an average user would reasonably assume.

  1. I saw the temperature in the paper UI control panel as being 76F. I assume the system is comparing using F not C.
  2. I saw the provided operator <, >, =, etc. I assume it is OK to compare numerical values.
  3. I assume the temperature is numerical, not a string.

So my question is:

  1. What did I miss?
  2. What else do I need to do to make it work?
  3. Is there a documentation that I can refer to?

Thank you for any help!

Chances are your temperature Item is using UoM, so the state in the rule should be entered as 76 °F (include the unit).

That is likely the flaw in your logic… it will be QuantityType.

Sorry for getting back late. I’ve tried enter the temperature with unit, however it does not help.
Is there a documentation that I can refer to?
I find the new rule engine lack of documentation.

By design, QuantityTypes cannot be used in Conditions…