forked from openhab/openhab1-addons
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added GPIO Binding and IO to 1.x compatibility bundle for OH2 (openha…
…b#4406) Followed instructions here: https://github.com/openhab/openhab-distro/blob/master/docs/sources/features/compatibilitylayer.md#how-to-add-a-successfully-tested-1x-add-on-to-the-distribution Included meta-information for Paper UI configuration.
- Loading branch information
1 parent
c05b23e
commit f4f860f
Showing
5 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
bundles/binding/org.openhab.binding.gpio/ESH-INF/binding/binding.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<binding:binding id="gpio" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:binding="http://eclipse.org/smarthome/schemas/binding/v1.0.0" | ||
xsi:schemaLocation="http://eclipse.org/smarthome/schemas/binding/v1.0.0 http://eclipse.org/smarthome/schemas/binding-1.0.0.xsd"> | ||
|
||
<name>GPIO Binding</name> | ||
<description>This is the binding for gpio.</description> | ||
<author>Dancho Penev</author> | ||
|
||
<config-description> | ||
<parameter name="sysfs" type="text"> | ||
<label>sysfs mount path</label> | ||
<description>Optional directory path where "sysfs" pseudo file system is mounted, when isn't specified it will be determined automatically if "procfs" is mounted.</description> | ||
<default>/sys</default> | ||
</parameter> | ||
<parameter name="debounce" type="integer"> | ||
<label>Debounce interval</label> | ||
<description>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.</description> | ||
<default>0</default> | ||
</parameter> | ||
<parameter name="force" type="boolean"> | ||
<label>Forcibly take pin</label> | ||
<description>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.</description> | ||
<default>false</default> | ||
</parameter> | ||
</config-description> | ||
|
||
</binding:binding> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
output.. = target/classes/ | ||
bin.includes = META-INF/,\ | ||
.,\ | ||
ESH-INF/,\ | ||
OSGI-INF/ | ||
source.. = src/main/java/,\ | ||
src/main/resources/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
features/openhab-addons-external/src/main/resources/conf/gpio.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters