Hello,
up to now I use
sendHttpGetRequest("http://localhost:1001/cmd=IT%20A%201%20LEARN%20ON")
and
sendHttpGetRequest("http://localhost:1001/cmd=IT%20A%201%20LEARN%20OFF")
for Dimming to e.g.55% it would be
sendHttpGetRequest("http://localhost:1001/cmd=IT%20A%201%20LEARN%2055")
in a rule to switch an lamp on an off.
I want to make this into a Item in Openhab3/binding-http.
Can someone please explain to me what I have to fill in wich fields?
HTTP - Bindings | openHAB is not very helpful to me.
Here is the Code I get, but not Working
UID: http:url:1e7e6088ff
label: Lightman_Thing
thingTypeUID: http:url
configuration:
authMode: BASIC
ignoreSSLErrors: false
baseURL: http://localhost:1001/cmd=IT%20
refresh: 30
commandMethod: GET
contentType: text/plain
timeout: 3000
bufferSize: 2048
location: Other
channels:
- id: Channel1
channelTypeUID: http:dimmer
label: Channel1
description: “”
configuration:
onValue: ON
mode: WRITEONLY
offValue: OFF
commandExtension: A%201%20LEARN%20ON2$s
var/log/openhab/openhab.log says
2020-12-31 08:50:22.247 [WARN ] [nding.http.internal.HttpThingHandler] - Creating request for 'http://localhost:1001/cmd=IT%20/A%201%20LEARN%20ON2$s' failed: Conversion = '2'
Many thanks for help
Neuroplant