Gpio binding not working after rpi reboot

Hi
i have installed OH2 on rpi3B+ and rpi4B 2Gb on raspbian lite.
installation was from

openhabian-config

step by step i have followed the instruction from openhab docs.

https://www.openhab.org/docs/installation/openhabian.html#quick-start

and now every thing seems to work except gpio-binding when i install gpio-binding from paper ui it works perfectly but after one or two reboot it does not work any more

here is my log

2019-11-26 10:05:36.564 [ERROR] [org.apache.felix.scr                ] - bundle org.apache.felix.scr:2.1.2 (39)Circular reference detected trying to get service {org.osgi.service.event.EventHandler}={service.id=367, service.bundleid=281, service.scope=bundle, event.topics=openhab/*, service.pid=org.openhab.gpio, component.name=org.openhab.binding.gpio.gpiobinding, component.id=212}

 stack of references: ServiceReference: {org.osgi.service.event.EventHandler}={service.id=367, service.bundleid=281, service.scope=bundle, event.topics=openhab/*, service.pid=org.openhab.gpio, component.name=org.openhab.binding.gpio.gpiobinding, component.id=212}

java.lang.Exception: stack trace

	at org.apache.felix.scr.impl.ComponentRegistry.enterCreate(ComponentRegistry.java:481) [39:org.apache.felix.scr:2.1.2]

	at org.apache.felix.scr.impl.BundleComponentActivator.enterCreate(BundleComponentActivator.java:735) [39:org.apache.felix.scr:2.1.2]

	at org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:845) [39:org.apache.felix.scr:2.1.2]

	at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse$1.run(ServiceFactoryUse.java:212) [?:?]

	at java.security.AccessController.doPrivileged(Native Method) ~[?:?]

	at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse.factoryGetService(ServiceFactoryUse.java:210) [?:?]

	at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse.getService(ServiceFactoryUse.java:111) [?:?]

	at org.eclipse.osgi.internal.serviceregistry.ServiceConsumer$2.getService(ServiceConsumer.java:45) [?:?]

	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:508) [?:?]

	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.getService(ServiceRegistry.java:461) [?:?]

	at org.eclipse.osgi.internal.framework.BundleContextImpl.getService(BundleContextImpl.java:624) [?:?]

	at org.apache.felix.eventadmin.impl.handler.EventHandlerProxy.obtain(EventHandlerProxy.java:286) [3:org.apache.karaf.services.eventadmin:4.2.1]

	at org.apache.felix.eventadmin.impl.handler.EventHandlerProxy.sendEvent(EventHandlerProxy.java:407) [3:org.apache.karaf.services.eventadmin:4.2.1]

	at org.apache.felix.eventadmin.impl.tasks.HandlerTask.runWithoutBlacklistTiming(HandlerTask.java:82) [3:org.apache.karaf.services.eventadmin:4.2.1]

	at org.apache.felix.eventadmin.impl.tasks.SyncDeliverTasks.execute(SyncDeliverTasks.java:104) [3:org.apache.karaf.services.eventadmin:4.2.1]

	at org.apache.felix.eventadmin.impl.tasks.AsyncDeliverTasks$TaskExecuter.run(AsyncDeliverTasks.java:166) [3:org.apache.karaf.services.eventadmin:4.2.1]

	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]

	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]

	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]

	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]

	at java.lang.Thread.run(Thread.java:748) [?:?]

here is my items

Switch Num1 "Num1" { gpio="pin:2 activelow:no initialValue:low" }
Switch Num2 "Num2" { gpio="pin:3 activelow:no initialValue:low" }
Switch Num3 "Num3" { gpio="pin:4 activelow:no initialValue:low" }
Switch Num4 "Num4" { gpio="pin:17 activelow:no initialValue:low" }
Switch Num5 "Num5" { gpio="pin:27 activelow:no initialValue:low" }
Switch Num6 "Num6" { gpio="pin:22 activelow:no initialValue:low" }
Switch Num7 "Num7" { gpio="pin:10 activelow:no initialValue:low" }
Switch Num8 "Num8" { gpio="pin:9 activelow:no initialValue:low" }
Switch Num9 "Num9" { gpio="pin:11 activelow:no initialValue:low" }
Switch Num10 "Num10" { gpio="pin:5 activelow:no initialValue:low" }
Switch Num11 "Num11" { gpio="pin:6 activelow:no initialValue:low" }
Switch Num12 "Num12" { gpio="pin:13 activelow:no initialValue:low" }
Switch Num13 "Num13" { gpio="pin:19 activelow:no initialValue:low" }
Switch Num14 "Num14" { gpio="pin:26 activelow:no initialValue:low" }
Switch Num15 "Num15" { gpio="pin:21 activelow:no initialValue:low" }
Switch Num16 "Num16" { gpio="pin:20 activelow:no initialValue:low" }
Switch Num17 "Num17" { gpio="pin:16 activelow:no initialValue:low" }
Switch Num18 "Num18" { gpio="pin:12 activelow:no initialValue:low" }
Switch Num19 "Num19" { gpio="pin:7 activelow:no initialValue:low" }
Switch Num20 "Num20" { gpio="pin:8 activelow:no initialValue:low" }
Switch Num21 "Num21" { gpio="pin:25 activelow:no initialValue:low" }
Switch Num22 "Num22" { gpio="pin:24 activelow:no initialValue:low" }
Switch Num23 "Num23" { gpio="pin:23 activelow:no initialValue:low" }
Switch Num24 "Num24" { gpio="pin:18 activelow:no initialValue:low" }

in this occasion if i uninstall gpio-binding and install it again every thing works perfectly but after reboot or power outage the same error happens on both rpi3 and rpi4
------ i have tried making gpio.cfg in services folder and putting the bellow code in it.

sysfs=/sys
debounce=10

----- i have used the below code in /etc/default/openhab

JAVA_ARGS=-Djna.boot.library.path=/usr/lib/jni

------- The user openhab' is already a member of gpio’.

------- i have changed /etc/default/openhab and /usr/lib/systemd/system/openhab.service as bellow

USER_AND_GROUP=root:root
User=root
Group=root

---->> none of them helped.

sorry for my bad English.
any help would be really appreciated.

What versions of OpenHAB and Java?

Thank you for dedicating your time and energy into this.

openHAB 2.4.0-1 
(Zulu8.40.0.178-CA-linux_aarch32hf)

downloaded in installation process from this:

 wget -nv -O /tmp/openhabian.4GAQ4/zulu8.tar.gz https://cdn.azul.com/zulu-embedded/bin/zulu8.40.0.178-ca-jdk1.8.0_222-linux_aarch32hf.tar.gz

and if it helps here is my full openhab log:

2019-11-26 12:02:10.250 [vent.ItemStateChangedEvent] - Num10 changed from NULL to OFF

2019-11-26 12:02:15.418 [vent.ItemStateChangedEvent] - Num12 changed from NULL to OFF

==> /var/log/openhab2/openhab.log <==

2019-11-26 12:02:15.416 [ERROR] [org.openhab.binding.gpio            ] - FrameworkEvent ERROR - org.openhab.binding.gpio

org.osgi.framework.ServiceException: Exception in org.apache.felix.scr.impl.manager.SingleComponentManager.getService()

	at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse.factoryGetService(ServiceFactoryUse.java:222) ~[?:?]

	at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse.getService(ServiceFactoryUse.java:111) ~[?:?]

	at org.eclipse.osgi.internal.serviceregistry.ServiceConsumer$2.getService(ServiceConsumer.java:45) ~[?:?]

	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:508) ~[?:?]

	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.getService(ServiceRegistry.java:461) ~[?:?]

	at org.eclipse.osgi.internal.framework.BundleContextImpl.getService(BundleContextImpl.java:624) ~[?:?]

	at org.apache.felix.eventadmin.impl.handler.EventHandlerProxy.obtain(EventHandlerProxy.java:286) ~[?:?]

	at org.apache.felix.eventadmin.impl.handler.EventHandlerProxy.sendEvent(EventHandlerProxy.java:407) ~[?:?]

	at org.apache.felix.eventadmin.impl.tasks.HandlerTask.runWithoutBlacklistTiming(HandlerTask.java:82) ~[?:?]

	at org.apache.felix.eventadmin.impl.tasks.SyncDeliverTasks.execute(SyncDeliverTasks.java:104) ~[?:?]

	at org.apache.felix.eventadmin.impl.tasks.AsyncDeliverTasks$TaskExecuter.run(AsyncDeliverTasks.java:166) ~[?:?]

	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:?]

	at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:?]

	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:?]

	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:?]

	at java.lang.Thread.run(Thread.java:748) ~[?:?]

Caused by: java.lang.IllegalStateException: Could not obtain lock

	at org.apache.felix.scr.impl.manager.AbstractComponentManager.obtainLock(AbstractComponentManager.java:235) ~[?:?]

	at org.apache.felix.scr.impl.manager.AbstractComponentManager.obtainStateLock(AbstractComponentManager.java:282) ~[?:?]

	at org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:849) ~[?:?]

	at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse$1.run(ServiceFactoryUse.java:212) ~[?:?]

	at java.security.AccessController.doPrivileged(Native Method) ~[?:?]

	at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse.factoryGetService(ServiceFactoryUse.java:210) ~[?:?]

	... 15 more

==> /var/log/openhab2/events.log <==

2019-11-26 12:02:20.543 [vent.ItemStateChangedEvent] - Num11 changed from NULL to OFF

==> /var/log/openhab2/openhab.log <==

2019-11-26 12:02:20.540 [ERROR] [org.openhab.binding.gpio            ] - FrameworkEvent ERROR - org.openhab.binding.gpio

org.osgi.framework.ServiceException: Exception in org.apache.felix.scr.impl.manager.SingleComponentManager.getService()

	at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse.factoryGetService(ServiceFactoryUse.java:222) ~[?:?]

	at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse.getService(ServiceFactoryUse.java:111) ~[?:?]

	at org.eclipse.osgi.internal.serviceregistry.ServiceConsumer$2.getService(ServiceConsumer.java:45) ~[?:?]

	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:508) ~[?:?]

	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.getService(ServiceRegistry.java:461) ~[?:?]

	at org.eclipse.osgi.internal.framework.BundleContextImpl.getService(BundleContextImpl.java:624) ~[?:?]

	at org.apache.felix.eventadmin.impl.handler.EventHandlerProxy.obtain(EventHandlerProxy.java:286) ~[?:?]

	at org.apache.felix.eventadmin.impl.handler.EventHandlerProxy.sendEvent(EventHandlerProxy.java:407) ~[?:?]

	at org.apache.felix.eventadmin.impl.tasks.HandlerTask.runWithoutBlacklistTiming(HandlerTask.java:82) ~[?:?]

	at org.apache.felix.eventadmin.impl.tasks.SyncDeliverTasks.execute(SyncDeliverTasks.java:104) ~[?:?]

	at org.apache.felix.eventadmin.impl.tasks.AsyncDeliverTasks$TaskExecuter.run(AsyncDeliverTasks.java:166) ~[?:?]

	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:?]

	at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:?]

	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:?]

	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:?]

	at java.lang.Thread.run(Thread.java:748) ~[?:?]

Caused by: java.lang.IllegalStateException: Could not obtain lock

	at org.apache.felix.scr.impl.manager.AbstractComponentManager.obtainLock(AbstractComponentManager.java:235) ~[?:?]

	at org.apache.felix.scr.impl.manager.AbstractComponentManager.obtainStateLock(AbstractComponentManager.java:282) ~[?:?]

	at org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:849) ~[?:?]

	at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse$1.run(ServiceFactoryUse.java:212) ~[?:?]

	at java.security.AccessController.doPrivileged(Native Method) ~[?:?]

	at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse.factoryGetService(ServiceFactoryUse.java:210) ~[?:?]

	... 15 more

==> /var/log/openhab2/events.log <==

2019-11-26 12:02:20.582 [vent.ItemStateChangedEvent] - Num13 changed from NULL to OFF

==> /var/log/openhab2/openhab.log <==

2019-11-26 12:02:20.544 [ERROR] [org.apache.felix.scr                ] - bundle org.apache.felix.scr:2.1.2 (39)Circular reference detected trying to get service {org.osgi.service.event.EventHandler}={service.id=376, service.bundleid=293, service.scope=bundle, event.topics=openhab/*, service.pid=org.openhab.gpio, component.name=org.openhab.binding.gpio.gpiobinding, component.id=226}

 stack of references: ServiceReference: {org.osgi.service.event.EventHandler}={service.id=376, service.bundleid=293, service.scope=bundle, event.topics=openhab/*, service.pid=org.openhab.gpio, component.name=org.openhab.binding.gpio.gpiobinding, component.id=226}

java.lang.Exception: stack trace

	at org.apache.felix.scr.impl.ComponentRegistry.enterCreate(ComponentRegistry.java:481) [39:org.apache.felix.scr:2.1.2]

	at org.apache.felix.scr.impl.BundleComponentActivator.enterCreate(BundleComponentActivator.java:735) [39:org.apache.felix.scr:2.1.2]

	at org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:845) [39:org.apache.felix.scr:2.1.2]

	at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse$1.run(ServiceFactoryUse.java:212) [?:?]

	at java.security.AccessController.doPrivileged(Native Method) ~[?:?]

	at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse.factoryGetService(ServiceFactoryUse.java:210) [?:?]

	at org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse.getService(ServiceFactoryUse.java:111) [?:?]

	at org.eclipse.osgi.internal.serviceregistry.ServiceConsumer$2.getService(ServiceConsumer.java:45) [?:?]

	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:508) [?:?]

	at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.getService(ServiceRegistry.java:461) [?:?]

	at org.eclipse.osgi.internal.framework.BundleContextImpl.getService(BundleContextImpl.java:624) [?:?]

	at org.apache.felix.eventadmin.impl.handler.EventHandlerProxy.obtain(EventHandlerProxy.java:286) [3:org.apache.karaf.services.eventadmin:4.2.1]

	at org.apache.felix.eventadmin.impl.handler.EventHandlerProxy.sendEvent(EventHandlerProxy.java:407) [3:org.apache.karaf.services.eventadmin:4.2.1]

	at org.apache.felix.eventadmin.impl.tasks.HandlerTask.runWithoutBlacklistTiming(HandlerTask.java:82) [3:org.apache.karaf.services.eventadmin:4.2.1]

	at org.apache.felix.eventadmin.impl.tasks.SyncDeliverTasks.execute(SyncDeliverTasks.java:104) [3:org.apache.karaf.services.eventadmin:4.2.1]

	at org.apache.felix.eventadmin.impl.tasks.AsyncDeliverTasks$TaskExecuter.run(AsyncDeliverTasks.java:166) [3:org.apache.karaf.services.eventadmin:4.2.1]

	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]

	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]

	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]

	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]

	at java.lang.Thread.run(Thread.java:748) [?:?]


My gut feeling is that 2.4 is now 11 months old and 2.5 is scheduled for release on December 15. It may be worthwhile to test with 2.5M5 to see if the issue is present there. I believe Milestone 6 is scheduled soon.

it’s old problem. i’ve solved it once when openhab 2.2 released, i’ve followed a tutorial from a website that does not exists anymore. i just remember installing wiring pi and some libraries or tricks solved my problem… then i made a backup from sd card. but now with rpi4B of course it won’t work. and i need a fresh installation.

If you know the URL and are lucky, the Wayback Machine at archive.org may have an old copy of the page.

1 Like

unfortunately i don’t have the URL. in that time i’ve found it from google search… :frowning:
i think it was about a year ago.

1 Like

Uninstall the binding then stop OH and clean cache.
sudo systemctl stop openhab2
sudo openhab-cli clean-cache
sudo systemctl start opehan2

After the system has finished starting up (this will take a few minuets after cleaning cache) reinstall the binding. Use sudo openhabian-config tool and select option 10. Then select option 11, 12, and 14. After that check if the binding is working. If not then stop OH again and reboot (may need to reboot twice).

If still not working check the console to see is binding is active. sudo openhab-cli console then bundle:list See this link for console options https://www.openhab.org/docs/administration/console.html#using-the-console to help resolve the issue.

Thank you for dedicating your time and energy into this.

i did all of them step by step. then i started new fresh installing OH2.4 and then again i did these process. but unfortunately it does not work. the same problem still happens, when installing gpio-binding it works and after reboot rpi, the same error come up in log.

and finally i have checked the bundle:list :point_down::point_down::point_down:

202 β”‚ Active   β”‚  80 β”‚ 1.13.0                 β”‚ openHAB GPIO Binding
203 β”‚ Active   β”‚  80 β”‚ 2.4.0                  β”‚ openHAB 1.x Compatibility Layer
204 β”‚ Active   β”‚  80 β”‚ 1.13.0                 β”‚ openHAB GPIO IO Module

all the bundle:list :point_down::point_down:

START LEVEL 100 , List Threshold: 50
 ID β”‚ State    β”‚ Lvl β”‚ Version                β”‚ Name
────┼──────────┼─────┼────────────────────────┼────────────────────────────────
 20 β”‚ Active   β”‚  80 β”‚ 5.3.1.201602281253     β”‚ OSGi JAX-RS Connector
 21 β”‚ Active   β”‚  80 β”‚ 2.7.0.v20170129-0911   β”‚ Gson: Google Json Library for
 22 β”‚ Active   β”‚  80 β”‚ 18.0.0                 β”‚ Guava: Google Core Libraries f
 23 β”‚ Active   β”‚  80 β”‚ 3.0.0.v201312141243    β”‚ Google Guice (No AOP)
 24 β”‚ Active   β”‚  80 β”‚ 3.18.1.GA              β”‚ Javassist
 26 β”‚ Active   β”‚  80 β”‚ 3.5.5                  β”‚ JmDNS
 28 β”‚ Active   β”‚  80 β”‚ 1.0.0                  β”‚ Units of Measurement API
 30 β”‚ Active   β”‚  80 β”‚ 1.1.0.Final            β”‚ Bean Validation API
 31 β”‚ Active   β”‚  80 β”‚ 2.0.1                  β”‚ javax.ws.rs-api
 32 β”‚ Active   β”‚  80 β”‚ 3.2.0.v201101311130    β”‚ ANTLR Runtime
 35 β”‚ Active   β”‚  80 β”‚ 3.2.1                  β”‚ Commons Collections
 36 β”‚ Active   β”‚  80 β”‚ 1.1                    β”‚ Commons Exec
 37 β”‚ Active   β”‚  80 β”‚ 2.2.0                  β”‚ Commons IO
 38 β”‚ Active   β”‚  80 β”‚ 2.6                    β”‚ Commons Lang
 47 β”‚ Active   β”‚  80 β”‚ 4.2.1                  β”‚ Apache Karaf :: OSGi Services
 63 β”‚ Active   β”‚  80 β”‚ 4.6.0                  β”‚ Apache XBean OSGI Bundle Utili
 64 β”‚ Active   β”‚  80 β”‚ 4.6.0                  β”‚ Apache XBean :: Classpath Reso
 65 β”‚ Active   β”‚  80 β”‚ 2.12.0.v20160420-0247  β”‚ EMF Common
 66 β”‚ Active   β”‚  80 β”‚ 2.12.0.v20160420-0247  β”‚ EMF Ecore
 67 β”‚ Active   β”‚  80 β”‚ 2.11.0.v20160420-0247  β”‚ EMF Change Model
 68 β”‚ Active   β”‚  80 β”‚ 2.12.0.v20160420-0247  β”‚ EMF XML/XMI Persistence
 69 β”‚ Active   β”‚  80 β”‚ 3.8.0.v20160509-1230   β”‚ Common Eclipse Runtime
 70 β”‚ Active   β”‚  80 β”‚ 3.6.100.v20160223-2218 β”‚ Extension Registry Support
 80 β”‚ Active   β”‚  80 β”‚ 9.4.11.v20180605       β”‚ Jetty :: Proxy
 94 β”‚ Active   β”‚  80 β”‚ 0.4.1.v20180515-1321   β”‚ org.eclipse.lsp4j
 95 β”‚ Active   β”‚  80 β”‚ 0.4.1.v20180515-1321   β”‚ org.eclipse.lsp4j.jsonrpc
 96 β”‚ Active   β”‚  80 β”‚ 0.10.0.oh240           β”‚ Eclipse SmartHome OAuth2Client
 97 β”‚ Active   β”‚  80 β”‚ 0.10.0.oh240           β”‚ Eclipse SmartHome Config Core
 98 β”‚ Active   β”‚  80 β”‚ 0.10.0.oh240           β”‚ Eclipse SmartHome Configuratio
 99 β”‚ Active   β”‚  80 β”‚ 0.10.0.oh240           β”‚ Eclipse SmartHome Configuratio
100 β”‚ Active   β”‚  80 β”‚ 0.10.0.oh240           β”‚ Eclipse SmartHome Config Dispa
101 β”‚ Active   β”‚  75 β”‚ 0.10.0.oh240           β”‚ Eclipse SmartHome Config XML
102 β”‚ Active   β”‚  80 β”‚ 0.10.0.oh240           β”‚ Eclipse SmartHome Core
103 β”‚ Active   β”‚  80 β”‚ 0.10.0.oh240           β”‚ Eclipse SmartHome Core Audio
104 β”‚ Active   β”‚  80 β”‚ 0.10.0.oh240           β”‚ Eclipse SmartHome Core Binding
105 β”‚ Active   β”‚  80 β”‚ 0.10.0.oh240           β”‚ Eclipse SmartHome Core ID
106 β”‚ Active   β”‚  80 β”‚ 0.10.0.oh240           β”‚ Eclipse SmartHome Core Persist
107 β”‚ Active   β”‚  80 β”‚ 0.10.0.oh240           β”‚ Eclipse SmartHome Scheduler Se
108 β”‚ Active   β”‚  80 β”‚ 0.10.0.oh240           β”‚ Eclipse SmartHome Core Semanti
109 β”‚ Active   β”‚  80 β”‚ 0.10.0.oh240           β”‚ Eclipse SmartHome Core Thing
110 β”‚ Active   β”‚  75 β”‚ 0.10.0.oh240           β”‚ Eclipse SmartHome Core Thing X
111 β”‚ Active   β”‚  80 β”‚ 0.10.0.oh240           β”‚ Eclipse SmartHome Transformati
112 β”‚ Active   β”‚  80 β”‚ 0.10.0.oh240           β”‚ Eclipse SmartHome Core Voice
113 β”‚ Active   β”‚  80 β”‚ 0.10.0.oh240           β”‚ Eclipse SmartHome Console
114 β”‚ Active   β”‚  80 β”‚ 0.10.0.oh240           β”‚ Eclipse SmartHome Console for
115 β”‚ Active   β”‚  80 β”‚ 0.10.0.oh240           β”‚ Eclipse SmartHome HTTP Interfa
116 β”‚ Active   β”‚  80 β”‚ 0.10.0.oh240           β”‚ Eclipse SmartHome JavaSound I/
117 β”‚ Active   β”‚  80 β”‚ 0.10.0.oh240           β”‚ Eclipse SmartHome Monitor
118 β”‚ Active   β”‚  80 β”‚ 0.10.0.oh240           β”‚ Eclipse SmartHome Net I/O Bund
119 β”‚ Active   β”‚  80 β”‚ 0.10.0.oh240           β”‚ Eclipse SmartHome REST Interfa
120 β”‚ Active   β”‚  80 β”‚ 0.10.0.oh240           β”‚ Eclipse SmartHome Core REST API
121 β”‚ Active   β”‚  80 β”‚ 0.10.0.oh240           β”‚ Eclipse SmartHome REST mDNS An
122 β”‚ Active   β”‚  80 β”‚ 0.10.0.oh240           β”‚ Eclipse SmartHome REST Interfa
123 β”‚ Active   β”‚  80 β”‚ 0.10.0.oh240           β”‚ Eclipse SmartHome Sitemap REST
124 β”‚ Active   β”‚  80 β”‚ 0.10.0.oh240           β”‚ Eclipse SmartHome SSE REST API
125 β”‚ Active   β”‚  80 β”‚ 0.10.0.oh240           β”‚ Eclipse SmartHome Voice REST A
126 β”‚ Active   β”‚  80 β”‚ 0.10.0.oh240           β”‚ Eclipse SmartHome Bonjour/MDS
127 β”‚ Active   β”‚  80 β”‚ 0.10.0.oh240           β”‚ Eclipse SmartHome Web Audio Su
128 β”‚ Active   β”‚  80 β”‚ 0.10.0.oh240           β”‚ Eclipse SmartHome Model Core
129 β”‚ Active   β”‚  80 β”‚ 0.10.0.oh240           β”‚ Eclipse SmartHome Item Model
130 β”‚ Active   β”‚  80 β”‚ 0.10.0.oh240           β”‚ Eclipse SmartHome Item Model I
131 β”‚ Active   β”‚  80 β”‚ 0.10.0.oh240           β”‚ Eclipse SmartHome Item Model R
132 β”‚ Active   β”‚  80 β”‚ 0.10.0.oh240           β”‚ Eclipse SmartHome Language Ser
133 β”‚ Active   β”‚  80 β”‚ 0.10.0.oh240           β”‚ Eclipse SmartHome Persistence
134 β”‚ Active   β”‚  80 β”‚ 0.10.0.oh240           β”‚ Eclipse SmartHome Persistence
135 β”‚ Active   β”‚  80 β”‚ 0.10.0.oh240           β”‚ Eclipse SmartHome Persistence
136 β”‚ Active   β”‚  80 β”‚ 0.10.0.oh240           β”‚ Eclipse SmartHome Rule Model
137 β”‚ Active   β”‚  80 β”‚ 0.10.0.oh240           β”‚ Eclipse SmartHome Rule Model I
138 β”‚ Active   β”‚  80 β”‚ 0.10.0.oh240           β”‚ Eclipse SmartHome Rule Runtime
139 β”‚ Active   β”‚  80 β”‚ 0.10.0.oh240           β”‚ Eclipse SmartHome Script
140 β”‚ Active   β”‚  80 β”‚ 0.10.0.oh240           β”‚ Eclipse SmartHome Script Model
141 β”‚ Active   β”‚  80 β”‚ 0.10.0.oh240           β”‚ Eclipse SmartHome Script Runti
142 β”‚ Active   β”‚  80 β”‚ 0.10.0.oh240           β”‚ Eclipse SmartHome Sitemap Model
143 β”‚ Active   β”‚  80 β”‚ 0.10.0.oh240           β”‚ Eclipse SmartHome Sitemap Mode
144 β”‚ Active   β”‚  80 β”‚ 0.10.0.oh240           β”‚ Eclipse SmartHome Sitemap Runt
145 β”‚ Active   β”‚  80 β”‚ 0.10.0.oh240           β”‚ Eclipse SmartHome Thing Model
146 β”‚ Active   β”‚  80 β”‚ 0.10.0.oh240           β”‚ Eclipse SmartHome Thing Model
147 β”‚ Active   β”‚  80 β”‚ 0.10.0.oh240           β”‚ Eclipse SmartHome Thing Model
148 β”‚ Active   β”‚  80 β”‚ 0.10.0.oh240           β”‚ Eclipse SmartHome Json Storage
149 β”‚ Active   β”‚  80 β”‚ 0.10.0.oh240           β”‚ Eclipse SmartHome UI
150 β”‚ Active   β”‚  80 β”‚ 0.10.0.oh240           β”‚ Eclipse SmartHome UI Icons
151 β”‚ Active   β”‚  80 β”‚ 0.10.0.oh240           β”‚ Eclipse SmartHome Classic Icon
152 β”‚ Active   β”‚  80 β”‚ 2.14.0.v20180522-1629  β”‚ Xtend Runtime Library
153 β”‚ Active   β”‚  80 β”‚ 2.14.0.v20180522-1629  β”‚ Xtend Macro Interfaces
154 β”‚ Active   β”‚  80 β”‚ 2.14.0.v20180522-1821  β”‚ Xtext
155 β”‚ Active   β”‚  80 β”‚ 2.14.0.v20180522-1833  β”‚ Xtext Common Types
156 β”‚ Active   β”‚  80 β”‚ 2.14.0.v20180522-1821  β”‚ Xtext IDE Core
157 β”‚ Active   β”‚  80 β”‚ 2.14.0.v20180522-1821  β”‚ Xtext Utility
158 β”‚ Active   β”‚  80 β”‚ 2.14.0.v20180522-1833  β”‚ Xbase Model
159 β”‚ Active   β”‚  80 β”‚ 2.14.0.v20180522-1833  β”‚ Xbase Generic IDE Services
160 β”‚ Active   β”‚  80 β”‚ 2.14.0.v20180522-1629  β”‚ Xbase Runtime Library
175 β”‚ Active   β”‚  80 β”‚ 1.9.6                  β”‚ MIME streaming extension
177 β”‚ Active   β”‚  80 β”‚ 6.2.0                  β”‚ org.objectweb.asm
178 β”‚ Active   β”‚  80 β”‚ 6.2.0                  β”‚ org.objectweb.asm.commons
179 β”‚ Active   β”‚  80 β”‚ 6.2.0                  β”‚ org.objectweb.asm.tree
180 β”‚ Active   β”‚  90 β”‚ 2.4.0                  β”‚ openHAB Core
181 β”‚ Active   β”‚  80 β”‚ 2.4.0                  β”‚ openHAB Karaf Integration
183 β”‚ Resolved β”‚  80 β”‚ 2.4.0                  β”‚ openHAB Sound Support, Hosts:
184 β”‚ Active   β”‚  80 β”‚ 2.4.0                  β”‚ openHAB Dashboard UI
189 β”‚ Active   β”‚  80 β”‚ 1.0.2                  β”‚ Units of Measurement Common Li
190 β”‚ Active   β”‚  80 β”‚ 1.0.8                  β”‚ Units of Measurement Implement
191 β”‚ Active   β”‚  80 β”‚ 3.3.0                  β”‚ Commons Net
192 β”‚ Active   β”‚  80 β”‚ 0.10.0.oh240           β”‚ Eclipse SmartHome Basic UI, Fr
193 β”‚ Active   β”‚  80 β”‚ 0.10.0.oh240           β”‚ Eclipse SmartHome Paper UI, Fr
194 β”‚ Resolved β”‚  75 β”‚ 2.4.0                  β”‚ openHAB Basic UI Fragment, Hos
195 β”‚ Active   β”‚  80 β”‚ 2.4.0                  β”‚ HABPanel User Interface
196 β”‚ Active   β”‚  80 β”‚ 2.4.0                  β”‚ HomeBuilder User Interface
197 β”‚ Resolved β”‚  75 β”‚ 2.4.0                  β”‚ openHAB Paper UI Theme Fragmen
198 β”‚ Active   β”‚  80 β”‚ 1.6.0                  β”‚ Commons Codec
199 β”‚ Active   β”‚  80 β”‚ 4.2.3                  β”‚ Apache HttpClient OSGi bundle
200 β”‚ Active   β”‚  80 β”‚ 4.2.3                  β”‚ Apache HttpCore OSGi bundle
201 β”‚ Active   β”‚  80 β”‚ 3.1.0.7                β”‚ Apache ServiceMix :: Bundles :
202 β”‚ Active   β”‚  80 β”‚ 1.13.0                 β”‚ openHAB GPIO Binding
203 β”‚ Active   β”‚  80 β”‚ 2.4.0                  β”‚ openHAB 1.x Compatibility Layer
204 β”‚ Active   β”‚  80 β”‚ 1.13.0                 β”‚ openHAB GPIO IO Module

I can’t offer any help with the GPIO binding as I haven’t used it personally. If you can’t get it working to your liking or you want to control GPIOs on a remote Pi you could check out MQTTany that I made to be able to control Pi GPIOs over MQTT.

Your binging looks a bit old. Uninstall it and try this snapshot version for 2.4. https://openhab.jfrog.io/openhab/libs-pullrequest-local/org/openhab/binding/org.openhab.binding.gpio/2.4.0-SNAPSHOT/

I will include the latest snapshot as well but not sure if it will work on OH 2.4 https://openhab.jfrog.io/openhab/libs-pullrequest-local/org/openhab/addons/bundles/org.openhab.binding.gpio/2.5.0-SNAPSHOT/

The jar files above should be placed in usr/share/openhab2/addons then either set the permissions manually or use the openhabian_config tool to fix permissions. After permissions are good then restart OH.

Thank you again for your help.
i did this :point_down::point_down:

cd /usr/share/openhab2/addons
sudo wget <download-location>
sudo chown openhab:openhab <filename>

after fix permissions and reboot nothing happened, then i changed my addon.cfg from openhab-conf

binding = gpio 

it appears in paper ui and it is Active in bundle:list

but nothing solved it does not recognize my items. it seems there is no binding installed…

When installing a jar file in usr/share/openhab2/addons you should not have it also listed in addons.cfg or installed via PaperUI. If this is the case then you will need to remove all installs from PaperUI and addons.cfg then clean cache and reboot.

There may also be an issue with using wget (usually applies to downloads from github only, but not 100% sure) so try downloading the jar file to PC then move the jar with something like FileZilla.

Note: Have your fronttail log browser open when you reboot and watch for errors about the binding before having to use FileZilla. Post what you see and that will let us know if there is an issue with the wget method that was used.

Thank you my friend
i want to control relays and sensors with my rpi and i don’t know anything about mqtt… i use HTTP to control GPIOs from other rpi… so if the problem not solved maybe i use MQTTany

I did that too,
i downloaded the .jar file and copied into usr/share/openhab2/addons using WinSCP software, then i used openhabian-config and fix permissions then reboot… my log i mean openhabip:9001 always open in browser when i did that nothing happened it seems nothing installed it does not recognize my items

you mean when i copy the .jar file then i don’t need to do anything
it will install automatically?

How can i know gpio-binding installed then?

Yes, it will get installed automatically. You should be able to see the binding listed under Configurations in PaperUI.

@11165 something else I forgot to mention is set the GPIO binding log to DEBUG to see if there is additional info to help. Use the console to set the log level and let me know if you need assistance with this.

FYI, If we can’t get this figured out and you need GPIO functionality sooner than later then looking to MQTTany or https://github.com/rkoshak/sensorReporter.