Switches interlock HA

Hi, I'm a complete newcomer to NodeRed. I'm solving a problem now and I can't figure it out. These are Christmas lights. In HomeAssistant I have created two "helpers" buttons. One is "Permanent ON" and should permanently turn on the Christmas lights.
The second button "Vánoční režim" should turn on the Christmas lights only at a certain time, for example from 6pm to 6am, every day.
Both buttons should be locked to each other. So if one is running, the other should not go on. How can such a thing be done? Thank You.

[{"id":"2dbe105ec5174f77","type":"tab","label":"Vánoční Režim","disabled":false,"info":"Spínání vánočního osvětlení dle nastaveného času","env":},{"id":"e77c446ed4ac19c4","type":"server-state-changed","z":"2dbe105ec5174f77","name":"Permanent ON","server":"34238bc.af2c274","version":3,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"input_boolean.vanocni_zasuvky","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"on","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"permanentON","valueType":"str"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":170,"y":260,"wires":[["e235b7c3499a66c7"],["cdc63e5831395540"]]},{"id":"db2565dbfe8ca6ec","type":"server-state-changed","z":"2dbe105ec5174f77","name":"Vánoční Režim","server":"34238bc.af2c274","version":3,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"input_boolean.vanocni_rezim","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"on","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":170,"y":360,"wires":[,]},{"id":"e235b7c3499a66c7","type":"api-call-service","z":"2dbe105ec5174f77","name":"Pergola Switch ON","server":"34238bc.af2c274","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_on","entityId":"switch.pergola_switch","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":,"queue":"none","x":710,"y":200,"wires":[]},{"id":"cdc63e5831395540","type":"api-call-service","z":"2dbe105ec5174f77","name":"Pergola Switch OFF","server":"34238bc.af2c274","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"switch.pergola_switch","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":,"queue":"none","x":720,"y":260,"wires":[]},{"id":"34238bc.af2c274","type":"server","name":"Home Assistant","version":2,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":30}]