Sorry for the dumb question in here but I try to set up nodered with home assistant and take care of some automation. The problem that I face is that I need to compare some temperature as it follows: if desired temperature (called temperature) is higher then actual temperature (called current_temperature) I want to trigger a switch action and if the desired temperature is equal or lower then the actual temperature I want to trigger another switch action. The problem is that I don't see how I can compare 2 attributes from the current state message. My message is this:
You have written the answer yourself, use a switch node , in the debug tab you can copy the path to the value and use it for compering in switch node.
In properties you can declare what will be outputed on output one (<>= etc...)
Use one output for higher and one for lower.
I am on my phone and can't build up the flow but will be happy to help you if you have any problems setting it up...