Unable to write values to the OPC UA server

If the node needs the above :point_up: format - why are you setting it up differently?

try...

msg.topic = ""
msg.nodetype ="inject"
msg.injectType = "write"
msg.addressSpaceItems = [
    {"name":"","nodeId":"ns=1;s=ExitStation","datatypeName":"Boolean"}
]
	
msg.valuesToWrite = [
    msg.payload
]
return msg;

Untested: this was formed from info in this post: Issue with opcua and s7 -> OPCServer in node red with many tags


Lastly, have you checked out the built in examples?

ctrl-iexamples