diff --git a/bundles/binding/org.openhab.binding.gpio/ESH-INF/binding/binding.xml b/bundles/binding/org.openhab.binding.gpio/ESH-INF/binding/binding.xml new file mode 100644 index 00000000000..c0beafcf7a1 --- /dev/null +++ b/bundles/binding/org.openhab.binding.gpio/ESH-INF/binding/binding.xml @@ -0,0 +1,29 @@ + + + + GPIO Binding + This is the binding for gpio. + Dancho Penev + + + + + Optional directory path where "sysfs" pseudo file system is mounted, when isn't specified it will be determined automatically if "procfs" is mounted. + /sys + + + + Optional time interval in miliseconds when pin interrupts are ignored to prevent bounce effect, mainly on buttons. Global option for all pins, can be overwritten per pin in item configuration. + 0 + + + + Boolean controlling whether already exported pin should be forcibly taken under control of openHAB. Usefull after unclean shutdown. May cause serious issue if other software/system is also controlling GPIO and there is a configuration mistake for pin name/number. + false + + + + diff --git a/bundles/binding/org.openhab.binding.gpio/build.properties b/bundles/binding/org.openhab.binding.gpio/build.properties index 76681a07529..ce7d5938cb6 100644 --- a/bundles/binding/org.openhab.binding.gpio/build.properties +++ b/bundles/binding/org.openhab.binding.gpio/build.properties @@ -1,6 +1,7 @@ output.. = target/classes/ bin.includes = META-INF/,\ .,\ + ESH-INF/,\ OSGI-INF/ source.. = src/main/java/,\ src/main/resources/ diff --git a/features/openhab-addons-external/pom.xml b/features/openhab-addons-external/pom.xml index 4799ddc9fed..ded1cf1fdd4 100644 --- a/features/openhab-addons-external/pom.xml +++ b/features/openhab-addons-external/pom.xml @@ -48,6 +48,7 @@ src/main/resources/conf/freeswitch.cfgcfgfreeswitch src/main/resources/conf/garadget.cfgcfggaradget src/main/resources/conf/gc100ir.cfgcfggc100ir + src/main/resources/conf/gpio.cfgcfggpio src/main/resources/conf/heatmiser.cfgcfgheatmiser src/main/resources/conf/homematic.cfgcfghomematic src/main/resources/conf/http.cfgcfghttp diff --git a/features/openhab-addons-external/src/main/resources/conf/gpio.cfg b/features/openhab-addons-external/src/main/resources/conf/gpio.cfg new file mode 100644 index 00000000000..0ba39b347fe --- /dev/null +++ b/features/openhab-addons-external/src/main/resources/conf/gpio.cfg @@ -0,0 +1,16 @@ +################################### GPIO Binding ###################################### + +# Optional directory path where "sysfs" pseudo file system is mounted, when isn't +# specified it will be determined automatically if "procfs" is mounted +#sysfs=/sys + +# Optional time interval in miliseconds when pin interrupts are ignored to +# prevent bounce effect, mainly on buttons. Global option for all pins, can be +# overwritten per pin in item configuration. Default value if omitted: 0 +#debounce=10 + +# Boolean controlling whether already exported pin should be forcibly taken under +# control of openHAB. Usefull after unclean shutdown. May cause serios issue if +# other software/system is also controlling GPIO and there is a configuration +# mistake for pin name/number. Default value if omitted: false. +#force=true diff --git a/features/openhab-addons/src/main/feature/feature.xml b/features/openhab-addons/src/main/feature/feature.xml index a060f793efd..c18a29215b8 100644 --- a/features/openhab-addons/src/main/feature/feature.xml +++ b/features/openhab-addons/src/main/feature/feature.xml @@ -202,6 +202,13 @@ openhab-runtime-compat1x mvn:org.openhab.binding/org.openhab.binding.gc100ir/${project.version} + + + openhab-runtime-base + openhab-runtime-compat1x + openhab-io-gpio + mvn:org.openhab.binding/org.openhab.binding.gpio/${project.version} + openhab-runtime-base @@ -600,6 +607,11 @@ + + openhab-runtime-base + openhab-runtime-compat1x + mvn:org.openhab.io/org.openhab.io.gpio/${project.version} + openhab-runtime-base