Using "Guest Mode" Toggle Button in Node-Red Automation

I’m very green, maybe not as green as my new HA Green, but green…

I have one basic Node-Red automation at the moment that I’ve repurposed multiple times for different areas of the home. [motion detected → turn on a light, wait 3 minutes, checks if any motion is detected → dims light to 50%, waits 60 seconds → turns off light]

I have incorporated it to also turn the light off if turned on via the app, or voice assistant.

Now I’m trying to add a “Guest Mode” button, that I can enable and when enabled I can use in a Node Red automation to not dim a light, not turn a light off. I thought I had it, but now, after adding a “Guest Mode” boolean and adding that into Node Red, the light turns on, stays on for 1 minute, turns off, then at 3 minutes it turns back on at 50%, and then after 60 more seconds it turns off. I feel I’ve placed the “Guest Mode” current state in the wrong place. What am I doing wrong?

original automation:


updated automation:
Screen Shot 2025-01-21 at 2.57.39 PM


Screen Shot 2025-01-21 at 2.49.10 PM

In Home Assistant, go to Developer Tools > States, look up input_boolean.guest_mode, and check the state column. You’ll see that the state is either on or off. That’s what you need to use as the condition in the Node-RED current state node, rather than the current value you’re checking (true).

Okay I checked that out, thanks, the states are [on] or [off]. I updated that. However it still acts funny, I feel the [current state] box is in the wrong spot.