Turn on light based on the state of a Helper

The problem i am trying to solve:

My son has a habbit of at times being a smart ass and uses the chair to reach out for my smart switch from the wall and turn on the light in the middle of the night.

I have another switch for me to “ARM” the room when he is sleeping. This is a scene switch that updates a Home Assistant Helper to “ON”

I have a simple node-red flow which turns on the lights but what a good way for me to check the status of the helper and if its “ON” then do nothing and if its “OFF” then turn on the lights?

much appreciated.

Add the helper as a condition in the first node.

If you insert a “current state” node before “Which Button ?”, you can retrieve the state of the helper. In that same node you can tell it to only proceed if the state is not “on”. You may also want to delete all of the output properties on that node, as you don’t need them.