How to concatenate string

I need to send single parameter as a string to a virtual device that is a URL string plus the value of a slider in another device. I can’t figure out how to concatenate those two. Here’s what I have tried in the then:

        {
          "command": {
            "devices": ["3b70d48d-d458-472e-befd-e18afd173382"],
            "commands": [
              {
                "component": "main",
                "capability": "partyvoice23922.webrequest",
                "command": "GET",
                "arguments": [
                  {
                    "string": {
                      "concat": [
                        { "value": "http://192.168.1.172/cm?cmnd=TempTargetSet1%20" },
                        {
                          "device": {
                            "devices": ["b060adda-ecfa-4e49-ad6a-fe8fc2d7322"],
                            "component": "main",
                            "capability": "thermostatCoolingSetpoint",
                            "attribute": "coolingSetpoint"
                          }
                        }
                      ]
                    }
                  }
                ]
              }
            ]
          }
        }

I get “422 The request is malformed. Unknown target: Malformed body on line 1:383”
Is there a way to send the edited URL to webrequest?

Maybe you can use temperature substitution

Copy using Rules API thermostatCoolingSetpoint to Temperature & Humidity device’s temperature and then temperature can be included in the URL string or request body with variable substitution: ${temperature}

Thanks @TapioX.
The Temperature & Humidity device in this Edge driver actually creates exactly the device I need and eliminates the need for the Rule all together. I didn’t see it buried in the Web Requestor thread.

1 Like