But if you are on Node RED, why not sending the mqtt command without a detour via HA?
Set msg.payload to ON and use the mqtt node to send it. Like this example (import via clipboard in node red):
[{"id":"b32f7b62.61d49","type":"inject","z":"50358695.c485b","name":"Einschalten","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"on","payloadType":"str","x":310,"y":1040,"wires":[["1a0f0168.fdc92f"]]},{"id":"1a0f0168.fdc92f","type":"mqtt out","z":"50358695.c485b","name":"Lampe","topic":"ha/Az/Stehlampe/cmnd/POWER","qos":"","retain":"","broker":"dfba118.b6592f","x":530,"y":1060,"wires":[]},{"id":"1c7912bc.03df15","type":"inject","z":"50358695.c485b","name":"Ausschalten","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"off","payloadType":"str","x":310,"y":1080,"wires":[["1a0f0168.fdc92f"]]},{"id":"dfba118.b6592f","type":"mqtt-broker","name":"mosquitto","broker":"192.168.200.58","port":"1883","clientid":"NodeRed","usetls":false,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""}]