Hey guys,
I’m trying to get my network relaisboard working thought the OH 3.2 http binding. I tried a lot of variations in my think config but its still not working with my config.
I can control the channel of the board trough the browser or straight in my linux terminal with curl by putting in:
for turning port1 on: http://admin:12345678@192.168.0.10/relay.cgi?relayon1=on
for turning port1 off: http://admin:12345678@192.168.0.10/relay.cgi?relayoff1=off
Thats how my thing config looks like in OH:
UID: http:url:7341deb368
label: HTTP URL Thing
thingTypeUID: http:url
configuration:
ignoreSSLErrors: false
headers:
- ""
stateMethod: GET
refresh: 30
commandMethod: GET
timeout: 3000
authMode: BASIC
baseURL: http://192.168.0.10/
password: "12345678"
delay: 0
contentType: text/plain
bufferSize: 2048
username: admin
channels:
- id: test
channelTypeUID: http:switch
label: test
description: ""
configuration:
onValue: relay.cgi?relayon1=on
offValue: relay.cgi?relayoff1=off
Cant figure out what I’m doing wrong?!