Turn on Hue light(s) on schedule based on presence

Have a Hue light connected via home assistant.
I Can turn hue light on using light scheduler no problem.

Want to only turn the light on according to the schedule if the person is home.
Have presence working already and visible to node-red.
Have input_boolean for each person indicating if they are home.

Suggestions?

Take a look at this example in the cookbook

https://cookbook.nodered.org/basic/route-on-context