Node-red-contrib-opcua write value to server issue

Hi,

I have been experiencing an issue for the last couple of days.

My OPC UA server is running correctly: I can create folders and variables with default values, assign permissions, and everything seems to work fine except updating variable values.

Since updating the value directly on the server did not work, I also tried writing the value through an OPC UA client connected to localhost. In both cases:

  • no error is returned,
  • the client node status says "value written",
  • but in Prosys OPC UA Browser, the variable still keeps its default value 0.0 (DataType: Float).
  • the target variable exists
  • DataType is Float (correct)
  • the write operation does not return any error

I really don't understand what is wrong in my code.

[{"id":"fae2ca326f795bce","type":"inject","z":"bd446618c07ec0ce","name":"","props":[{"p":"topic","vt":"str"},{"p":"datatype","v":"Float","vt":"str"},{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"ns=1;s=FESP_100144.Electricity.I_Zone_2;browseName=I_Zone_2","payload":"66.6","payloadType":"str","x":4790,"y":200,"wires":[["ad38df40190a1bb7","d4210533c043c786"]]},{"id":"ad38df40190a1bb7","type":"OpcUa-Item","z":"bd446618c07ec0ce","item":"ns=1;s=FESP_100144.Electricity.I_Zone_2;browseName=I_Zone_2","datatype":"Float","value":"66.6","name":"I_Zone_2","x":4980,"y":200,"wires":[["b5e029dae1ea8319","fbf246c61e803b7c"]]},{"id":"b5e029dae1ea8319","type":"OpcUa-Client","z":"bd446618c07ec0ce","endpoint":"d572e5ca6d878c43","action":"write","deadbandtype":"a","deadbandvalue":1,"time":10,"timeUnit":"s","certificate":"n","localfile":"","localkeyfile":"","securitymode":"None","securitypolicy":"None","useTransport":true,"maxChunkCount":1,"maxMessageSize":8192,"receiveBufferSize":8192,"sendBufferSize":8192,"setstatusandtime":false,"keepsessionalive":false,"name":"","applicationName":"","applicationUri":"","x":5180,"y":200,"wires":[["20247d83d3716c53"],["7ad2a4e88c4b590d"],["1a6447c76a44e6b8"]]},{"id":"fbf246c61e803b7c","type":"debug","z":"bd446618c07ec0ce","name":"","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"","statusType":"counter","x":5145,"y":140,"wires":[],"l":false},{"id":"20247d83d3716c53","type":"debug","z":"bd446618c07ec0ce","name":"","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"","statusType":"counter","x":5345,"y":160,"wires":[],"l":false},{"id":"7ad2a4e88c4b590d","type":"debug","z":"bd446618c07ec0ce","name":"","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"","statusType":"counter","x":5345,"y":220,"wires":[],"l":false},{"id":"1a6447c76a44e6b8","type":"debug","z":"bd446618c07ec0ce","name":"","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"","statusType":"counter","x":5345,"y":280,"wires":[],"l":false},{"id":"d4210533c043c786","type":"debug","z":"bd446618c07ec0ce","name":"","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"true","targetType":"full","statusVal":"","statusType":"counter","x":4965,"y":140,"wires":[],"l":false},{"id":"d572e5ca6d878c43","type":"OpcUa-Endpoint","name":"Local boucle","endpoint":"opc.tcp://localhost:4840","secpol":"None","secmode":"None","none":false,"login":true,"usercert":false,"usercertificate":"","userprivatekey":""},{"id":"18a6e72559c389d7","type":"global-config","env":[],"modules":{"node-red-contrib-opcua":"0.2.350"}}]

If anyone has an explanation or a solution, I would be very grateful.

Thanks in advance.