i like to run am XML Post. I need to do the same like
curl -X POST http://ip:8080/user/var/120/10221/0/0/12187 -H "Content-Type: text/plain" -d 'value= 500'
my Channel:
ID: http:url:ETAXMLSolarMin
label: ETA XML Set Solar Min
thingTypeUID: http:url
configuration:
authMode: BASIC
ignoreSSLErrors: false
baseURL: http://192.168.188.24:8080/user/var/
delay: 0
stateMethod: GET
refresh: 20
commandMethod: POST
contentType: text/plain
timeout: 3000
bufferSize: 2048
channels:
- id: ETASolarSetMin
channelTypeUID: http:number
label: ETA Solar Set Min
description: ""
configuration:
mode: READWRITE
unit: °C
stateExtension: 120/10221/0/0/12187
commandContent: value=%2$s
escapedUrl: false
commandExtension: 120/10221/0/0/12187
stateTransformation: XSLT:eta_numeric.xsl
my Item
label: ETA Solar Set Min
type: Number:Temperature
category: temperature
groupNames: []
tags:
- Measurement
There is no such commandContent property. It looks like you intended to use the commandTransformation property. In which case it needs to be formatted as a transform (with the appropriate transform add-on installed), just like you have with the stateTransformation.
See here for an example that uses the regex transform to do something similar although there are other options as well such as a script transform: