Can someone _PLEASE_ help? 1 week+ and still no solution.

91 views
Skip to first unread message

Anthony Chan

unread,
Nov 30, 2014, 12:48:12 AM11/30/14
to ope...@googlegroups.com
I'm going nuts with this install. Ive been asking for help for over a week now and received 3 responses to a number of posts... This software seems pretty excellent but I am worried now as I can't even get it to install. I'm not sure why the permissions issues aren't fixed yet as a number of users installing on the RPi seem to be complaining. I simply want to turn on/off an LED connected to my GPIO which I am doing fine via command line.

I installed via apt-get so it should be straight forward, or so you'd think. I'm not sure whats going on here... I installed the GPIO binding via apt-get and don't see it in the addons folder. Does anyone know where apt-get puts the files?

I'm also getting a bunch of errors from en.map:

05:33:07.784 INFO  o.o.io.rest.RESTApplication[:143]- Started REST API at /rest
05:33:13.757 INFO  o.o.u.w.i.s.WebAppServlet[:79]- Started Classic UI at /openhab.app
05:37:43.544 WARN  o.e.j.servlet.ServletHandler[:553]- /openhab.app
org.openhab.ui.webapp.render.RenderException: Sitemap 'demo' could not be found
    at org.openhab.ui.webapp.internal.servlet.WebAppServlet.service(WebAppServlet.java:114)
    at org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
    at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
    at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:60)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
    at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:598)
05:38:10.737 INFO  o.o.io.rest.RESTApplication[:159]- Stopped REST API
05:38:14.815 INFO  o.o.u.w.i.s.WebAppServlet[:90]- Stopped Classic UI
05:39:04.595 INFO  o.o.c.internal.CoreActivator[:61]- openHAB runtime has been started (v1.5.1).
05:39:51.239 INFO  o.o.m.c.i.ModelRepositoryImpl[:79]- Loading model 'exec.persist'
05:39:54.642 INFO  o.o.m.c.i.ModelRepositoryImpl[:79]- Loading model 'logging.persist'
05:39:55.023 INFO  o.o.m.c.i.ModelRepositoryImpl[:79]- Loading model 'db4o.persist'
05:39:55.300 INFO  o.o.m.c.i.ModelRepositoryImpl[:79]- Loading model 'rrd4j.persist'
05:39:57.039 INFO  o.o.m.c.i.ModelRepositoryImpl[:79]- Loading model 'demo.items'
05:40:13.621 INFO  o.o.m.c.i.ModelRepositoryImpl[:79]- Loading model 'demo.script'
05:40:30.898 INFO  o.o.i.s.i.DiscoveryServiceImpl[:72]- mDNS service has been started
05:40:33.994 INFO  o.o.m.c.i.ModelRepositoryImpl[:79]- Loading model 'demo.sitemap'
05:40:53.095 INFO  o.o.io.rest.RESTApplication[:143]- Started REST API at /rest
05:40:59.171 INFO  o.o.u.w.i.s.WebAppServlet[:79]- Started Classic UI at /openhab.app
05:41:05.471 ERROR o.o.c.t.i.s.MapTransformationService[:75]- opening file 'en.map' throws exception
java.io.FileNotFoundException: /etc/openhab/configurations/transform/en.map (No such file or directory)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:131)
    at java.io.FileInputStream.<init>(FileInputStream.java:87)
    at java.io.FileReader.<init>(FileReader.java:58)
    at org.openhab.core.transform.internal.service.MapTransformationService.transform(MapTransformationService.java:63)
    at org.openhab.ui.internal.items.ItemUIRegistryImpl.transform(ItemUIRegistryImpl.java:328)
05:41:09.349 INFO  o.o.m.c.i.ModelRepositoryImpl[:79]- Loading model 'demo.rules'
05:41:10.846 ERROR o.o.u.i.i.ItemUIRegistryImpl[:330]- transformation throws exception [transformation=org.openhab.core.transform.internal.service.MapTransformationService@8d6bb6, value=-]
org.openhab.core.transform.TransformationException: opening file 'en.map' throws exception
    at org.openhab.core.transform.internal.service.MapTransformationService.transform(MapTransformationService.java:76)
    at org.openhab.ui.internal.items.ItemUIRegistryImpl.transform(ItemUIRegistryImpl.java:328)
    at org.openhab.ui.internal.items.ItemUIRegistryImpl.getLabel(ItemUIRegistryImpl.java:267)
    at org.openhab.ui.webapp.internal.render.AbstractWidgetRenderer.getLabel(AbstractWidgetRenderer.java:109)
    at org.openhab.ui.webapp.internal.render.TextRenderer.renderWidget(TextRenderer.java:45)
    at org.openhab.ui.webapp.internal.render.PageRenderer.renderWidget(PageRenderer.java:158)
Caused by: java.io.FileNotFoundException: /etc/openhab/configurations/transform/en.map (No such file or directory)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:131)
    at java.io.FileInputStream.<init>(FileInputStream.java:87)
    at java.io.FileReader.<init>(FileReader.java:58)
    at org.openhab.core.transform.internal.service.MapTransformationService.transform(MapTransformationService.java:63)
    at org.openhab.ui.internal.items.ItemUIRegistryImpl.transform(ItemUIRegistryImpl.java:328)
05:41:25.733 ERROR o.o.m.r.i.engine.RuleEngine[:267]- Error during the execution of startup rule 'Initialize light states': Could not invoke method: org.openhab.model.script.actions.BusEvent.postUpdate(org.openhab.core.items.Item,java.lang.Number) on instance: null
05:41:28.356 ERROR o.o.m.r.i.engine.RuleEngine[:267]- Error during the execution of startup rule 'Initialize heating states': Could not invoke method: org.openhab.model.script.actions.BusEvent.postUpdate(org.openhab.core.items.Item,java.lang.Number) on instance: null
05:41:30.570 ERROR o.o.m.r.i.engine.RuleEngine[:267]- Error during the execution of startup rule 'Initialize contact states': Could not invoke method: org.openhab.model.script.actions.BusEvent.postUpdate(org.openhab.core.items.Item,java.lang.Number) on instance: null
05:41:38.094 WARN  o.o.c.p.e.PersistenceExtensions[:404]- There is no queryable persistence service registered with the name 'rrd4j'
05:41:38.117 ERROR o.o.m.r.i.engine.RuleEngine[:267]- Error during the execution of startup rule 'Update max and min temperatures': cannot invoke method public abstract org.openhab.core.types.State org.openhab.core.persistence.HistoricItem.getState() on null
05:41:38.540 ERROR o.o.c.t.i.s.MapTransformationService[:75]- opening file 'en.map' throws exception
java.io.FileNotFoundException: /etc/openhab/configurations/transform/en.map (No such file or directory)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:131)
    at java.io.FileInputStream.<init>(FileInputStream.java:87)
    at java.io.FileReader.<init>(FileReader.java:58)
    at org.openhab.core.transform.internal.service.MapTransformationService.transform(MapTransformationService.java:63)
    at org.openhab.ui.internal.items.ItemUIRegistryImpl.transform(ItemUIRegistryImpl.java:328)
05:41:38.582 ERROR o.o.c.t.i.s.MapTransformationService[:75]- opening file 'en.map' throws exception
java.io.FileNotFoundException: /etc/openhab/configurations/transform/en.map (No such file or directory)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:131)
    at java.io.FileInputStream.<init>(FileInputStream.java:87)
    at java.io.FileReader.<init>(FileReader.java:58)
    at org.openhab.core.transform.internal.service.MapTransformationService.transform(MapTransformationService.java:63)
    at org.openhab.ui.internal.items.ItemUIRegistryImpl.transform(ItemUIRegistryImpl.java:328)
05:41:38.623 ERROR o.o.u.i.i.ItemUIRegistryImpl[:330]- transformation throws exception [transformation=org.openhab.core.transform.internal.service.MapTransformationService@8d6bb6, value=-]
org.openhab.core.transform.TransformationException: opening file 'en.map' throws exception
    at org.openhab.core.transform.internal.service.MapTransformationService.transform(MapTransformationService.java:76)
    at org.openhab.ui.internal.items.ItemUIRegistryImpl.transform(ItemUIRegistryImpl.java:328)
    at org.openhab.ui.internal.items.ItemUIRegistryImpl.getLabel(ItemUIRegistryImpl.java:267)
    at org.openhab.ui.webapp.internal.render.AbstractWidgetRenderer.getLabel(AbstractWidgetRenderer.java:109)
    at org.openhab.ui.webapp.internal.render.TextRenderer.renderWidget(TextRenderer.java:45)
    at org.openhab.ui.webapp.internal.render.PageRenderer.renderWidget(PageRenderer.java:158)
Caused by: java.io.FileNotFoundException: /etc/openhab/configurations/transform/en.map (No such file or directory)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:131)
    at java.io.FileInputStream.<init>(FileInputStream.java:87)
    at java.io.FileReader.<init>(FileReader.java:58)
    at org.openhab.core.transform.internal.service.MapTransformationService.transform(MapTransformationService.java:63)
    at org.openhab.ui.internal.items.ItemUIRegistryImpl.transform(ItemUIRegistryImpl.java:328)
05:41:38.672 ERROR o.o.u.i.i.ItemUIRegistryImpl[:330]- transformation throws exception [transformation=org.openhab.core.transform.internal.service.MapTransformationService@8d6bb6, value=-]
org.openhab.core.transform.TransformationException: opening file 'en.map' throws exception
    at org.openhab.core.transform.internal.service.MapTransformationService.transform(MapTransformationService.java:76)
    at org.openhab.ui.internal.items.ItemUIRegistryImpl.transform(ItemUIRegistryImpl.java:328)
    at org.openhab.ui.internal.items.ItemUIRegistryImpl.getLabel(ItemUIRegistryImpl.java:267)
    at org.openhab.ui.webapp.internal.render.AbstractWidgetRenderer.getLabel(AbstractWidgetRenderer.java:109)
    at org.openhab.ui.webapp.internal.render.TextRenderer.renderWidget(TextRenderer.java:45)
    at org.openhab.ui.webapp.internal.render.PageRenderer.renderWidget(PageRenderer.java:158)
Caused by: java.io.FileNotFoundException: /etc/openhab/configurations/transform/en.map (No such file or directory)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:131)
    at java.io.FileInputStream.<init>(FileInputStream.java:87)
    at java.io.FileReader.<init>(FileReader.java:58)
    at org.openhab.core.transform.internal.service.MapTransformationService.transform(MapTransformationService.java:63)
    at org.openhab.ui.internal.items.ItemUIRegistryImpl.transform(ItemUIRegistryImpl.java:328)
05:42:00.652 WARN  o.o.c.p.e.PersistenceExtensions[:404]- There is no queryable persistence service registered with the name 'rrd4j'
05:42:00.659 WARN  o.o.c.p.e.PersistenceExtensions[:130]- There is no queryable persistence service registered with the name 'rrd4j'
05:43:00.032 WARN  o.o.c.p.e.PersistenceExtensions[:404]- There is no queryable persistence service registered with the name 'rrd4j'
05:43:00.037 WARN  o.o.c.p.e.PersistenceExtensions[:130]- There is no queryable persistence service registered with the name 'rrd4j'
05:44:00.033 WARN  o.o.c.p.e.PersistenceExtensions[:404]- There is no queryable persistence service registered with the name 'rrd4j'
05:44:00.038 WARN  o.o.c.p.e.PersistenceExtensions[:130]- There is no queryable persistence service registered with the name 'rrd4j'
05:44:42.428 WARN  javax.jmdns.impl.DNSIncoming[:415]- There was an OPT answer. Not currently handled. Option code: 65002 data: D0CB94098FDE5A40
05:44:42.723 WARN  javax.jmdns.impl.DNSIncoming[:415]- There was an OPT answer. Not currently handled. Option code: 65002 data: D0CB94098FDE5A40
05:44:43.429 WARN  javax.jmdns.impl.DNSIncoming[:415]- There was an OPT answer. Not currently handled. Option code: 65002 data: D0CB94098FDE5A40
05:44:44.232 WARN  javax.jmdns.impl.DNSIncoming[:415]- There was an OPT answer. Not currently handled. Option code: 65002 data: D0CB94098FDE5A40
05:44:44.258 WARN  javax.jmdns.impl.DNSIncoming[:415]- There was an OPT answer. Not currently handled. Option code: 65002 data: D0CB94098FDE5A40
05:44:44.458 WARN  javax.jmdns.impl.DNSIncoming[:415]- There was an OPT answer. Not currently handled. Option code: 65002 data: D0CB94098FDE5A40
05:44:45.274 WARN  javax.jmdns.impl.DNSIncoming[:415]- There was an OPT answer. Not currently handled. Option code: 65002 data: D0CB94098FDE5A40
05:44:45.582 WARN  javax.jmdns.impl.DNSIncoming[:415]- There was an OPT answer. Not currently handled. Option code: 65002 data: D0CB94098FDE5A40
05:44:48.037 WARN  javax.jmdns.impl.DNSIncoming[:415]- There was an OPT answer. Not currently handled. Option code: 65002 data: D0CB94098FDE5A40
05:44:48.448 WARN  javax.jmdns.impl.DNSIncoming[:415]- There was an OPT answer. Not currently handled. Option code: 65002 data: D0CB94098FDE5A40
05:44:48.656 WARN  javax.jmdns.impl.DNSIncoming[:415]- There was an OPT answer. Not currently handled. Option code: 65002 data: D0CB94098FDE5A40


Anthony Chan

unread,
Nov 30, 2014, 1:13:31 AM11/30/14
to ope...@googlegroups.com
I think I am getting closer now:

Error occured while creating backend object for item Light_GF_Corridor_Ceiling, exception: /sys/class/gpio/export

Does anyone know what this means?

Anthony Chan

unread,
Nov 30, 2014, 1:18:04 AM11/30/14
to ope...@googlegroups.com
I think I'm getting closer. Does anyone know what this means:

06:12:38.023 INFO  o.o.m.c.i.ModelRepositoryImpl[:97]- Refreshing model 'demo.items'
06:12:38.369 ERROR o.o.b.g.internal.GPIOBinding[:355]- Error occured while creating backend object for item Light_GF_Corridor_Ceiling, exception: /sys/class/gpio/export
06:12:38.391 ERROR o.o.b.g.internal.GPIOBinding[:355]- Error occured while creating backend object for item Light_GF_Kitchen_Ceiling, exception: /sys/class/gpio/export
06:12:38.399 ERROR o.o.b.g.internal.GPIOBinding[:355]- Error occured while creating backend object for item Light_GF_Kitchen_Table, exception: /sys/class/gpio/export
06:13:00.035 WARN  o.o.c.p.e.PersistenceExtensions[:404]- There is no queryable persistence service registered with the name 'rrd4j'
06:13:00.040 WARN  o.o.c.p.e.PersistenceExtensions[:130]- There is no queryable persistence service registered with the name 'rrd4j'
06:14:00.032 WARN  o.o.c.p.e.PersistenceExtensions[:404]- There is no queryable persistence service registered with the name 'rrd4j'
06:14:00.037 WARN  o.o.c.p.e.PersistenceExtensions[:130]- There is no queryable persistence service registered with the name 'rrd4j'
06:15:00.130 WARN  o.o.c.p.e.PersistenceExtensions[:404]- There is no queryable persistence service registered with the name 'rrd4j'
06:15:00.148 WARN  o.o.c.p.e.PersistenceExtensions[:130]- There is no queryable persistence service registered with the name 'rrd4j'
06:15:38.755 WARN  o.o.c.t.i.s.MapTransformationService[:70]- Could not find a mapping for '-' in the file 'en.map'.
06:15:41.091 WARN  o.o.c.t.i.s.MapTransformationService[:70]- Could not find a mapping for '-' in the file 'en.map'.
06:15:53.444 WARN  o.o.c.t.i.s.MapTransformationService[:70]- Could not find a mapping for '-' in the file 'en.map'.




On Sunday, November 30, 2014 12:48:12 AM UTC-5, Anthony Chan wrote:

Anthony Chan

unread,
Nov 30, 2014, 1:36:26 AM11/30/14
to ope...@googlegroups.com
This is where I am now:

06:35:33.255 WARN  o.o.c.t.i.s.MapTransformationService[:70]- Could not find a mapping for '-' in the file 'en.map'.
06:35:35.680 WARN  o.o.c.t.i.s.MapTransformationService[:70]- Could not find a mapping for '-' in the file 'en.map'.


On Sunday, November 30, 2014 12:48:12 AM UTC-5, Anthony Chan wrote:

Richard Beales

unread,
Nov 30, 2014, 4:41:44 AM11/30/14
to ope...@googlegroups.com
I'm not familiar with the apt-get version, i've always installed from the zip files. Regards the en.map. did you check the following location?

5:41:05.471 ERROR o.o.c.t.i.s.MapTransformationService[:75]- opening file 'en.map' throws exception
java.io.FileNotFoundException: /etc/openhab/configurations/transform/en.map (No such file or directory)

Does this directory tree exist? Does your user have permission to read it? (you could start as root user just to check)
The error "no queryable persistence service" for rrd4j seems common, it sorts itself out a few seconds after startup (on mine at least).
I know there's issues with the Z-Wave binding on RPi, but not sure if that affects other bindings

Richard Beales

unread,
Nov 30, 2014, 4:44:18 AM11/30/14
to ope...@googlegroups.com
This is what my en.map file looks like if it helps. I don't have an entry for "-" but it's straightforward to add a new line
https://github.com/richbeales/openhab-cfg/blob/master/transform/en.map

Siegfried H.

unread,
Nov 30, 2014, 5:46:44 AM11/30/14
to ope...@googlegroups.com
Just add this

-=unknown



in a new line of en.map.

TimHH

unread,
Nov 30, 2014, 1:06:14 PM11/30/14
to ope...@googlegroups.com
Hi Anthony,
i am currently confused since you have three simultaneous discussions of the same Problem running? Is the problem solved or ongoing? If the current problem, persist it is only the org.openhab.binding.gpio-1.x.x.jar  and/or org.openhab.io.gpio-1.x.x.jar or with openhab?

i have read, that you changed Permissions to 777 in /opt/openhab - in this thread your log files refer to the directory /etc/openhab/configurations - which is it?

Depending on the issue, your configfile (gpio part), rule/item/sitemap files might be interesting to unterstand the issue.

Best
Tim

Anthony Chan

unread,
Nov 30, 2014, 3:11:04 PM11/30/14
to ope...@googlegroups.com
Richard,

Thank you for responding. The file does exist:

pi@raspberrypi ~ $ ls -lh  /etc/openhab/configurations/transform/en.map
-rw-r--r-- 1 root root 43 Sep 12 20:41 /etc/openhab/configurations/transform/en.map
pi@raspberrypi ~ $

On the Pi I am logged in as user 'pi' but using 'sudo ./start.sh' to start openhab
Message has been deleted

Anthony Chan

unread,
Nov 30, 2014, 3:32:49 PM11/30/14
to ope...@googlegroups.com
Tim

Since the other posts, I've reinstalled several times.. using apt-get and manually installing using the zip files to /opt/openhab. This is where I stand currently:

I used apt-get to install openhab this time with the same result. Below I'll post my latest startup log along with some permissions/folders/files that I think may help. Also I am sorry about the multiple postings 1) Im not familiar with Groups, so I couldn't find my originals 2) Kinda frustrating knowing that this is a simple issue Im overlooking and cant figure it out.. its been over a week and still haven't passed this stage so I'm a bit anxious to get it fixed and I apologize.

Anthony Chan

unread,
Nov 30, 2014, 3:34:07 PM11/30/14
to ope...@googlegroups.com
Here are some details on my folder permissions, files, etc:

pi@raspberrypi ~ $ cat /etc/default/openhab
USER_AND_GROUP=root:root
HTTP_PORT=8080
HTTPS_PORT=8443
TELNET_PORT=5555
JAVA_ARGS=-Djna.boot.library.path=/usr/lib/jni
OPENHAB_ARGS=
#OPENHAB_JAVA=/usr/bin/java
pi@raspberrypi ~ $ whoami
pi
pi@raspberrypi ~ $

pi@raspberrypi ~ $ ls -lh /etc/openhab
total 36K
-rw-r--r-- 1 root root  657 Apr 21  2014 README.TXT
drwxrwxrwx 2 root root 4.0K Sep  7 21:22 addons
drwxrwxrwx 8 root root 4.0K Nov 30 06:05 configurations
drwxr-xr-x 7 root root 4.0K Nov 30 06:05 configurations_backup
drwxr-xr-x 4 root root 4.0K Nov 30 05:06 jetty
-rw-r--r-- 1 root root 1.8K Sep 12 20:41 logback.xml
-rw-r--r-- 1 root root 2.4K Sep 12 20:41 logback_debug.xml
-rw-r--r-- 1 root root  145 Sep 12 20:41 login.conf
-rw-r--r-- 1 root root  302 Sep 12 20:41 quartz.properties
pi@raspberrypi ~ $


pi@raspberrypi /etc/openhab/configurations $ ls -lh
total 112K
drwxrwxrwx 2 root root 4.0K Sep  7 21:22 items
-rw-r--r-- 1 root root  44K Nov 30 06:25 openhab.cfg
-rw-r--r-- 1 root root  44K Nov 30 05:35 openhab_default.cfg
drwxrwxrwx 2 root root 4.0K Sep  7 21:22 persistence
drwxrwxrwx 2 root root 4.0K Sep  7 21:22 rules
drwxrwxrwx 2 root root 4.0K Sep  7 21:22 scripts
drwxrwxrwx 2 root root 4.0K Sep  7 21:22 sitemaps
drwxr-xr-x 2 root root 4.0K Nov 30 09:00 transform
pi@raspberrypi /etc/openhab/configurations $

pi@raspberrypi /etc/openhab/configurations/transform $ cat en.map
CLOSED=closed
OPEN=open
undefined=unknown
 pi@raspberrypi /etc/openhab/configurations/transform $ ls -lh en.map
-rw-r--r-- 1 root root 43 Sep 12 20:41 en.map
pi@raspberrypi /etc/openhab/configurations/transform $

pi@raspberrypi /usr/share $ ls -lh /usr/share/openhab/
total 32K
-rw-r--r-- 1 root root  11K Sep 12 20:41 LICENSE.TXT
-rw-r--r-- 1 root root  626 Sep 12 20:41 README.TXT
drwxr-xr-x 2 root root 4.0K Nov 30 05:14 addons
lrwxrwxrwx 1 root root   27 Sep 12 20:41 configurations -> /etc/openhab/configurations
lrwxrwxrwx 1 root root   27 Sep 12 20:41 contexts -> /etc/openhab/jetty/contexts
lrwxrwxrwx 1 root root   22 Sep 12 20:41 etc -> /etc/openhab/jetty/etc
drwxr-xr-x 6 root root 4.0K Nov 30 09:27 server
drwxr-xr-x 2 root root 4.0K Nov 30 05:07 sounds
drwxr-xr-x 3 root root 4.0K Nov 30 05:07 webapps
pi@raspberrypi /usr/share $







On Sunday, November 30, 2014 12:48:12 AM UTC-5, Anthony Chan wrote:

Anthony Chan

unread,
Nov 30, 2014, 3:34:27 PM11/30/14
to ope...@googlegroups.com
pi@raspberrypi /usr/share/openhab $ sudo /etc/init.d/openhab start
[....] Starting openHAB server: openhab20:18:40.095 INFO  o.o.c.internal.CoreActivator[:61] - openHAB runtime has been started (v1.5.1).
20:19:05.426 INFO  o.o.m.c.i.ModelRepositoryImpl[:79] - Loading model 'exec.persist'
20:19:08.595 INFO  o.o.m.c.i.ModelRepositoryImpl[:79] - Loading model 'logging.persist'
20:19:08.909 INFO  o.o.m.c.i.ModelRepositoryImpl[:79] - Loading model 'db4o.persist'
20:19:09.025 INFO  o.o.m.c.i.ModelRepositoryImpl[:79] - Loading model 'rrd4j.persist'
20:19:09.904 INFO  o.o.m.c.i.ModelRepositoryImpl[:79] - Loading model 'demo.items'
20:19:25.858 INFO  o.o.m.c.i.ModelRepositoryImpl[:79] - Loading model 'demo.sitemap'
20:19:28.913 INFO  o.o.m.c.i.ModelRepositoryImpl[:79] - Loading model 'demo.script'
20:19:30.512 INFO  o.o.i.s.i.DiscoveryServiceImpl[:72] - mDNS service has been started
20:19:31.123 WARN  javax.jmdns.impl.DNSIncoming[:415] - There was an OPT answer. Not currently handled. Option code: 65002 data: D0CB94098FDE5A40
20:19:33.898 WARN  javax.jmdns.impl.DNSIncoming[:415] - There was an OPT answer. Not currently handled. Option code: 65002 data: D0CB94098FDE5A40
20:19:47.921 INFO  o.o.io.rest.RESTApplication[:143] - Started REST API at /rest
20:19:54.539 INFO  o.o.u.w.i.s.WebAppServlet[:79] - Started Classic UI at /openhab.app
20:20:01.397 INFO  o.o.m.c.i.ModelRepositoryImpl[:79] - Loading model 'demo.rules'
20:20:18.859 ERROR o.o.m.r.i.engine.RuleEngine[:267] - Error during the execution of startup rule 'Initialize light states': Could not invoke method: org.openhab.model.script.actions.BusEvent.postUpdate(org.openhab.core.items.Item,java.lang.Number) on instance: null
20:20:22.021 ERROR o.o.m.r.i.engine.RuleEngine[:267] - Error during the execution of startup rule 'Initialize heating states': Could not invoke method: org.openhab.model.script.actions.BusEvent.postUpdate(org.openhab.core.items.Item,java.lang.Number) on instance: null
20:20:24.479 ERROR o.o.m.r.i.engine.RuleEngine[:267] - Error during the execution of startup rule 'Initialize contact states': Could not invoke method: org.openhab.model.script.actions.BusEvent.postUpdate(org.openhab.core.items.Item,java.lang.Number) on instance: null
20:20:30.915 WARN  o.o.c.p.e.PersistenceExtensions[:404] - There is no queryable persistence service registered with the name 'rrd4j'
20:20:30.934 ERROR o.o.m.r.i.engine.RuleEngine[:267] - Error during the execution of startup rule 'Update max and min temperatures': cannot invoke method public abstract org.openhab.core.types.State org.openhab.core.persistence.HistoricItem.getState() on null
20:20:30.973 ERROR o.o.m.r.i.e.RuleTriggerManager[:320] - Cannot create timer for rule 'Set random room temperatures': Unable to store Job : 'DEFAULT.demo.rules#Set random room temperatures#0 0/5 * * * ?', because one already exists with this identification.
20:20:30.999 ERROR o.o.m.r.i.e.RuleTriggerManager[:320] - Cannot create timer for rule 'Update max and min temperatures': Unable to store Job : 'DEFAULT.demo.rules#Update max and min temperatures#0 0 0 * * ?', because one already exists with this identification.
20:20:31.027 ERROR o.o.m.r.i.e.RuleTriggerManager[:320] - Cannot create timer for rule 'Persistence Demo': Unable to store Job : 'DEFAULT.demo.rules#Persistence Demo#0 * * * * ?', because one already exists with this identification.
20:20:31.114 ERROR o.o.m.r.i.engine.RuleEngine[:267] - Error during the execution of startup rule 'Initialize light states': Could not invoke method: org.openhab.model.script.actions.BusEvent.postUpdate(org.openhab.core.items.Item,java.lang.Number) on instance: null
20:20:31.188 ERROR o.o.m.r.i.engine.RuleEngine[:267] - Error during the execution of startup rule 'Initialize heating states': Could not invoke method: org.openhab.model.script.actions.BusEvent.postUpdate(org.openhab.core.items.Item,java.lang.Number) on instance: null
20:20:31.236 ERROR o.o.m.r.i.engine.RuleEngine[:267] - Error during the execution of startup rule 'Initialize contact states': Could not invoke method: org.openhab.model.script.actions.BusEvent.postUpdate(org.openhab.core.items.Item,java.lang.Number) on instance: null
20:20:31.591 WARN  o.o.c.p.e.PersistenceExtensions[:404] - There is no queryable persistence service registered with the name 'rrd4j'
20:20:31.600 ERROR o.o.m.r.i.engine.RuleEngine[:267] - Error during the execution of startup rule 'Update max and min temperatures': cannot invoke method public abstract org.openhab.core.types.State org.openhab.core.persistence.HistoricItem.getState() on null
20:20:31.792 INFO  runtime.busevents[:26] - Temperature_GF_Corridor state updated to 21.60000000
20:20:31.803 INFO  runtime.busevents[:26] - Temperature_GF_Toilet state updated to 18.70000000
20:20:31.813 INFO  runtime.busevents[:26] - Temperature_GF_Living state updated to 19.10000000
20:20:31.830 INFO  runtime.busevents[:26] - Temperature_GF_Kitchen state updated to 20.90000000
20:20:31.843 INFO  runtime.busevents[:26] - Temperature_FF_Bath state updated to 18.30000000
20:20:31.853 INFO  runtime.busevents[:26] - Temperature_FF_Office state updated to 21.70000000
20:20:31.863 INFO  runtime.busevents[:26] - Temperature_FF_Child state updated to 18.60000000
20:20:31.873 INFO  runtime.busevents[:26] - Temperature_FF_Bed state updated to 21.50000000
20:20:31.883 INFO  runtime.busevents[:26] - Temperature_GF_Corridor state updated to 21.10000000
20:20:31.893 INFO  runtime.busevents[:26] - Temperature_GF_Toilet state updated to 19.60000000
20:20:31.903 INFO  runtime.busevents[:26] - Temperature_GF_Living state updated to 18.90000000
20:20:31.913 INFO  runtime.busevents[:26] - Temperature_GF_Kitchen state updated to 18.70000000
20:20:31.923 INFO  runtime.busevents[:26] - Temperature_FF_Bath state updated to 20.80000000
20:20:31.933 INFO  runtime.busevents[:26] - Temperature_FF_Office state updated to 19.40000000
20:20:31.944 INFO  runtime.busevents[:26] - Temperature_FF_Child state updated to 21.00000000
20:20:31.953 INFO  runtime.busevents[:26] - Temperature_FF_Bed state updated to 19.80000000
20:20:35.780 ERROR o.o.b.g.internal.GPIOBinding[:355] - Error occured while creating backend object for item Light_GF_Kitchen_Table, exception: Device or resource busy
20:20:35.788 ERROR o.o.b.g.internal.GPIOBinding[:355] - Error occured while creating backend object for item Light_GF_Kitchen_Ceiling, exception: Device or resource busy
20:20:35.795 ERROR o.o.b.g.internal.GPIOBinding[:355] - Error occured while creating backend object for item Light_GF_Corridor_Ceiling, exception: Device or resource busy
20:21:00.813 WARN  o.o.c.p.e.PersistenceExtensions[:404] - There is no queryable persistence service registered with the name 'rrd4j'
20:21:00.818 WARN  o.o.c.p.e.PersistenceExtensions[:130] - There is no queryable persistence service registered with the name 'rrd4j'
20:21:29.665 WARN  javax.jmdns.impl.DNSIncoming[:415] - There was an OPT answer. Not currently handled. Option code: 65002 data: D0CB94098FDE5A40
20:21:30.686 WARN  javax.jmdns.impl.DNSIncoming[:415] - There was an OPT answer. Not currently handled. Option code: 65002 data: D0CB94098FDE5A40
20:21:31.296 WARN  javax.jmdns.impl.DNSIncoming[:415] - There was an OPT answer. Not currently handled. Option code: 65002 data: D0CB94098FDE5A40
20:21:31.601 WARN  javax.jmdns.impl.DNSIncoming[:415] - There was an OPT answer. Not currently handled. Option code: 65002 data: D0CB94098FDE5A40
20:21:31.714 WARN  javax.jmdns.impl.DNSIncoming[:415] - There was an OPT answer. Not currently handled. Option code: 65002 data: D0CB94098FDE5A40
20:21:31.911 WARN  javax.jmdns.impl.DNSIncoming[:415] - There was an OPT answer. Not currently handled. Option code: 65002 data: D0CB94098FDE5A40
20:21:32.112 WARN  javax.jmdns.impl.DNSIncoming[:415] - There was an OPT answer. Not currently handled. Option code: 65002 data: D0CB94098FDE5A40
20:21:33.136 WARN  javax.jmdns.impl.DNSIncoming[:415] - There was an OPT answer. Not currently handled. Option code: 65002 data: D0CB94098FDE5A40
20:21:36.003 WARN  javax.jmdns.impl.DNSIncoming[:415] - There was an OPT answer. Not currently handled. Option code: 65002 data: D0CB94098FDE5A40
20:21:36.209 WARN  javax.jmdns.impl.DNSIncoming[:415] - There was an OPT answer. Not currently handled. Option code: 65002 data: D0CB94098FDE5A40
20:21:45.322 WARN  javax.jmdns.impl.DNSIncoming[:415] - There was an OPT answer. Not currently handled. Option code: 65002 data: D0CB94098FDE5A40
2


On Sunday, November 30, 2014 12:48:12 AM UTC-5, Anthony Chan wrote:

Anthony Chan

unread,
Nov 30, 2014, 3:36:08 PM11/30/14
to ope...@googlegroups.com
And lastly, my demo file which is pretty much unchanged. If anything else would help please let me know:

pi@raspberrypi /etc/openhab/configurations/items $ cat demo.items
Group All
Group gGF         (All)
Group gFF         (All)
Group gC         (All)
Group Outdoor     (All)
Group Shutters     (All)
Group Weather     (All)
Group Status     (All)

Group GF_Living     "Living Room"     <video>     (gGF)
Group GF_Kitchen     "Kitchen"         <kitchen>     (gGF)
Group GF_Toilet     "Toilet"         <bath>         (gGF)
Group GF_Corridor     "Corridor"         <corridor>     (gGF)

Group FF_Bath         "Bathroom"         <bath>         (gFF)
Group FF_Office     "Office"         <office>     (gFF)
Group FF_Child         "Child's Room"     <boy1>         (gFF)
Group FF_Bed         "Bedroom"         <bedroom>     (gFF)
Group FF_Corridor     "Corridor"         <corridor>     (gFF)

/* active groups */
Group:Switch:OR(ON, OFF)         Lights         "All Lights [(%d)]"                                 (All)
Group:Switch:OR(ON, OFF)         Heating     "No. of Active Heatings [(%d)]"     <heating>         (All)
Group:Number:AVG                 Temperature    "Avg. Room Temperature [%.1f °C]"     <temperature>    (Status)
Group:Contact:OR(OPEN, CLOSED)     Windows     "Open windows [(%d)]"                <contact>        (All)

/* Lights */
Dimmer Light_GF_Living_Table         "Table"         (GF_Living, Lights)
Switch Light_GF_Corridor_Ceiling     "Ceiling"         (GF_Corridor, Lights) { gpio="pin:22" }
Switch Light_GF_Kitchen_Ceiling     "Ceiling"         (GF_Kitchen, Lights) { gpio="pin:22" }
Switch Light_GF_Kitchen_Table         "Table"         (GF_Kitchen, Lights) { gpio="pin:22" }
Switch Light_GF_Corridor_Wardrobe     "Wardrobe"         (GF_Corridor, Lights)
Switch Light_GF_Toilet_Ceiling         "Ceiling"         (GF_Toilet, Lights)
Switch Light_GF_Toilet_Mirror         "Mirror"         (GF_Toilet, Lights)

Switch Light_FF_Bath_Ceiling         "Ceiling"         (FF_Bath, Lights)
Switch Light_FF_Bath_Mirror         "Mirror"         (FF_Bath, Lights)
Switch Light_FF_Corridor_Ceiling     "Corridor"         (FF_Corridor, Lights)
Switch Light_FF_Office_Ceiling         "Ceiling"         (FF_Office, Lights)
Switch Light_FF_Child_Ceiling         "Ceiling"         (FF_Child, Lights)
Switch Light_FF_Bed_Ceiling         "Ceiling"         (FF_Bed, Lights)

Switch Light_C_Corridor_Ceiling     "Ceiling"         (gC, Lights)
Switch Light_C_Staircase             "Staircase"     (gC, Lights)
Switch Light_C_Washing_Ceiling         "Washing"         (gC, Lights)
Switch Light_C_Workshop             "Workshop"         (gC, Lights)

Switch Light_Outdoor_Garage         "Garage"         (Outdoor, Lights)
Switch Light_Outdoor_Terrace         "Terrace"         (Outdoor, Lights)
Switch Light_Outdoor_Frontdoor         "Frontdoor"        (Outdoor, Lights)

/* Heating */
Switch Heating_GF_Corridor     "GF Corridor"     <heating>    (GF_Corridor, Heating)
Switch Heating_GF_Toilet     "Toilet"         <heating>    (GF_Toilet, Heating)
Switch Heating_GF_Living     "Livingroom"     <heating>    (GF_Living, Heating)
Switch Heating_GF_Kitchen     "Kitchen"         <heating>    (GF_Kitchen, Heating)

Switch Heating_FF_Bath         "Bath"             <heating>    (FF_Bath, Heating)
Switch Heating_FF_Office     "Office"         <heating>    (FF_Office, Heating)
Switch Heating_FF_Child     "Child's Room"     <heating>    (FF_Child, Heating)
Switch Heating_FF_Bed         "Bedroom"         <heating>    (FF_Bed, Heating)

/* Rollershutters */
Switch Shutter_all (Shutters)

Rollershutter Shutter_GF_Toilet         "Toilet"        (GF_Toilet, Shutters)
Rollershutter Shutter_GF_Kitchen         "Kitchen"        (GF_Kitchen, Shutters)
Rollershutter Shutter_GF_Living         "Livingroom"    (GF_Living, Shutters)

Rollershutter Shutter_FF_Bed             "Bedroom"        (FF_Bed, Shutters)
Rollershutter Shutter_FF_Bath             "Bath"            (FF_Bath, Shutters)
Rollershutter Shutter_FF_Office_Window    "Office Window"    (FF_Office, Shutters)
Rollershutter Shutter_FF_Office_Door     "Office Door"    (FF_Office, Shutters)

/* Indoor Temperatures */
Number Temperature_GF_Corridor     "Temperature [%.1f °C]"    <temperature>    (Temperature, GF_Corridor)
Number Temperature_GF_Toilet     "Temperature [%.1f °C]"    <temperature>    (Temperature, GF_Toilet)
Number Temperature_GF_Living     "Temperature [%.1f °C]"    <temperature>    (Temperature, GF_Living)
Number Temperature_GF_Kitchen     "Temperature [%.1f °C]"    <temperature>    (Temperature, GF_Kitchen)
Number Temperature_FF_Bath         "Temperature [%.1f °C]"    <temperature>    (Temperature, FF_Bath)
Number Temperature_FF_Office     "Temperature [%.1f °C]"    <temperature>    (Temperature, FF_Office)
Number Temperature_FF_Child     "Temperature [%.1f °C]"    <temperature>    (Temperature, FF_Child)
Number Temperature_FF_Bed         "Temperature [%.1f °C]"    <temperature>    (Temperature, FF_Bed)

/* Windows */
Contact Window_GF_Frontdoor     "Frontdoor [MAP(en.map):%s]"        (GF_Corridor, Windows)
Contact Window_GF_Kitchen         "Kitchen [MAP(en.map):%s]"            (GF_Kitchen, Windows)
Contact Window_GF_Living         "Terrace door [MAP(en.map):%s]"        (GF_Living, Windows)
Contact Window_GF_Toilet         "Toilet [MAP(en.map):%s]"            (GF_Toilet, Windows)

Contact Window_FF_Bath             "Bath [MAP(en.map):%s]"                (FF_Bath, Windows)
Contact Window_FF_Bed             "Bedroom [MAP(en.map):%s]"            (FF_Bed, Windows)
Contact Window_FF_Office_Window "Office Window [MAP(en.map):%s]"    (FF_Office, Windows)
Contact Window_FF_Office_Door     "Balcony Door [MAP(en.map):%s]"        (FF_Office, Windows)

Contact Garage_Door             "Garage Door [MAP(en.map):%s]"        (Outdoor, Windows)

Group Weather_Chart                                                    (Weather)
Number Weather_Temperature         "Outside Temperature [%.1f °C]"    <temperature> (Weather_Chart) { http="<[http://weather.yahooapis.com/forecastrss?w=638242&u=c:60000:XSLT(yahoo_weather_temperature.xsl)]" }
Number Weather_Temp_Max         "Todays Maximum [%.1f °C]"    <temperature> (Weather_Chart)
Number Weather_Temp_Min         "Todays Minimum [%.1f °C]"    <temperature> (Weather_Chart)
Number Weather_Chart_Period        "Chart Period"
DateTime Weather_LastUpdate        "Last Update [%1$ta %1$tR]"    <clock>

/* NTP binding demo item */
DateTime        Date            "Date [%1$tA, %1$td.%1$tm.%1$tY]"    <calendar>    { ntp="Europe/Berlin:de_DE" }

/* Demo items */
Switch DemoSwitch                "Switch"
Dimmer DimmedLight                "Dimmer [%d %%]"        <slider>
Color  RGBLight                    "RGB Light"                <slider>
Rollershutter DemoShutter         "Roller Shutter"
Dimmer DemoBlinds                 "Blinds [%d %%]"        <rollershutter>
Number Scene_General            "Scene"                    <sofa>
Number Radio_Station            "Radio"                    <network>
Dimmer Volume                     "Volume [%.1f %%]"
Number Temperature_Setpoint        "Temperature [%.1f °C]" <temperature>

String UnknownDevices    "Unknown Devices in Range: [%s]" { bluetooth="?" }
Number NoOfPairedDevices "Paired Devices in Range: [%d]"  { bluetooth="!" }
pi@raspberrypi /etc/openhab/configurations/items $


On Sunday, November 30, 2014 12:48:12 AM UTC-5, Anthony Chan wrote:

Anthony Chan

unread,
Nov 30, 2014, 3:37:58 PM11/30/14
to ope...@googlegroups.com
Richard,

In regards to the en.map, thats exactly what mine looks like also. Pretty much untouched so not sure why I'm getting that error.


On Sunday, November 30, 2014 4:44:18 AM UTC-5, Richard Beales wrote:

Siegfried H.

unread,
Nov 30, 2014, 3:43:33 PM11/30/14
to ope...@googlegroups.com
Don't you read all answers? Take a look at my answer above, there is a solution for your error.

Anthony Chan

unread,
Nov 30, 2014, 3:45:54 PM11/30/14
to ope...@googlegroups.com
When I toggle the lights via the GUI the logs show:

20:42:01.575 INFO  runtime.busevents[:22] - Light_GF_Kitchen_Ceiling received command ON
20:42:25.238 INFO  runtime.busevents[:22] - Light_GF_Kitchen_Table received command ON
20:42:25.824 INFO  runtime.busevents[:22] - Heating_GF_Kitchen received command ON
20:42:26.828 INFO  runtime.busevents[:22] - Heating_GF_Kitchen received command OFF
20:42:31.155 INFO  runtime.busevents[:22] - Light_GF_Kitchen_Ceiling received command OFF
20:42:31.717 INFO  runtime.busevents[:22] - Light_GF_Kitchen_Ceiling received command ON
20:42:32.313 INFO  runtime.busevents[:22] - Light_GF_Kitchen_Table received command OFF
20:42:32.906 INFO  runtime.busevents[:22] - Light_GF_Kitchen_Table received command ON
20:42:55.697 WARN  javax.jmdns.impl.DNSIncoming[:415] - There was an OPT answer. Not currently handled. Option code: 65002 data: D0CB94098FDE5A40
20:42:56.213 WARN  javax.jmdns.impl.DNSIncoming[:415] - There was an OPT answer. Not currently handled. Option code: 65002 data: D0CB94098FDE5A40
20:42:56.930 WARN  javax.jmdns.impl.DNSIncoming[:415] - There was an OPT answer. Not currently handled. Option code: 65002 data: D0CB94098FDE5A40
20:42:57.337 WARN  javax.jmdns.impl.DNSIncoming[:415] - There was an OPT answer. Not currently handled. Option code: 65002 data: D0CB94098FDE5A40


Some come on and turn right off automatically.. never has the LED on GPIO22 lit up though unless I manually do it via ocmmand line.


Please let me know if there's anything else that would help. Thanks.

Anthony Chan

unread,
Nov 30, 2014, 4:45:40 PM11/30/14
to ope...@googlegroups.com
The -=unkown part? If so, sorry I forgot to reply that I made that edit also... that is a separate issue it appears.

Siegfried H.

unread,
Nov 30, 2014, 4:49:23 PM11/30/14
to ope...@googlegroups.com
Yes, that is the part. The error should have disappeared.
Try to solve the problems one after the other!
You are driving us nuts here :-)

Anthony Chan

unread,
Nov 30, 2014, 4:55:32 PM11/30/14
to ope...@googlegroups.com
Sorry, if I double post or anything. Not too familiar with google post. As I make changes, there are a few errors. The en.map error seems to have gone away thanks to you telling me to add that but other things exist.


On Sunday, November 30, 2014 12:48:12 AM UTC-5, Anthony Chan wrote:

Anthony Chan

unread,
Nov 30, 2014, 5:02:21 PM11/30/14
to ope...@googlegroups.com
I know and I'm sorry... I wish I could give you all a beer or something. heh... I just want to see this work so bad so I can move on with my project =(

Did you see the last update on my log?

TimHH

unread,
Nov 30, 2014, 5:13:18 PM11/30/14
to ope...@googlegroups.com
Hi Anthony,
just to be safe. The org.openhab.binding.gpio-1.5.1.jar and org.openhab.io.gpio-1.5.1.jar are located in the folder /etc/openhab/addons? I ask the question, since you said it has never worked. Also today i got error messages in openhab 1.6 from an disabled addon (startup error even though it was not "activated")

Best
Tim

Anthony Chan

unread,
Nov 30, 2014, 5:18:11 PM11/30/14
to ope...@googlegroups.com
Tim

Well, this currently install I am running was done via apt-get as I mentioned..so I also installed the addons via apt-get which places the addons in /usr/share/openhab/addons/org.openhab.binding.gpio-1.5.1.jar

Shouldn't it read it from there? I don't notice anything about GPIO on startup. I'm stripping down the demo file to 1 LED to see if it would make things easier.

TimHH

unread,
Nov 30, 2014, 5:27:19 PM11/30/14
to ope...@googlegroups.com
Sorry i saw the addon directory in /etc/openhab and figured this would be the main addon folder. Seems logical to have them their. I don't know the apt version, so i am just trying to read from your listings. Just make sure you have both gpio's in their.

If you have a stripped down version of your config (reduced items, scripts, rules, sitemap), then a debug start (start_debug.sh) might be helpful for you.

Anthony Chan

unread,
Nov 30, 2014, 5:31:55 PM11/30/14
to ope...@googlegroups.com
Ok,

Demo files and sitemap are edited to 1 simple led connected to GPIO 22


Group All
Group gGF         (All)
Group gFF         (All)
Group gC         (All)

Group GF_Kitchen     "Kitchen"         <kitchen>     (gGF)
Group GF_Corridor     "Corridor"         <corridor>     (gGF)


/* active groups */
Group:Switch:OR(ON, OFF)         Lights         "All Lights [(%d)]"                                 (All)

/* Lights */

Switch Light_GF_Corridor_Ceiling     "Ceiling"         (GF_Corridor, Lights) { gpio="pin:22" }
Switch Light_GF_Kitchen_Ceiling     "Ceiling"         (GF_Kitchen, Lights) { gpio="pin:22" }


sitemap:

sitemap demo label="Main Menu"
{
    Frame {
        Group item=gGF label="Ground Floor" icon="groundfloor"
    }

}

I copied the addons from /usr/share/openhab to /etc/openhab/addons and also removed any unesscary addons as Ben suggested:

pi@raspberrypi /etc/openhab/addons $ ls
README  org.openhab.binding.gpio-1.5.1.jar  org.openhab.binding.http-1.5.1.jar  org.openhab.io.gpio-1.5.1.jar


Please let me know if I missed anything or if there's anything else that should be edited. I'm going to run it now and report back. Thank you guys btw.. I appreciate you all trying to help :)




On Sunday, November 30, 2014 5:13:18 PM UTC-5, TimHH wrote:

Anthony Chan

unread,
Nov 30, 2014, 5:43:50 PM11/30/14
to ope...@googlegroups.com
Woot! I think we're getting somewhere.. although I don't see GPIO binding in the startup I think it created the file:

pi@raspberrypi /sys/class/gpio $ ls
export  gpio22  gpiochip0  unexport
pi@raspberrypi /sys/class/gpio $ ls -lh gpio22
lrwxrwxrwx 1 root gpio 0 Nov 30 22:19 gpio22 -> ../../devices/virtual/gpio/gpio22


Also here's my current /etc/default/openhab


USER_AND_GROUP=root:root
HTTP_PORT=8080
HTTPS_PORT=8443
TELNET_PORT=5555
JAVA_ARGS=-Djna.boot.library.path=/usr/lib/jni
OPENHAB_ARGS=
#OPENHAB_JAVA=/usr/bin/java

I forgot to remove the .rules, so I am doing that now and will restart.



On Sunday, November 30, 2014 5:13:18 PM UTC-5, TimHH wrote:

Anthony Chan

unread,
Nov 30, 2014, 5:47:32 PM11/30/14
to ope...@googlegroups.com
Yay! I'm happy to see it atleast exporting the GPIO but not sure why its doing this. I manually unexported and re-ran but:

[....] Starting openHAB server: openhab22:43:09.122 INFO  o.o.c.internal.CoreActivator[:61] - openHAB runtime has been started (v1.5.1).
22:43:35.639 INFO  o.o.m.c.i.ModelRepositoryImpl[:79] - Loading model 'exec.persist'
22:43:36.947 INFO  o.o.m.c.i.ModelRepositoryImpl[:79] - Loading model 'logging.persist'
22:43:37.145 INFO  o.o.m.c.i.ModelRepositoryImpl[:79] - Loading model 'db4o.persist'
22:43:37.354 INFO  o.o.m.c.i.ModelRepositoryImpl[:79] - Loading model 'rrd4j.persist'
22:43:38.314 INFO  o.o.m.c.i.ModelRepositoryImpl[:79] - Loading model 'demo.items'
22:43:51.667 INFO  o.o.m.c.i.ModelRepositoryImpl[:79] - Loading model 'demo.script'
22:43:54.598 INFO  o.o.i.s.i.DiscoveryServiceImpl[:72] - mDNS service has been started
22:44:05.917 INFO  o.o.m.c.i.ModelRepositoryImpl[:79] - Loading model 'demo.sitemap'
22:44:13.629 INFO  o.o.io.rest.RESTApplication[:143] - Started REST API at /rest
22:44:19.547 INFO  o.o.u.w.i.s.WebAppServlet[:79] - Started Classic UI at /openhab.app
22:44:30.140 ERROR o.o.b.g.internal.GPIOBinding[:355] - Error occured while creating backend object for item Light_GF_Kitchen_Ceiling, exception: Device or resource busy
22:44:30.149 ERROR o.o.b.g.internal.GPIOBinding[:355] - Error occured while creating backend object for item Light_GF_Corridor_Ceiling, exception: Device or resource busy
22:45:37.382 INFO  runtime.busevents[:22] - Light_GF_Kitchen_Ceiling received command ON




On Sunday, November 30, 2014 5:13:18 PM UTC-5, TimHH wrote:

Anthony Chan

unread,
Nov 30, 2014, 5:49:27 PM11/30/14
to ope...@googlegroups.com
When I unexport it manually and toggle the LED it says its on/off but the LED doesn't turn on and the GPIO isn't exported.


22:44:30.140 ERROR o.o.b.g.internal.GPIOBinding[:355] - Error occured while creating backend object for item Light_GF_Kitchen_Ceiling, exception: Device or resource busy
22:44:30.149 ERROR o.o.b.g.internal.GPIOBinding[:355] - Error occured while creating backend object for item Light_GF_Corridor_Ceiling, exception: Device or resource busy
22:45:37.382 INFO  runtime.busevents[:22] - Light_GF_Kitchen_Ceiling received command ON
22:47:45.523 INFO  runtime.busevents[:22] - Light_GF_Kitchen_Ceiling received command OFF
22:47:52.794 INFO  runtime.busevents[:22] - Light_GF_Kitchen_Ceiling received command ON

Anthony Chan

unread,
Nov 30, 2014, 5:58:16 PM11/30/14
to ope...@googlegroups.com
22:52:40.284 INFO  o.o.c.internal.CoreActivator[:61]- openHAB runtime has been started (v1.5.1).
22:53:14.688 INFO  o.o.m.c.i.ModelRepositoryImpl[:79]- Loading model 'exec.persist'
22:53:18.330 INFO  o.o.m.c.i.ModelRepositoryImpl[:79]- Loading model 'logging.persist'
22:53:18.737 INFO  o.o.m.c.i.ModelRepositoryImpl[:79]- Loading model 'db4o.persist'
22:53:18.945 INFO  o.o.m.c.i.ModelRepositoryImpl[:79]- Loading model 'rrd4j.persist'
22:53:19.947 INFO  o.o.m.c.i.ModelRepositoryImpl[:79]- Loading model 'demo.items'
22:53:24.104 INFO  o.o.i.s.i.DiscoveryServiceImpl[:72]- mDNS service has been started
22:53:33.475 INFO  o.o.m.c.i.ModelRepositoryImpl[:79]- Loading model 'demo.sitemap'
22:53:37.184 INFO  o.o.m.c.i.ModelRepositoryImpl[:79]- Loading model 'demo.script'
22:53:45.375 INFO  o.o.io.rest.RESTApplication[:143]- Started REST API at /rest
22:53:53.486 INFO  o.o.u.w.i.s.WebAppServlet[:79]- Started Classic UI at /openhab.app
22:54:05.513 ERROR o.o.b.g.internal.GPIOBinding[:355]- Error occured while creating backend object for item Light_GF_Corridor_Ceiling, exception: The pin with number '22' is already registered

Anthony Chan

unread,
Nov 30, 2014, 5:58:54 PM11/30/14
to ope...@googlegroups.com
Sorry about the back to back posts. The LED is now lighting up!!! But I still have this 1 error:

TimHH

unread,
Dec 1, 2014, 1:49:38 AM12/1/14
to ope...@googlegroups.com
Hi Antony,
the Problem seems, that you use the same gpio twice (why?).

Switch Light_GF_Corridor_Ceiling     "Ceiling"         (GF_Corridor, Lights) { gpio="pin:22" }
Switch Light_GF_Kitchen_Ceiling     "Ceiling"         (GF_Kitchen, Lights) { gpio="pin:22" }

If you think about it, the error text makes sense ;)

Best
Tim
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages