How do i compare entity's in node red?

Hi i have problem in my flow.
This doesn’t seem to work.
How can I compare two entity’s?

There is no state called bathroom Humidity, possibly sensor.bathroom_humidity, and I assume you’re missing sensor in the humidity_for_bath?

no. the bathroom Humidity works as intended when i compare it to a number.
And the humidity_for_bath also works and exists.
Only the comparisson doesnt work. always is “off”

image

Show a screenshot of these entities in developer tools

I dont know that entity works that way or at least not for me. Set it to j;expression and use $number($entities("sensor.name_here").state)

1 Like

Thank You. Your example worked for me.