Node Red - Helper value vs Current Temperature

Hi,

We’re using AC’s to heat some rooms during the winter. I made a node-red flow to turn the AC on when the temp is below a certain value and turn it of if it is above another value. That works.

Now I want to make those temperatures dynamic by using a helper that I show on my dashboard and can ajust if I want to. I just can’t figure out how to check if the current temperature is higher (or lower) then the helper value. I want to replace the “21” value in the screenshot for my helper value.

image

https://zachowj.github.io/node-red-contrib-home-assistant-websocket/guide/jsonata.html

Note also that you’re currently comparing a string to a number. You should also change “State Type” to number.

Thanks for the reply, this worked for me!