这是indexloc提供的服务,不要输入任何密码
Skip to content
This repository was archived by the owner on May 17, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<binding:binding id="upb"
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>UPB Binding</name>
<description>The Universal Powerline Bus (UPB) binding reads and writes messages to and from a UPB modem</description>
<author>Chris Van Orman</author>

<service-id>org.openhab.upb</service-id>

<config-description>
<parameter name="refresh" type="integer">
<label>Refresh Interval</label>
<description>Data refresh interval in milliseconds.</description>
<default>3600000</default>
</parameter>
<parameter name="port" type="text">
<label>Serial Port</label>
<description>Serial port to which the UPB modem is connected.</description>
<required>true</required>
</parameter>
<parameter name="network" type="integer" min="0" max="255">
<label>UPB Network ID</label>
<description>Every UPB device is assigned a single 8-bit Network ID.</description>
<required>true</required>
</parameter>
</config-description>
</binding:binding>
16 changes: 14 additions & 2 deletions distribution/openhabhome/configurations/openhab_default.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2571,7 +2571,19 @@ tcp:refreshinterval=250
#
# the refresh interval in milliseconds which is used to poll values from the Fatek PLC
# (optional, defaults to 60000ms / 60 seconds)
# fatekplc:refresh=60000
#fatekplc:refresh=60000
#
# fatek connection uri, support tcp and udp
# fatekplc:plc1.connectionUri=udp://192.168.1.100?plcId=1
#fatekplc:plc1.connectionUri=udp://192.168.1.100?plcId=1

###################################### UPB Binding ##########################################
#
# The refresh frequency, in milliseconds (optional, defaults to 3600000)
#upb:refresh=
#
# The UPB modem port. Valid values are e.g. COM1 for Windows and /dev/ttyS0 or
# /dev/ttyUSB0 for Linux (required)
#upb:port=
#
# UPB Netword ID (required, must be a value between 0 and 255, inclusive)
#upb:network=
1 change: 1 addition & 0 deletions features/openhab-addons-external/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@
<artifact><file>src/main/resources/conf/telegram.cfg</file><type>cfg</type><classifier>telegram</classifier></artifact>
<artifact><file>src/main/resources/conf/tinkerforge.cfg</file><type>cfg</type><classifier>tinkerforge</classifier></artifact>
<artifact><file>src/main/resources/conf/twitter.cfg</file><type>cfg</type><classifier>twitter</classifier></artifact>
<artifact><file>src/main/resources/conf/upb.cfg</file><type>cfg</type><classifier>upb</classifier></artifact>
<artifact><file>src/main/resources/conf/urtsi.cfg</file><type>cfg</type><classifier>urtsi</classifier></artifact>
<artifact><file>src/main/resources/conf/weather.cfg</file><type>cfg</type><classifier>weather</classifier></artifact>
<artifact><file>src/main/resources/conf/xbmc.cfg</file><type>cfg</type><classifier>xbmc</classifier></artifact>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# The refresh frequency, in milliseconds (optional, defaults to 3600000)
#refresh=

# The UPB modem port. Valid values are e.g. COM1 for Windows and /dev/ttyS0 or
# /dev/ttyUSB0 for Linux (required)
#port=

# UPB Netword ID (required, must be a value between 0 and 255, inclusive)
#network=
8 changes: 8 additions & 0 deletions features/openhab-addons/src/main/feature/feature.xml
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,14 @@
<configfile finalname="${openhab.conf}/services/tinkerforge.cfg" override="false">mvn:${project.groupId}/openhab-addons-external/${project.version}/cfg/tinkerforge</configfile>
</feature>

<feature name="openhab-binding-upb" description="Universal Powerline Bus Binding" version="${project.version}">
<feature>openhab-runtime-base</feature>
<feature>openhab-runtime-compat1x</feature>
<feature>openhab-transport-serial</feature>
<bundle start-level="80">mvn:org.openhab.binding/org.openhab.binding.upb/${project.version}</bundle>
<configfile finalname="${openhab.conf}/services/upb.cfg" override="false">mvn:${project.groupId}/openhab-addons-external/${project.version}/cfg/upb</configfile>
</feature>

<feature name="openhab-binding-weather" description="Weather Binding" version="${project.version}">
<feature>openhab-runtime-base</feature>
<feature>openhab-runtime-compat1x</feature>
Expand Down