``` conditions: - if: msg.meta.opcua_tag_name ...
# umh-support
j
Copy code
conditions:
    - if: msg.meta.opcua_tag_name && msg.meta.opcua_tag_name.includes("MOTOR2")
      then: |
        msg.meta.location_path += ".unit2";
        msg.meta.virtual_path = "motor2";
        return msg;
MOTOR2_SP MOTOR2_PV MOTOR2_CURRENT MOTOR2_SPEED MOTOR2_INTERLOCK --> enterprise.site.area.line1.unit2._historian.motor2.MOTOR2_SP enterprise.site.area.line1.unit2._historian.motor2.MOTOR2_PV etc.
2 Views