vorab schon mal vielen Dank für alle die sich mein Problem hier überhaupt anschauen.
Zuerst die gute Nachricht: Regel und Binding funktionieren so wie sie sollen - ich erhalte nur im openHAB Log folgenden Fehler:
Code: Alles auswählen
[WARN ] [p.internal.http.HttpResponseListener] - Requesting 'http://192.168.169.21/100' (method='POST', content='org.eclipse.jetty.client.util.StringContentProvider@168cab1') failed: 404 Not found
Code: Alles auswählen
Thing http:url:G_Relay "Relais Elektroraum" [ baseURL="http://192.168.169.21" commandMethod="POST"] {
Channels:
Type switch : G_Relay1 "Garagentor" [ onValue="101", offValue="100", commandExtension="%2$s" ]
}
Code: Alles auswählen
Switch G_Relay1 "Garage" { channel="http:url:G_Relay:G_Relay1" } // Garagentor
Switch Garage
Code: Alles auswählen
rule
when
Item Garage received command
then
// sendBroadcastNotification("Garage door energised")
G_Relay1.sendCommand(ON)
logInfo("RULE", "--> Garagentuere wird geoeffnet/geschlossen")
Thread::sleep(1500)
G_Relay1.sendCommand(OFF)
Garage.postUpdate(OFF)
end
Code: Alles auswählen
[WARN ] [p.internal.http.HttpResponseListener] - Requesting 'http://192.168.169.21/100' (method='POST', content='org.eclipse.jetty.client.util.StringContentProvider@168cab1') failed: 404 Not found
Vielen Dank im Voraus für Eure Mühe!
Grüße, mercury