Setpoint problem in a condition comparison

Hi guys,
i am having trouble setting up a simple condition level rule with my item setpoint named “VAR_TEMP_MAX_AUTO”

Can you help me please?

  - id: "1"
      itemName: ZigbeeTemperatureandHumiditySensor_Temperature
    type: core.ItemStateUpdateTrigger
  - inputs: {}
    id: "3"
      itemName: ZigbeeTemperatureandHumiditySensor_Temperature
      state: VAR_TEMP_MAX_AUTO
      operator: ">="
    type: core.ItemStateCondition
  - inputs: {}
    id: "2"
      itemName: SONOFF4CHPROR32_Switch2
      command: OFF
    type: core.ItemCommandAction

The simple item based conditions cannot handle variables in the state field. You’ll have to use a simple script if you want to compare it to that other item state

1 Like

Scripted condition might help

Don’t forget if VAR_TEMP_MAX_AUTO is an Item, it is probably the Item state that that you are interested in.

1 Like

Hi Rossko57,

Everything is ready, my openhab works very well, I have 8 working temperature sensors, 3 SONOFF 4CH for my solenoid valves, impeccable.
I created some rules graphically, it works great.
Now … I don’t know Xtend or Java, can you help me?

I just want to activate 4CHPROR33_Switch1 when TEMPCHAMI is less than “tempmax”

I tried for hours but nothing works… I do not understand

What the Scripting Method choose to start as a beginner?


Thank you so much

That’s up to you.

When you want help with a rule, post what you’ve tried.