I need help with OH3 and the new http binding syntax that I don’t understand:
String lupus_token “Token” (gLupus_XT3) { http="<[ht tp://user:pw@192.168.2.5/action/tokenGet:6000000:JSONPATH($.message)]" }(Bearbeitet)
this was the string I used in OH2.5 which worked very fine. But it seems that’s the old OH1 syntax for the http binfing (if I’m right…). I have read the docs for the binding and I tried different things, but it failed. I want to do it via text file. Can someone help me transforming it?
I have tried this:
Thing http:url:lupus_token “Lupus Token” [ baseURL=“http://192.168.2.5”, username=“user”, password=“pw”, refresh=60 ] {
Channels:
Type string: lupus_token “Lupus Token” [ stateExtension=“action/tokenGet:6000000:”, stateTransformation=“JSONPATH:$.message”]
}
Result: Requesting ‘http://192.168.2.5/action/tokenGet:6000000:’ (method=‘GET’, content=‘null’) failed: 404 Site or Page Not Found
Any advice? Thanks in advance!