OK, whenever I try to go into the the Classic UI interface I get this error in the openhab-cli console:
openhab> log:tail
04:48:38.788 [WARN ] [ig.dispatch.internal.ConfigDispatcher] - Could not parse line 'Define your MQTT broker connections here for use in the MQTT Binding or MQTT'
04:48:40.599 [INFO ] [i.dashboard.internal.DashboardService] - Started dashboard at http://192.168.0.12:8080
04:48:40.605 [INFO ] [i.dashboard.internal.DashboardService] - Started dashboard at https://192.168.0.12:8443
04:48:43.861 [INFO ] [.io.openhabcloud.internal.CloudClient] - Connected to the openHAB Cloud service (UUID = 4a44c372-3ca2-4348-a2b6-42fd2d2deccf, base URL = http://localhost:8080)
04:48:48.426 [INFO ] [del.core.internal.ModelRepositoryImpl] - Loading model 'garagedoor.items'
04:48:55.021 [INFO ] [del.core.internal.ModelRepositoryImpl] - Validation issues found in configuration model 'garagedoor.rules', using it anyway:
There is no context to infer the closure's argument types from. Consider typing the arguments or put the closures into a typed context.
04:48:55.031 [INFO ] [del.core.internal.ModelRepositoryImpl] - Loading model 'garagedoor.rules'
04:48:55.358 [INFO ] [rthome.model.lsp.internal.ModelServer] - Started Language Server Protocol (LSP) service on port 5007
04:48:55.962 [WARN ] [del.core.internal.ModelRepositoryImpl] - Configuration model 'home.sitemap' has errors, therefore ignoring it: [7,17]: no viable alternative at input '“'
04:48:56.301 [INFO ] [del.core.internal.ModelRepositoryImpl] - Loading model 'home.things'
04:48:56.306 [WARN ] [del.core.internal.ModelRepositoryImpl] - Configuration model 'home.things' is either empty or cannot be parsed correctly!
04:48:56.399 [INFO ] [thome.event.ItemChannelLinkAddedEvent] - Link 'GarageAttached_Door_Position-zwave:device:3c4a2c62:node4:barrier_state' has been added.
04:48:59.606 [INFO ] [openhab.io.transport.mqtt.MqttService] - MQTT Service initialization completed.
04:48:59.609 [INFO ] [rt.mqtt.internal.MqttBrokerConnection] - Starting MQTT broker connection 'broker'
04:49:00.618 [INFO ] [.basic.internal.servlet.WebAppServlet] - Started Basic UI at /basicui/app
04:49:01.150 [INFO ] [lassic.internal.servlet.WebAppServlet] - Started Classic UI at /classicui/app
04:49:01.276 [INFO ] [marthome.ui.paper.internal.PaperUIApp] - Started Paper UI at /paperui
04:49:01.430 [INFO ] [.ui.habmin.internal.servlet.HABminApp] - Started HABmin servlet at /habmin
04:49:01.628 [INFO ] [bpanel.internal.HABPanelDashboardTile] - Started HABPanel at /habpanel
04:49:05.411 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'zwave:device:3c4a2c62:node4' changed from UNINITIALIZED to UNINITIALIZED (BRIDGE_UNINITIALIZED)
04:49:05.418 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'zwave:device:3c4a2c62:node3' changed from UNINITIALIZED to UNINITIALIZED (BRIDGE_UNINITIALIZED)
04:49:05.599 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'zwave:serial_zstick:3c4a2c62' changed from UNINITIALIZED to INITIALIZING
04:49:05.641 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'zwave:serial_zstick:3c4a2c62' changed from INITIALIZING to OFFLINE (BRIDGE_OFFLINE): Controller is offline
04:49:05.646 [INFO ] [ding.zwave.handler.ZWaveSerialHandler] - Connecting to serial port '/dev/ttyACM0'
04:49:05.810 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'zwave:device:3c4a2c62:node3' changed from UNINITIALIZED (BRIDGE_UNINITIALIZED) to INITIALIZING
04:49:05.815 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'zwave:device:3c4a2c62:node4' changed from UNINITIALIZED (BRIDGE_UNINITIALIZED) to INITIALIZING
04:49:05.831 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'zwave:device:3c4a2c62:node3' changed from INITIALIZING to OFFLINE (BRIDGE_OFFLINE): Controller is offline
04:49:05.849 [INFO ] [ding.zwave.handler.ZWaveSerialHandler] - Serial port is initialized
04:49:05.852 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'zwave:device:3c4a2c62:node4' changed from INITIALIZING to OFFLINE (BRIDGE_OFFLINE): Controller is offline
04:49:05.889 [INFO ] [ave.internal.protocol.ZWaveController] - Starting ZWave controller
04:49:05.891 [INFO ] [ave.internal.protocol.ZWaveController] - ZWave timeout is set to 5000ms. Soft reset is false.
04:49:09.222 [INFO ] [sage.SerialApiGetInitDataMessageClass] - NODE 1: Node found
04:49:09.226 [INFO ] [sage.SerialApiGetInitDataMessageClass] - NODE 3: Node found
04:49:09.228 [INFO ] [sage.SerialApiGetInitDataMessageClass] - NODE 4: Node found
04:49:09.231 [INFO ] [sage.SerialApiGetInitDataMessageClass] - ZWave Controller using Controller API
04:49:09.233 [INFO ] [sage.SerialApiGetInitDataMessageClass] - ZWave Controller is Primary Controller
04:49:09.236 [INFO ] [sage.SerialApiGetInitDataMessageClass] - ------------Number of Nodes Found Registered to ZWave Controller------------
04:49:09.238 [INFO ] [sage.SerialApiGetInitDataMessageClass] - # Nodes = 3
04:49:09.241 [INFO ] [sage.SerialApiGetInitDataMessageClass] - ----------------------------------------------------------------------------
04:49:09.650 [WARN ] [ave.internal.protocol.ZWaveController] - NODE 3: Restore from config: Error. Data invalid, ignoring config.
04:49:12.903 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'zwave:serial_zstick:3c4a2c62' changed from OFFLINE (BRIDGE_OFFLINE): Controller is offline to ONLINE
04:49:12.912 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'zwave:device:3c4a2c62:node4' changed from OFFLINE (BRIDGE_OFFLINE): Controller is offline to ONLINE
04:49:12.918 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'zwave:device:3c4a2c62:node3' changed from OFFLINE (BRIDGE_OFFLINE): Controller is offline to OFFLINE (COMMUNICATION_ERROR): Node is not communicating with controller
04:49:12.953 [INFO ] [smarthome.event.ThingUpdatedEvent ] - Thing 'zwave:serial_zstick:3c4a2c62' has been updated.
04:49:12.958 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'zwave:device:3c4a2c62:node4' changed from ONLINE to ONLINE: Node initialising: FAILED_CHECK
04:49:12.968 [INFO ] [ome.event.ThingStatusInfoChangedEvent] - 'zwave:device:3c4a2c62:node4' changed from ONLINE: Node initialising: FAILED_CHECK to OFFLINE (COMMUNICATION_ERROR): Node is not communicating with controller
04:53:43.588 [WARN ] [.eclipse.jetty.servlet.ServletHandler] -
javax.servlet.ServletException: Sitemap 'home' could not be found
at org.eclipse.smarthome.ui.classic.internal.servlet.WebAppServlet.service(WebAppServlet.java:176) [219:org.eclipse.smarthome.ui.classic:0.10.0.b1]
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:848) [88:org.eclipse.jetty.servlet:9.3.22.v20171030]
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:584) [88:org.eclipse.jetty.servlet:9.3.22.v20171030]
at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71) [191:org.ops4j.pax.web.pax-web-jetty:6.0.7]
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) [87:org.eclipse.jetty.server:9.3.22.v20171030]
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548) [85:org.eclipse.jetty.security:9.3.22.v20171030]
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226) [87:org.eclipse.jetty.server:9.3.22.v20171030]
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1180) [87:org.eclipse.jetty.server:9.3.22.v20171030]
at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:284) [191:org.ops4j.pax.web.pax-web-jetty:6.0.7]
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:512) [88:org.eclipse.jetty.servlet:9.3.22.v20171030]
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185) [87:org.eclipse.jetty.server:9.3.22.v20171030]
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1112) [87:org.eclipse.jetty.server:9.3.22.v20171030]
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) [87:org.eclipse.jetty.server:9.3.22.v20171030]
at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80) [191:org.ops4j.pax.web.pax-web-jetty:6.0.7]
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134) [87:org.eclipse.jetty.server:9.3.22.v20171030]
at org.eclipse.jetty.server.Server.handle(Server.java:534) [87:org.eclipse.jetty.server:9.3.22.v20171030]
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:333) [87:org.eclipse.jetty.server:9.3.22.v20171030]
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251) [87:org.eclipse.jetty.server:9.3.22.v20171030]
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:283) [79:org.eclipse.jetty.io:9.3.22.v20171030]
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:108) [79:org.eclipse.jetty.io:9.3.22.v20171030]
at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93) [79:org.eclipse.jetty.io:9.3.22.v20171030]
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303) [90:org.eclipse.jetty.util:9.3.22.v20171030]
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148) [90:org.eclipse.jetty.util:9.3.22.v20171030]
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136) [90:org.eclipse.jetty.util:9.3.22.v20171030]
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671) [90:org.eclipse.jetty.util:9.3.22.v20171030]
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589) [90:org.eclipse.jetty.util:9.3.22.v20171030]
at java.lang.Thread.run(Thread.java:748) [?:?]
Caused by: org.eclipse.smarthome.ui.classic.render.RenderException: Sitemap 'home' could not be found
at org.eclipse.smarthome.ui.classic.internal.servlet.WebAppServlet.service(WebAppServlet.java:137) ~[219:org.eclipse.smarthome.ui.classic:0.10.0.b1]
... 26 more
Here are the contents of my /etc/openhab2/sitemaps/home.sitemap File:
sitemap home label="MK-SmartHouse"
{
Frame label="Demo"
{
Switch item=DEMOSW
}
Frame label=“Garage Door”
{
Switch item=GarageAttached_Door
Text item=GarageAttached_Door_Position
}
}
Screenshot of ls -l in /sitemaps:
screenshot of ls -l /items:
Here is the contents of /etc/openhab2/items/garagedoor.items:
// 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
Switch GarageAttached_Door "Garage Door (Attached) [MAP(garagedoor.map):%s]" <garagedoor> (gGarageAttached,gLock$
Number GarageAttached_Door_Position "Garage Door (Attached) [MAP(garagedoor.map):%s]" <garagedoor> (gGarageAttach$
screenshot of ls -l /rules:
File contents of /etc/openhab2/rules/garagedoor.rules:
[05:21:29] openhabian@openHABianPi:/etc/openhab2/rules$ sudo nano garagedoor.rules
GNU nano 2.2.6 File: garagedoor.rules
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 r$
end
Screenshot of /etc/openhab2/transform:
File contents of /etc/openhab2/transform/garagedoor.map:
// Garage Door Map 03-31-2018
0=CLOSED
ON=CLOSED
252=CLOSING
253=STOPPED
254=OPENING
255=OPEN
OFF=OPEN
-=Unknown
NULL=Unknown
Also I’m using nano from Windows through a putty terminal into a openHABianpi install. Do I need to install the syntax file and installation instructions on openhabnano from:
https://docs.openhab.org/configuration/editors.html#mcedit
To get the proper file formatting? Or is it already installed with openHABianpi?
Thanks again
Marc