|
| 1 | +# Sbus Binding |
| 2 | + |
| 3 | +This binding integrates Sbus devices with openHAB, allowing control and monitoring of Sbus-compatible devices over UDP. |
| 4 | +Sbus is a protocol used for home automation devices that communicate over UDP networks. |
| 5 | +The binding supports various device types including RGB/RGBW controllers, temperature sensors, and switch controllers. |
| 6 | + |
| 7 | +## Supported Things |
| 8 | + |
| 9 | +- `udp` - Sbus Bridge for UDP communication |
| 10 | +- `rgbw` - RGB/RGBW Controllers for color and brightness control |
| 11 | +- `temperature` - Temperature Sensors for monitoring environmental conditions |
| 12 | +- `switch` - Switch Controllers for basic on/off and dimming control |
| 13 | + |
| 14 | +## Discovery |
| 15 | + |
| 16 | +Sbus devices communicate via UDP broadcast, but manual configuration is required to set up the devices in openHAB. |
| 17 | +Auto-discovery is not supported at this moment. |
| 18 | + |
| 19 | +## Binding Configuration |
| 20 | + |
| 21 | +The binding itself does not require any special configuration. |
| 22 | + |
| 23 | +## Thing Configuration |
| 24 | + |
| 25 | +### Bridge Configuration |
| 26 | + |
| 27 | +The Sbus Bridge has the following configuration parameters: |
| 28 | + |
| 29 | +| Name | Type | Description | Default | Required | Advanced | |
| 30 | +|---------|---------|------------------------------------------------------|---------|----------|-----------| |
| 31 | +| host | text | IP address of the Sbus device (typically broadcast) | N/A | yes | no | |
| 32 | +| port | integer | UDP port number | 6000 | no | no | |
| 33 | + |
| 34 | +### RGBW Controller Configuration |
| 35 | + |
| 36 | +| Name | Type | Description | Default | Required | Advanced | |
| 37 | +|---------|---------|------------------------------------------------------|---------|----------|-----------| |
| 38 | +| subnetId| integer | Subnet ID the RGBW controller is part of | N/A | yes | no | |
| 39 | +| id | integer | Device ID of the RGBW controller | N/A | yes | no | |
| 40 | +| refresh | integer | Refresh interval in seconds | 30 | no | yes | |
| 41 | + |
| 42 | +### Temperature Sensor Configuration |
| 43 | + |
| 44 | +| Name | Type | Description | Default | Required | Advanced | |
| 45 | +|---------|---------|------------------------------------------------------|---------|----------|-----------| |
| 46 | +| subnetId| integer | Subnet ID the temperature sensor is part of | N/A | yes | no | |
| 47 | +| id | integer | Device ID of the temperature sensor | N/A | yes | no | |
| 48 | +| refresh | integer | Refresh interval in seconds | 30 | no | yes | |
| 49 | + |
| 50 | +### Switch Controller Configuration |
| 51 | + |
| 52 | +| Name | Type | Description | Default | Required | Advanced | |
| 53 | +|---------|---------|------------------------------------------------------|---------|----------|-----------| |
| 54 | +| subnetId| integer | Subnet ID the switch controller is part of | N/A | yes | no | |
| 55 | +| id | integer | Device ID of the switch controller | N/A | yes | no | |
| 56 | +| refresh | integer | Refresh interval in seconds | 30 | no | yes | |
| 57 | + |
| 58 | +## Channels |
| 59 | + |
| 60 | +### RGBW Controller Channels |
| 61 | + |
| 62 | +| Channel | Type | Read/Write | Description | |
| 63 | +|---------|--------|------------|------------------------------------------------------------| |
| 64 | +| color | Color | RW | HSB color picker that controls RGBW components (0-100%) | |
| 65 | +| switch | Switch | RW | On/Off control for the RGBW output with optional timer | |
| 66 | + |
| 67 | +### Temperature Sensor Channels |
| 68 | + |
| 69 | +| Channel | Type | Read/Write | Description | |
| 70 | +|-------------|---------------------|------------|--------------------------------| |
| 71 | +| temperature | Number:Temperature | R | Current temperature reading. Can be configured to use Celsius (default) or Fahrenheit units | |
| 72 | + |
| 73 | +### Switch Controller Channels |
| 74 | + |
| 75 | +| Channel | Type | Read/Write | Description | |
| 76 | +|---------|---------|------------|-----------------------------------------------------------| |
| 77 | +| switch | Switch | RW | Basic ON/OFF state control | |
| 78 | +| dimmer | Dimmer | RW | ON/OFF state with timer transition | |
| 79 | +| paired | Contact | RW | OPEN/CLOSED state for two paired channels (e.g., curtains)| |
| 80 | + |
| 81 | +## Full Example |
| 82 | + |
| 83 | +### Thing Configuration |
| 84 | + |
| 85 | +```java |
| 86 | +Bridge sbus:udp:mybridge [ host="192.168.1.255", port=5000 ] { |
| 87 | + Thing rgbw colorctrl [ id=72, refresh=30 ] { |
| 88 | + Channels: |
| 89 | + Type color-channel : color [ channelNumber=1 ] // HSB color picker, RGBW values stored at channel 1 |
| 90 | + Type switch-channel : power [ channelNumber=1 ] // On/Off control for the RGBW output For complex scenes, one Sbus color controller can keep up to 40 color states. The switch channelNumber has to fall into this range. |
| 91 | + } |
| 92 | + |
| 93 | + Thing temperature temp1 [ id=62, refresh=30 ] { |
| 94 | + Channels: |
| 95 | + Type temperature-channel : temperature [ channelNumber=1 ] |
| 96 | + } |
| 97 | + |
| 98 | + Thing switch switch1 [ id=75, refresh=30 ] { |
| 99 | + Channels: |
| 100 | + Type switch-channel : first_switch [ channelNumber=1 ] |
| 101 | + Type dimmer-channel : second_switch [ channelNumber=2 ] |
| 102 | + Type paired-channel : third_switch [ channelNumber=3 ] |
| 103 | + } |
| 104 | +} |
| 105 | +``` |
| 106 | + |
| 107 | +### Item Configuration |
| 108 | + |
| 109 | +```java |
| 110 | +// Temperature Sensor |
| 111 | +Number:Temperature Temp_Sensor "Temperature [%.1f °C]" { channel="sbus:temperature:mybridge:temp1:temperature" } |
| 112 | + |
| 113 | +// Basic Switch |
| 114 | +Switch Light_Switch "Switch" { channel="sbus:switch:mybridge:switch1:switch" } |
| 115 | + |
| 116 | +// Paired Channel (e.g., for curtains) |
| 117 | +Contact Curtain_Switch "Curtain [%s]" { channel="sbus:switch:mybridge:switch1:third_switch" } |
| 118 | + |
| 119 | +// RGBW Controller with Power Control |
| 120 | +Group gLight "RGBW Light" <light> ["Lighting"] |
| 121 | +Color rgbwColor "Color" <colorwheel> (gLight) ["Control", "Light"] { channel="sbus:rgbw:mybridge:colorctrl:color" } |
| 122 | +Switch rgbwPower "Power" <switch> (gLight) ["Switch", "Light"] { channel="sbus:rgbw:mybridge:colorctrl:power" } |
| 123 | +``` |
| 124 | + |
| 125 | +### Sitemap Configuration |
| 126 | + |
| 127 | +```perl |
| 128 | +sitemap sbus label="Sbus Demo" |
| 129 | +{ |
| 130 | + Frame label="Sbus Controls" { |
| 131 | + Colorpicker item=Light_RGB |
| 132 | + Text item=Temp_Sensor |
| 133 | + Switch item=Light_Switch |
| 134 | + Text item=Curtain_Switch |
| 135 | + } |
| 136 | +} |
0 commit comments