Dynamic Value Injection with {$value} won't work

Hello everyone,
I’m having trouble using the {$value} keyword for value injection with an MQTT-Agent.

If have I set up the Write Value Parameter to the following

{
  "value": {$value}
}

and my Agent-Link configuration looks like this:

{
  "id": "4JhqVrEOnfGg6daeJV5scP",
  "writeValue": "{\n  \"value\": {$value}\n}",
  "updateOnWrite": true,
  "subscriptionTopic": "motor/TEST/cenitales/position",
  "publishTopic": "motor/TEST/cenitales/command",
  "type": "MQTTAgentLink"
}

But instead of receiving

{
  "value": 50
}

I receive the exact content of that field without anything replaced:

{
  "value": {$value}
}

I also tried several different combinations of attribute-types, parameters, contents, etc. but nothing seems to work.
Am I missing something essential?

Thank you!

Hi Radyl,

This should be %VALUE% if you have a recent version of OpenRemote :slight_smile:

Kind regards,

Don

2 Likes

Hi Don,

thank you very much! With %VALUE% it works like intended