Thanks again for you help Scott.
I think my log is looking pretty clean and I have the garage switch in my browser at my openHAB classic UI page that flips on and off with a status indicator that follows it.
I have the IRIS Garage Door Controller on the living room floor next to the Raspberry Pi. The door tilt sensor is still in the garage screwed onto the door. It seems odd that the status indicator on the openHAB classic UI page changes even though the garage door is not actually opening and closing. I only hope that it will give a true indication when things are worked out and the controller mounted in the garage.
I have an audible continuity tester attached to the leads on the IRIS Garage Door Controller and even though the logs look clear and the switch is moving in the browser UI page the contacts on the controller aren’t working yet.
Am I missing a step to bind the controller to the programming?
Thanks
Marc
Here are my logs and some of my files:
Log File:
openhab> log:tail
13:39:25.947 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'GarageAttached_Door' received command ON
13:39:25.967 [INFO ] [smarthome.event.ItemStateChangedEvent] - GarageAttached_Door changed from NULL to ON
13:39:26.677 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'GarageAttached_Door_Position' received command 0
13:39:26.704 [INFO ] [smarthome.event.ItemStateChangedEvent] - GarageAttached_Door_Position changed from NULL to 0
13:39:42.252 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'GarageAttached_Door' received command OFF
13:39:42.265 [INFO ] [smarthome.event.ItemStateChangedEvent] - GarageAttached_Door changed from ON to OFF
13:39:42.311 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'GarageAttached_Door_Position' received command 255
13:39:42.325 [INFO ] [smarthome.event.ItemStateChangedEvent] - GarageAttached_Door_Position changed from 0 to 255
13:48:47.541 [WARN ] [sshd.server.session.ServerSessionImpl] - exceptionCaught(ServerSessionImpl[openhab@/127.0.0.1:50926])[state=Opened] InterruptedByTimeoutException: null
14:14:21.782 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'GarageAttached_Door' received command ON
14:14:21.815 [INFO ] [smarthome.event.ItemStateChangedEvent] - GarageAttached_Door changed from OFF to ON
14:14:21.855 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'GarageAttached_Door_Position' received command 0
14:14:21.874 [INFO ] [smarthome.event.ItemStateChangedEvent] - GarageAttached_Door_Position changed from 255 to 0
14:14:31.255 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'GarageAttached_Door' received command OFF
14:14:31.282 [INFO ] [smarthome.event.ItemStateChangedEvent] - GarageAttached_Door changed from ON to OFF
14:14:31.331 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'GarageAttached_Door_Position' received command 255
14:14:31.351 [INFO ] [smarthome.event.ItemStateChangedEvent] - GarageAttached_Door_Position changed from 0 to 255
14:14:34.305 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'GarageAttached_Door' received command ON
14:14:34.355 [INFO ] [smarthome.event.ItemStateChangedEvent] - GarageAttached_Door changed from OFF to ON
14:14:34.383 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'GarageAttached_Door_Position' received command 0
14:14:34.397 [INFO ] [smarthome.event.ItemStateChangedEvent] - GarageAttached_Door_Position changed from 255 to 0
14:14:38.239 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'GarageAttached_Door' received command OFF
14:14:38.262 [INFO ] [smarthome.event.ItemStateChangedEvent] - GarageAttached_Door changed from ON to OFF
14:14:38.304 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'GarageAttached_Door_Position' received command 255
14:14:38.344 [INFO ] [smarthome.event.ItemStateChangedEvent] - GarageAttached_Door_Position changed from 0 to 255
14:16:24.904 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'GarageAttached_Door' received command ON
14:16:24.940 [INFO ] [smarthome.event.ItemStateChangedEvent] - GarageAttached_Door changed from OFF to ON
14:16:24.974 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'GarageAttached_Door_Position' received command 0
14:16:24.989 [INFO ] [smarthome.event.ItemStateChangedEvent] - GarageAttached_Door_Position changed from 255 to 0
14:16:31.299 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'GarageAttached_Door' received command OFF
14:16:31.331 [INFO ] [smarthome.event.ItemStateChangedEvent] - GarageAttached_Door changed from ON to OFF
14:16:31.369 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'GarageAttached_Door_Position' received command 255
14:16:31.404 [INFO ] [smarthome.event.ItemStateChangedEvent] - GarageAttached_Door_Position changed from 0 to 255
14:19:47.776 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'GarageAttached_Door' received command ON
14:19:47.810 [INFO ] [smarthome.event.ItemStateChangedEvent] - GarageAttached_Door changed from OFF to ON
14:19:47.844 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'GarageAttached_Door_Position' received command 0
14:19:47.883 [INFO ] [smarthome.event.ItemStateChangedEvent] - GarageAttached_Door_Position changed from 255 to 0
14:19:49.264 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'GarageAttached_Door' received command OFF
14:19:49.291 [INFO ] [smarthome.event.ItemStateChangedEvent] - GarageAttached_Door changed from ON to OFF
14:19:49.334 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'GarageAttached_Door_Position' received command 255
14:19:49.377 [INFO ] [smarthome.event.ItemStateChangedEvent] - GarageAttached_Door_Position changed from 0 to 255
14:19:53.181 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'GarageAttached_Door' received command ON
14:19:53.214 [INFO ] [smarthome.event.ItemStateChangedEvent] - GarageAttached_Door changed from OFF to ON
14:19:53.241 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'GarageAttached_Door_Position' received command 0
14:19:53.273 [INFO ] [smarthome.event.ItemStateChangedEvent] - GarageAttached_Door_Position changed from 255 to 0
14:20:26.679 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'GarageAttached_Door' received command OFF
14:20:26.709 [INFO ] [smarthome.event.ItemStateChangedEvent] - GarageAttached_Door changed from ON to OFF
14:20:26.731 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'GarageAttached_Door_Position' received command 255
14:20:26.756 [INFO ] [smarthome.event.ItemStateChangedEvent] - GarageAttached_Door_Position changed from 0 to 255
14:26:23.030 [WARN ] [sshd.server.session.ServerSessionImpl] - exceptionCaught(ServerSessionImpl[openhab@/127.0.0.1:50998])[state=Opened] InterruptedByTimeoutException: null
14:39:03.966 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'GarageAttached_Door' received command ON
14:39:04.109 [INFO ] [smarthome.event.ItemStateChangedEvent] - GarageAttached_Door changed from OFF to ON
14:39:04.153 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'GarageAttached_Door_Position' received command 0
14:39:04.183 [INFO ] [smarthome.event.ItemStateChangedEvent] - GarageAttached_Door_Position changed from 255 to 0
14:39:06.649 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'GarageAttached_Door' received command OFF
14:39:06.701 [INFO ] [smarthome.event.ItemStateChangedEvent] - GarageAttached_Door changed from ON to OFF
14:39:06.756 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'GarageAttached_Door_Position' received command 255
14:39:06.786 [INFO ] [smarthome.event.ItemStateChangedEvent] - GarageAttached_Door_Position changed from 0 to 255
Item File:
// This is the Items File
// Demo items
Switch DEMOSW "Demo Switch"
// Garage Door from 5iver (Scott Rushworth)03-29-2018 :
// https://community.openhab.org/t/openhab2-and-linear-ngd00z-4-garage-door-controller/26154/52?u=5iver
// ITEMS
Group gGarageDoor "Garage Doors"
Switch GarageAttached_Door "Garage Door (Attached) [MAP(garagedoor.map):%s]" <garagedoor> (gGarageAttached,gLock,gGarageDoor,gSleep_Security)
Number GarageAttached_Door_Position "Garage Door (Attached) [MAP(garagedoor.map):%s]" <garagedoor> (gGarageAttached,gGarageDoor,gSleep_Security) {channel="zwave:device:3c4a2c62:node4:barrier_state"}
Rules File:
// This is the Rules File
// Garage Door Rules from 5iver (Stott Rushworth) 03-29-2018:
// https://community.openhab.org/t/openhab2-and-linear-ngd00z-4-garage-door-controller/26154/52?u=5iver
// Rule
import org.eclipse.xtext.xbase.lib.Functions
val Functions$Function2<GenericItem, String, Boolean> barrierStateParser = [
inputItem,
inputItemState |
val actionItem = gGarageDoor.members.findFirst[item | item.name == (if (inputItem.name.contains("_Position")) inputItem.name.replace("_Position","") else (inputItem.name + "_Position"))]
logDebug("Rules", "Lock: Garage door events: Start: input item state [{}]=[{}], initial action item state [{}]=[{}]",inputItem.name,inputItemState,actionItem.name,actionItem.state.toString)
switch (inputItemState) {
case "255",//open
case "254",//opening
case "253",//stopped
case "252" : {//closing
if (actionItem.state != OFF) {
actionItem.postUpdate(OFF)
logDebug("Rules", "Lock: Garage door events: update switch after barrier_state change [{}]=OFF",actionItem.name)
}
}
case "0" : {//closed
if (actionItem.state != ON) {
actionItem.postUpdate(ON)
logDebug("Rules", "Lock: Garage door events: update switch after barrier_state change [{}]=ON",actionItem.name)
}
}
case "ON" : {
actionItem.sendCommand(0)
logDebug("Rules", "Lock: Garage door events: update barrier_state after switch state change [{}]=0",actionItem.name)
}
case "OFF" : {
actionItem.sendCommand(255)
logDebug("Rules", "Lock: Garage door events: update barrier_state after switch state change [{}]=255",actionItem.name)
}
}
true
]
rule "Lock: Update garage door item states"
when
Item GarageAttached_Door received command
or
Item GarageDetached_Door received command
or
Item GarageAttached_Door_Position changed
or
Item GarageDetached_Door_Position changed
then
barrierStateParser.apply(triggeringItem as GenericItem,(if (triggeringItem.name.contains("Position")) triggeringItem.state.toString else receivedCommand.toString))//,proxyItems.get(triggeringItem.name))
end
Sitemap Files:
sitemap home label="MK-SmartHouse"
{
Frame label="Demo"
{
Switch item=DEMOSW
}
Frame label="Garage Door"
{
Switch item=GarageAttached_Door
Text item=GarageAttached_Door_Position
}
Transform Files:
// Garage Door Map 03-31-2018
0=CLOSED
ON=CLOSED
252=CLOSING
253=STOPPED
254=OPENING
255=OPEN
OFF=OPEN
-=Unknown
NULL=Unknown
Thanks again
Marc