Today I notice similar issue. Long time ago I create ‘virtual’ switch to turn on/off LEDs from two gang switch on wall:
[{"id":"a266936299c8c09e","type":"server-state-changed","z":"6209116823974ee4","name":"LED On","server":"d7f5ad93.ff931","version":4,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"light.light_switch_4","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":90,"y":60,"wires":[["5e40f2c47b467d62"],["bb7a828c4462e5c9"]]},{"id":"5e40f2c47b467d62","type":"api-call-service","z":"6209116823974ee4","name":"Led RTV","server":"d7f5ad93.ff931","version":5,"debugenabled":true,"domain":"light","service":"turn_on","areaId":[],"deviceId":["0f22eb6006923fc9c17266adc2a9ccd0"],"entityId":[],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":220,"y":40,"wires":[[]]},{"id":"bb7a828c4462e5c9","type":"api-call-service","z":"6209116823974ee4","name":"Led RTV","server":"d7f5ad93.ff931","version":5,"debugenabled":true,"domain":"light","service":"turn_off","areaId":[],"deviceId":["0f22eb6006923fc9c17266adc2a9ccd0"],"entityId":[],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":220,"y":80,"wires":[[]]},{"id":"d7f5ad93.ff931","type":"server","name":"Home Assistant","addon":true}]
And this works great up to today. I was able to control defined LEDs from HAS app and from wall switch with no issue. Today somethings brake, when LEDs are turned On from app, browser etc, Node Red turn them Off. When I turn On LEDs from switch, then they works.
I suspect this may be related to recent Home Assistant updates. This morning I installed 2023.4.4, until yesterday evening there were no problems.