After migration to openhab3 there is still the task left to migrate http-Things to openhab3 so to http2
I searched and tried a lot, but I don’t get it to work.
Old http1:
Switch R2D2_Basis "R2D2 go Home (dauerhaft)" (gR40) { http=">[ON:GET:http://10.xx.xx.xxx/xml?cmd=mode&mode=home&user=USER&pass=PASS]" }
I tried in new http2 binding with things configuration and items:
Thing http:url:r2d2commands "HTTP: R2D2 Commands" [ baseURL="http://10.xx.xx.xxx/", commandMethod="GET",
username="USER", password="PASS",
timeout="10000", refresh="90" ] {
Channels:
Type switch : mode-home "Mode Home" [ mode="WRITEONLY", commandExtension="xml?cmd=mode&mode=%2$s", onValue="home", offValue="home" ]
}
Switch R2D2_Basis "R2D2 go Home (dauerhaft)" (gAll, gR40) { channel="http:url:r2d2commands:mode-home" }
I tried with traces, tried a connection to my webserver too (there the right get is shown, directly working on API if used by browser), but the Mover didn’t react to this command if send via http binding.
In openhab with trace on I can see:
2021-04-01 23:28:39.281 [TRACE] [nding.http.internal.HttpThingHandler] - Sending to 'http://10.XX.XX.XXX/xml?cmd=mode&mode=auto': Method = {GET}, Headers = {Accept-Encoding: gzip, User-Agent: Jetty/9.4.20.v20190813}, Content = {null}
But no errors. Anyone has got an Idea whats my mistake?