KMTronic is one of cheapest Web based wired IP DIN mountable relays available on the market. They not only are cheap, but also look cheap an have some shortcomings . Nevertheless they do the job (all my personal opinion).
One of the shortcommings is that the build in web-server is not able to proces a lot of requests at the same time. Therefore, do not set the “delay” parameters of the thing lower than 300 ms, even prefer 500 ms. If to many request in a short time, the device will hang and a reboot (disconnect power) is needed.
The devices can use DHCP, but no hostname is registered in DNS.
For those who want to use them, the only requirement is the HTTP binding.
The configuration :
UID: http:url:KMTronic1
label: KMTronic 8 x Relais nr 1
thingTypeUID: http:url
configuration:
authMode: BASIC
ignoreSSLErrors: false
baseURL: http://hostmame-or-ipaddress/
delay: 300
stateMethod: GET
refresh: 30
commandMethod: GET
contentType: text/html
timeout: 3000
bufferSize: 2048
channels:
- id: KMTronic-1-1
channelTypeUID: http:switch
label: KMTronic 1 Kanaal 1
description: ""
configuration:
onValue: "1"
commandTransformation: DSL:|if(input == "1") "FF0101" else "FF0100"
offValue: "0"
stateExtension: status.xml
commandExtension: "%2$s"
stateTransformation: XPATH:/response/relay2/text()
- id: KMTronic-1-2
channelTypeUID: http:switch
label: KMTronic 1 Kanaal 2
description: ""
configuration:
onValue: "1"
commandTransformation: DSL:|if(input == "1") "FF0201" else "FF0200"
offValue: "0"
stateExtension: status.xml
commandExtension: "%2$s"
stateTransformation: XPATH:/response/relay1/text()
- id: KMTronic-1-3
channelTypeUID: http:switch
label: KMTronic 1 Kanaal 3
description: ""
configuration:
onValue: "1"
commandTransformation: DSL:|if(input == "1") "FF0301" else "FF0300"
offValue: "0"
stateExtension: status.xml
commandExtension: "%2$s"
stateTransformation: XPATH:/response/relay3/text()
- id: KMTronic-1-4
channelTypeUID: http:switch
label: KMTronic 1 Kanaal 4
description: ""
configuration:
onValue: "1"
commandTransformation: DSL:|if(input == "1") "FF0401" else "FF0400"
offValue: "0"
stateExtension: status.xml
commandExtension: "%2$s"
stateTransformation: XPATH:/response/relay4/text()
- id: KMTronic-1-5
channelTypeUID: http:switch
label: KMTronic 1 Kanaal 5
description: ""
configuration:
onValue: "1"
commandTransformation: DSL:|if(input == "1") "FF0501" else "FF0500"
offValue: "0"
stateExtension: status.xml
commandExtension: "%2$s"
stateTransformation: XPATH:/response/relay5/text()
- id: KMTronic-1-6
channelTypeUID: http:switch
label: KMTronic 1 Kanaal 6
description: ""
configuration:
onValue: "1"
commandTransformation: DSL:|if(input == "1") "FF0601" else "FF0600"
offValue: "0"
stateExtension: status.xml
commandExtension: "%2$s"
stateTransformation: XPATH:/response/relay6/text()
- id: KMTronic-1-7
channelTypeUID: http:switch
label: KMTronic 1 Kanaal 7
description: ""
configuration:
onValue: "1"
commandTransformation: DSL:|if(input == "1") "FF0701" else "FF0700"
offValue: "0"
stateExtension: status.xml
commandExtension: "%2$s"
stateTransformation: XPATH:/response/relay7/text()
- id: KMTronic-1-8
channelTypeUID: http:switch
label: KMTronic 1 Kanaal 8
description: ""
configuration:
onValue: "1"
commandTransformation: DSL:|if(input == "1") "FF0801" else "FF0800"
offValue: "0"
stateExtension: status.xml
commandExtension: "%2$s"
stateTransformation: XPATH:/response/relay8/text()
Thanks to @rlkoshak for assisting getting this done.