I found the instructions somewhere to bring the http binding into debug (and separate, of course out of) logging mode, using the console and OH3.
log:set DEBUG org.openhab.binding.http
log:set DEFAULT org.openhab.binding.http
But this does not show me any new information in the openhab-cli showlogs
. But this would be the only way to debug my delock http switch and see if the url that the http binding constructs, is actually the one I want. It is not working, probably some stupid mistake, I would resolve using increased log level.
Many thanks for any help!
OH3 thing code + OH2 item file.
UID: http:url:6e1dbd6969
label: Wohnzimmer_Delock
thingTypeUID: http:url
configuration:
authMode: BASIC
ignoreSSLErrors: false
baseURL: http://delock-switch-4909.fritz.box
refresh: 30
commandMethod: POST
timeout: 3000
bufferSize: 2048
channels:
- id: LichtWohn
channelTypeUID: http:switch
label: Licht Stehlampe
description: ""
configuration:
onValue: Power On
offValue: Power Off
commandExtension: cm?cmnd=%2$s
Switch delock1 "Wohnzimmer Lampe" { http=">[ON:POST:http://delock-switch-4909.fritz.box/cm?cmnd=Power%%20On] >[OFF:POST:http://delock-switch-4909.fritz.box/cm?cmnd=Power%%20Off$
- Platform information:
- Hardware: RPI3
- OS: Debian
- Java Runtime Environment: 11
- openHAB version: 3.0.0-1