I catch the message from the switch and filter out state_left to see if the switch is ON or OFF. Every few minutes the switch also sends a temperature update. I don’t need that but is does that. I that case it also sends the state_left again so I use a Report-by-exeption (RBE) node to check if the state is different from the last state. BUT in my case the state “OFF” is always passing the RBE node. Why?
Edit:
I think I found a solution in changing the mode in the RBE node from ‘block unless value changes’ to ‘block unless value changes (ignore initial value)’ . Don’t understand why this has to be, but it seems to work.
I’d suggest changing your debug node to full msg object just to see if something jumps out. You can also try a change node in place of your function node to see if that makes any difference…