This performs a selective merge of the current docs into the "stable" branch that will hold the default docs for the 3.0.2 release (until they're replaced with the current ones once 3.1 is released). * Backport bindings docs that looked applicable to 3.0 * Revert UI components changes not in stable Signed-off-by: Yannick Schaus <github@schaus.net> Co-authored-by: openHAB Build Server <infrastructure@openhab.org> Co-authored-by: stefan-hoehn <stefan.hoehn@aoe.com> Co-authored-by: jimtng <2554958+jimtng@users.noreply.github.com> Co-authored-by: Matt <lawrence.matt@gmail.com> Co-authored-by: Jerome Luckenbach <github@luckenba.ch> Co-authored-by: Kai Kreuzer <kai@openhab.org> Co-authored-by: Felix Schneider <45742226+Trysupe@users.noreply.github.com> Co-authored-by: Hilbrand Bouwkamp <hilbrand@h72.nl> Co-authored-by: J-N-K <J-N-K@users.noreply.github.com> Co-authored-by: Eiko Wagenknecht <eiko.wagenknecht@web.de> Co-authored-by: Alexander Behring <github.com@alexander-behring.eu> Co-authored-by: Matthew Skinner <matt@pcmus.com> Co-authored-by: Christoph Weitkamp <github@christophweitkamp.de> Co-authored-by: Patrick Fink <mail@pfink.de> Co-authored-by: Gifford47 <49484063+Gifford47@users.noreply.github.com> Co-authored-by: Seganku <seganku@users.noreply.github.com> Co-authored-by: digitlength <62958838+digitlength@users.noreply.github.com> Co-authored-by: Ross Kennedy <rossko@culzean.clara.co.uk> Co-authored-by: Fabian Wolter <github@fabian-wolter.de> Co-authored-by: Arjan Mels <43108771+arjanmels@users.noreply.github.com> Co-authored-by: Jonathan Gilbert <github.10.jgilbert@xoxy.net> Co-authored-by: Richard Koshak <rkoshak@users.noreply.github.com> Co-authored-by: Wolfgang Schueschen <76775650+WolfgangSn@users.noreply.github.com> Co-authored-by: Gareth Western <gareth@garethwestern.com> Co-authored-by: Bob A <bobadair@users.noreply.github.com> Co-authored-by: Sami Salonen <ssalonen@gmail.com> Co-authored-by: Peter Schraffl <p.schraffl@gmx.at> Co-authored-by: Georgios Moutsos <50378548+jossuar@users.noreply.github.com> Co-authored-by: Markus Storm <markus.storm@gmx.net> Co-authored-by: JensHoRi <47488279+JensHoRi@users.noreply.github.com> Co-authored-by: Felix <24674809+fex01@users.noreply.github.com> Co-authored-by: Koen Schockaert <54985218+QbusKoen@users.noreply.github.com> Co-authored-by: Ethan Dye <mrtops03@gmail.com> Co-authored-by: Senne Croughs <38940112+sencro@users.noreply.github.com> Co-authored-by: Ben Clark <ben@benjyc.uk> Co-authored-by: Sam Spencer <43712250+samsp99@users.noreply.github.com> Co-authored-by: chingon007 <76529461+chingon007@users.noreply.github.com> Co-authored-by: Wouter Born <github@maindrain.net> Co-authored-by: mueller-ma <mueller-ma@users.noreply.github.com> Co-authored-by: aurelio1 <aurelio@caliaro.net> Co-authored-by: Bernd Weymann <bernd.weymann@gmail.com> Co-authored-by: Martin Hogg <hoggm2@hotmail.co.uk> |
||
---|---|---|
.. | ||
readme.md |
readme.md
id | label | title | type | description | since | logo | install |
---|---|---|---|---|---|---|---|
upb | UPB | UPB - Bindings | binding | Universal Powerline Bus (UPB) is a protocol for communication over household electrical wiring. | 3x | images/addons/upb.png | auto |
{% include base.html %}
UPB Binding
Universal Powerline Bus (UPB) is a protocol for communication over household electrical wiring.
Supported Things
The binding has not yet been tested with a variety of devices, so specific device support is limited. Instead the binding provides some generic devices, and allows adding channels that match the type of device.
serial-pim
- Serial PIMgeneric
- Generic UPB devicevirtual
- "Virtual" device that allows scene selection
Specific devices that are supported:
leviton-38a00-1
- 6-button scene switch
Binding Configuration
The following binding configuration parameters are supported:
Parameter | Description | Config | Default |
---|---|---|---|
networkId | Default UPB network ID (0-255) | Optional | - |
Thing Configuration
Serial PIM
You need a Powerline Interface Module (PIM) for the binding to work. This is a piece of equipment that connects a computer to the powerline. There are a few different PIM interfaces but this binding only supports serial PIMs.
The serial-pim
takes the following configuration parameters:
Parameter | Description | Config | Default |
---|---|---|---|
port | Serial port where the PIM is connected | Required | - |
Generic device
The generic
thing type supports most UPB devices such as dimmers, light switches,
and appliance modules. It has the following configuration parameters:
Parameter | Description | Config | Default |
---|---|---|---|
networkId | ID of the UPB network (0-255) | Optional | binding config |
unitId | Unit ID (unique address) of the device (1-250) | Required | - |
Virtual device
The virtual
pseudo-device does not correspond to any real device on the UPB network.
It is nevertheless useful for reading and setting the current scene.
The device has two channels, linkActivated
and linkDeactivated
.
If a device on the UPB network activates or de-activates a scene by broadcasting a link
activation command, the link ID (or scene number) can be read from
the corresponding channel.
Similarly, updating the channel with a link ID will send out the
corresponding link command on the UPB network.
Channels
These channels are available for generic devices:
Channel Type | Item type | Description |
---|---|---|
dimmer | Dimmer | Level/brightness, or on/off for switches |
scene-selection | - | Trigger channel for scene selection |
The virtual device supports the link
channel type:
Channel Type | Item type | Description |
---|---|---|
link | Number | A scene to activate or deactivate |
Full Example
Here is a sample `.things configuration file:
Bridge upb:serial-pim:pim "UPB PIM" @ "Basement" [port="/dev/ttyUSB0"] {
Thing generic light-switch "Living Room Light" [networkId=1, unitId=1]
Thing virtual upb-scene "UPB Scene Control" [networkId=1, unitId=250]
Thing leviton-38a00-1 scene-switch "Scene Switch" @ "Bedroom" [networkId=1, unitId=2] {
Channels:
Type scene-selection : btnOn [linkId=1]
Type scene-selection : btnOff [linkId=2]
Type scene-selection : btnA [linkId=3]
Type scene-selection : btnB [linkId=4]
Type scene-selection : btnC [linkId=5]
Type scene-selection : btnD [linkId=6]
}
}
And the items:
// Configure as either Switch or Dimmer
Dimmer LivingRoomLight "UPB Light Switch" {channel="upb:generic:pim:light-switch:dimmer"}
// A scene selector (does not correspond to a physical device)
Number UPB_Active_Scene "Active UPB Scene" {channel="upb:virtual:pim:upb-scene:linkActivated"}