I have a switch, however OH3 does not seem to get the current state.
When i call http://192.168.178.161/getStatus I get the following response:
{"status": "online", "isTurnedOn": "ON"}
My thing configuration is as followed_
Thing http:url:bewaesserungSwitch1 "Bewaesserung" @ "Garten" [baseURL="http://192.168.178.161/", refresh=10, timeout=60] {
Channels:
Type switch : setSwitch [stateExtension="getStatus", stateTransformation="JSONPATH:$.isTurnedOn", commandExtension="%2$s", onValue="on", offValue="off", commandMethod="GET" ]
}
Calling /rest/items/bewaesserungSwitch1 always returns “UNDEF” as StateValue
I assume my state transformation is not correct - What can I do?