Re: HTTP Switch, ITEM erstellen,
Verfasst: 11. Dez 2021 10:14
Und hier noch von der home page eine PHP steuerung?
https://info.kmtronic.com/php-scripts-c ... a-php.html
https://info.kmtronic.com/php-scripts-c ... a-php.html
Code: Alles auswählen
yourIP/relays.cgi?relay=1%20-%20Toggle%20relay%201
Code: Alles auswählen
sendHttpGetRequest("http://192.168.178.19/openhab_php/KMTronic.php?schalter=ein", 15000)
Code: Alles auswählen
var ergebnis = sendHttpGetRequest("http://admin:admin@192.168.178.99/FF0101",10000)
Das bild ist aus dem WWW.auf dem Bild ist 192.168.1.5:1880 zu sehen ,
Code: Alles auswählen
192.168.178.99/relays.cgi?relay=1
Ich suche noch wie das geht??hast du Php am laufen ? dann rufe doch aus openhab das Php Script auf!
Code: Alles auswählen
UID: http:url:0de4fe720f
label: HTTP URL Thing
thingTypeUID: http:url
configuration:
authMode: BASIC
ignoreSSLErrors: true
baseURL: http://192.168.178.99:80/
password: root
delay: 0
stateMethod: POST
refresh: 30
commandMethod: POST
contentType: text/html
timeout: 3000
username: admin
bufferSize: 2048
channels:
- id: km1
channelTypeUID: http:switch
label: km1
description: ""
configuration:
onValue: "1"
mode: WRITEONLY
offValue: "0"
commandExtension: FF010
Code: Alles auswählen
UID: http:url:0de4fe720f
label: HTTP URL Thing
thingTypeUID: http:url
configuration:
authMode: BASIC
ignoreSSLErrors: true
baseURL: http://192.168.178.99/
password: root
delay: 0
stateMethod: POST
refresh: 30
commandMethod: POST
contentType: text/html
timeout: 3000
username: admin
bufferSize: 2048
channels:
- id: km1
channelTypeUID: http:switch
label: km1
description: ""
configuration:
onValue: "FF0101"
offValue: "FF0100"
commandExtension: %2$s
Code: Alles auswählen
UID: http:url:0de4fe720f
label: HTTP URL Thing
thingTypeUID: http:url
configuration:
authMode: BASIC
ignoreSSLErrors: true
baseURL: http://192.168.178.199:80/
delay: 0
stateMethod: GET
refresh: 30
commandMethod: GET
timeout: 3000
bufferSize: 2048
channels:
- id: km1
channelTypeUID: http:switch
label: km1
description: ""
configuration:
onValue: FF0101
offValue: FF0100
commandExtension: "%2$s"