Toggle Switch (on/off) and Write Value Converter

Hello, I have a Shelly Plug S (Gen3) here for testing purposes and have first configured an MQQT agent in Openremote and then added my plug asset. So far, this is working, i.e., the socket switches as desired. However, it is not yet running smoothly; I see errors in the OR log, and the toggle switch itself always displays “Send failed.” Here is a screenshot of my configuration:

That’s the json:

{
  "id": "6zH57b5HATLJkRVsAO4PVP",
  "writeValueConverter": {
    "TRUE": "{\"id\":1,\"src\":\"openremote\",\"method\":\"Switch.Set\",\"params\":{\"id\":0,\"on\":true}}",
    "FALSE": "{\"id\":1,\"src\":\"openremote\",\"method\":\"Switch.Set\",\"params\":{\"id\":0,\"on\":false}}"
  },
  "writeValue": "",
  "messageMatchFilters": [
    {
      "type": "jsonPath",
      "path": "$.params[\"switch:0\"].output",
      "returnFirst": false,
      "returnLast": true
    }
  ],
  "updateOnWrite": false,
  "subscriptionTopic": "sp-wz-01/events/rpc",
  "publishTopic": "sp-wz-01/rpc",
  "type": "MQTTAgentLink"
}

I see the following messages in the Openremote log:

16.12.2025 22:38:00 WARN PROTOCOL ProtocolUtil Cannot send linked attribute update: assetId=6vb1iI2WBAl7DyqeLeMvnq, attribute=onOff
16.12.2025 22:38:00 WARN PROTOCOL ProtocolUtil Failed to convert value: class java.lang.String → class java.lang.Boolean
16.12.2025 22:38:00 WARN MODEL_AND_VALUES ValueUtil Failed to parse JSON

Can anyone give me a hint as to what I need to change? Thanks in advance!

Regards,
Peter

Maybe this topic helps?

I already found this topic but it does not solve my problem. The Plug is switching but i get these errors and i dont want to ignore this.