thingsboard / thingsboard-gateway

Open-source IoT Gateway - integrates devices connected to legacy and third-party systems with ThingsBoard IoT Platform using Modbus, CAN bus, BACnet, BLE, OPC-UA, MQTT, ODBC and REST protocols
https://thingsboard.io/docs/iot-gateway/what-is-iot-gateway/
Apache License 2.0
1.76k stars 845 forks source link

[HELP or New Feature] [OPC-UA] Contextualize each timeseries. #1477

Open ivanlr opened 3 months ago

ivanlr commented 3 months ago

Describe the issue How can be contextualized each timeseries, including for each one for instance the Node ID? We have set up a device in an IoT Gateway, with thousands of timeseries set up in following way:

.... 
{
    "key": "deviceUai",
    "path": "${ns=2;b=lywjfXXS5+CngBP9jxUlXQ==}"
 }
.....

Therefore we would like to have something like:

{
    "key": "deviceUai",
    "path": "${ns=2;b=lywjfXXS5+CngBP9jxUlXQ==}",
    "metadata": {"nodeID": "ns=2;b=lywjfXXS5+CngBP9jxUlXQ==", "RelativeBrowsePath":"Root/Facility/OP_1/DeviceUai"}
 }

Would it be possible to do a kind of the previous approach?

Connector name (If you need help with some connector/converter): OPC-UA Connector

Versions (please complete the following information):