Question about node red!

I have some question about node-red

If I use illumination sensor as a trigger to switch on AC, but if i feel it is cold, i manually switch off the ac, it will switch on a little bit time later, how can I solve this issue?

This seems to be more about how to automate and control something, rather than a node red problem.

If you only rely on a single sensor, you can use an input Boolean to put a block on the flow using a state of a device check or a traffic node

This is subject to the trigger you choose on Node Red. Using an “events - state” trigger only reacts to changes in the illumination sensor. It will only be triggered when the state of illumination sensor changes (keep the manual overwrite until then).
Other triggers query the state periodically and will trigger it periodically (your manual adjustments will be overwritten with the query interval).