Anyone got it already working on OpenHAB3 ?
Sending requests is working, but the update not…
My configuration:
UID: http:url:8208d83d49
label: RademacherRolladen
thingTypeUID: http:url
configuration:
authMode: BASIC
ignoreSSLErrors: false
baseURL: http://192.168.0.23/v4/devices
delay: 1000
stateMethod: GET
refresh: 30
commandMethod: GET
contentType: application/json
timeout: 3000
bufferSize: 4096
location: Buero
channels:
- id: Rademacher_RolladenBuero
channelTypeUID: http:rollershutter
label: RolladenBuero
description: ""
configuration:
mode: READONLY
stateTransformation: JSONPATH:$.devices[?(@.did==1)].statusesMap.Position
In the log I get:
2021-09-24 15:40:35.003 [WARN ] [ofiles.JSonPathTransformationProfile] - Could not transform state 'UNDEF' with function '$.devices[?(@.did==1)].statusesMap.Position' and format '%d'
Why do I get “undef” ?
Json looks good.
{
"response":"get_visible_devices",
"devices":[
{
"description":"Rolladen Fenster",
"deviceGroup":2,
"did":1,
"hasErrors":0,
"iconSetInverted":0,
"iconSet":{
"k":"iconset8"
},
"messages":[
],
"name":"Büro",
"properties":{
...
},
"statusValid":true,
"statusesMap":{
"Manuellbetrieb":0,
"Position":100
},
...
Sending put is for working:
Sending put {"name":"GOTO_POS_CMD","value":"100"} to http://192.168.0.23/devices/1
I have this problem since update from OpenHAB 2 to 3.
Anyone got it working on OH3?