Trying to bypass the motion sensor with current state node is failing

I’m trying to create a bypass option for a room, to leave the light on even when there is no motion detected anymore.
I tried this with a helper button in HA and configured a current state node in Node Red.
so when the button is enabled the light should not go out when the motion sensor does not see activity anymore.

I’m probably making a mistake somewhere as the current state node keeps reporting the state of the Motion sensor and not my helper button. Thus will never look at the override button.

Current state node: State Override Button

Debug message from Current State node

Any help would be appreciated.

In the current state node, is the block input override button below output properties checked? It should be.

Hi @Mikefila , I tried both on and off. same result it keeps coming back with data from the motion sensor.

Try deleting the current state, deploy, then drag out a new one.

ah my mistake, it was working all the time.
even while it looks like it still reports from the motion sensor. The actual payload data is from the bypass button.

image

so my problem is solved (strange to see that the data looks to be from another node, or that is my mis understanding.)
Anyway it is working.