Fix alignment/indentation (#13994)
Fixes #13882 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
This commit is contained in:
parent
d03d3e4342
commit
9b891302c8
|
@ -95,8 +95,8 @@ demo.things:
|
||||||
|
|
||||||
```java
|
```java
|
||||||
Bridge flicbutton:flicd-bridge:local-flicd {
|
Bridge flicbutton:flicd-bridge:local-flicd {
|
||||||
Thing button flic_livingroom "Yellow Button Living Room" [address = "60:13:B3:02:18:BD"]
|
Thing button flic_livingroom "Yellow Button Living Room" [address = "60:13:B3:02:18:BD"]
|
||||||
Thing button flic_kitchen "Black Button Kitchen" [address = "B5:7E:59:78:86:9F"]
|
Thing button flic_kitchen "Black Button Kitchen" [address = "B5:7E:59:78:86:9F"]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -23,11 +23,11 @@ The discovery process is able to automatically discover all devices associated w
|
||||||
|
|
||||||
Bridge has the following configuration parameters:
|
Bridge has the following configuration parameters:
|
||||||
|
|
||||||
| Parameter | Description | Required
|
| Parameter | Description | Required
|
||||||
|------------------|-------------------------------------------------------|----------
|
|------------------|--------------------------------------------------------|----------
|
||||||
| apikey | API Key from <https://api.foobot.io/apidoc/index.html> | Mandatory
|
| apikey | API Key from <https://api.foobot.io/apidoc/index.html> | Mandatory
|
||||||
| username | The e-mail address used to log into the Foobot App | Mandatory
|
| username | The e-mail address used to log into the Foobot App | Mandatory
|
||||||
| refreshInterval | Refresh interval in minutes, minimal 5 minutes | Optional, the default value is 8 minutes.
|
| refreshInterval | Refresh interval in minutes, minimal 5 minutes | Optional, the default value is 8 minutes.
|
||||||
|
|
||||||
The minimal refresh rate is 5 minutes because the device only sends data every 5 minutes.
|
The minimal refresh rate is 5 minutes because the device only sends data every 5 minutes.
|
||||||
The default is 8 minutes. This will get you through the day with the default rate limit of 200 calls per day.
|
The default is 8 minutes. This will get you through the day with the default rate limit of 200 calls per day.
|
||||||
|
|
|
@ -110,14 +110,14 @@ demo.sitemap:
|
||||||
```perl
|
```perl
|
||||||
sitemap demo label="Main Menu"
|
sitemap demo label="Main Menu"
|
||||||
{
|
{
|
||||||
Frame {
|
Frame {
|
||||||
Switch item=RadioPower
|
Switch item=RadioPower
|
||||||
Slider visibility=[RadioPower==ON] item=RadioVolume
|
Slider visibility=[RadioPower==ON] item=RadioVolume
|
||||||
Switch visibility=[RadioPower==ON] item=RadioMute
|
Switch visibility=[RadioPower==ON] item=RadioMute
|
||||||
Selection visibility=[RadioPower==ON] item=RadioPreset mappings=[0="Favourit 1", 1="Favourit 2", 2="Favourit 3", 3="Favourit 4"]
|
Selection visibility=[RadioPower==ON] item=RadioPreset mappings=[0="Favourit 1", 1="Favourit 2", 2="Favourit 3", 3="Favourit 4"]
|
||||||
Selection visibility=[RadioPower==ON] item=RadioMode mappings=[0="Internet Radio", 1="Musik Player", 2="DAB", 3="FM", 4="AUX"]
|
Selection visibility=[RadioPower==ON] item=RadioMode mappings=[0="Internet Radio", 1="Musik Player", 2="DAB", 3="FM", 4="AUX"]
|
||||||
Text visibility=[RadioPower==ON] item=RadioInfo1
|
Text visibility=[RadioPower==ON] item=RadioInfo1
|
||||||
Text visibility=[RadioPower==ON] item=RadioInfo2
|
Text visibility=[RadioPower==ON] item=RadioInfo2
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
|
@ -29,13 +29,13 @@ The binding will automatically discover the Omnilogic pool things from the cloud
|
||||||
|
|
||||||
Hayward OmniLogic Connection Parameters:
|
Hayward OmniLogic Connection Parameters:
|
||||||
|
|
||||||
| Property | Default | Required | Description |
|
| Property | Default | Required | Description |
|
||||||
|----------------------|----------------------------------------------------------------|----------|----------------------------------------------|
|
|----------------------|------------------------------------------------------------------|----------|----------------------------------------------|
|
||||||
| Host Name | <https://app1.haywardomnilogic.com/HAAPI/HomeAutomation/API.ash> | Yes | Host name of the Hayward API server |
|
| Host Name | <https://app1.haywardomnilogic.com/HAAPI/HomeAutomation/API.ash> | Yes | Host name of the Hayward API server |
|
||||||
| User Name | None | Yes | Your Hayward User Name (not email address) |
|
| User Name | None | Yes | Your Hayward User Name (not email address) |
|
||||||
| Password | None | Yes | Your Hayward User Password |
|
| Password | None | Yes | Your Hayward User Password |
|
||||||
| Telemetry Poll Delay | 12 | Yes | Telemetry Poll Delay (10-60 seconds) |
|
| Telemetry Poll Delay | 12 | Yes | Telemetry Poll Delay (10-60 seconds) |
|
||||||
| Alarm Poll Delay | 60 | Yes | Alarm Poll Delay (0-120 seconds, 0 disabled) |
|
| Alarm Poll Delay | 60 | Yes | Alarm Poll Delay (0-120 seconds, 0 disabled) |
|
||||||
|
|
||||||
## Channels
|
## Channels
|
||||||
|
|
||||||
|
|
|
@ -130,16 +130,16 @@ Depending on whether the shade is a top-down, bottom-up, left-right, right-left,
|
||||||
|-----------------------------|-------------------|-----------------------|------------------|----------------|-------------------|----------------------|
|
|-----------------------------|-------------------|-----------------------|------------------|----------------|-------------------|----------------------|
|
||||||
| Single action<br>bottom-up | `position` | ▲ | Up | `OPEN` | 0% | ▲ |
|
| Single action<br>bottom-up | `position` | ▲ | Up | `OPEN` | 0% | ▲ |
|
||||||
| | | ▼ | Down | `CLOSED` | 100% | ▼ |
|
| | | ▼ | Down | `CLOSED` | 100% | ▼ |
|
||||||
| Single action<br>top-down | `position` | ▲ | Up | **`CLOSED`** | 0% | ▲ |
|
| Single action<br>top-down | `position` | ▲ | Up | **`CLOSED`** | 0% | ▲ |
|
||||||
| | | ▼ | Down | **`OPEN`** | 100% | ▼ |
|
| | | ▼ | Down | **`OPEN`** | 100% | ▼ |
|
||||||
| Single action<br>right-left | `position` | ▲ | _**Left**_ | `OPEN` | 0% | ▲ |
|
| Single action<br>right-left | `position` | ▲ | _**Left**_ | `OPEN` | 0% | ▲ |
|
||||||
| | | ▼ | _**Right**_ | `CLOSED` | 100% | ▼ |
|
| | | ▼ | _**Right**_ | `CLOSED` | 100% | ▼ |
|
||||||
| Single action<br>left-right | `position` | ▲ | _**Right**_ | `OPEN` | 0% | ▲ |
|
| Single action<br>left-right | `position` | ▲ | _**Right**_ | `OPEN` | 0% | ▲ |
|
||||||
| | | ▼ | _**Left**_ | `CLOSED` | 100% | ▼ |
|
| | | ▼ | _**Left**_ | `CLOSED` | 100% | ▼ |
|
||||||
| Dual action<br>(lower rail) | `position` | ▲ | Up | `OPEN` | 0% | ▲ |
|
| Dual action<br>(lower rail) | `position` | ▲ | Up | `OPEN` | 0% | ▲ |
|
||||||
| | | ▼ | Down | `CLOSED` | 100% | ▼ |
|
| | | ▼ | Down | `CLOSED` | 100% | ▼ |
|
||||||
| Dual action<br>(upper rail) | _**`secondary`**_ | ▲ | Up | **`CLOSED`** | 0%<sup>1)</sup> | ![dual_action arrow_right](doc/right.png) |
|
| Dual action<br>(upper rail) | _**`secondary`**_ | ▲ | Up | **`CLOSED`** | 0%<sup>1)</sup> | ![dual_action arrow_right](doc/right.png) |
|
||||||
| | | ▼ | Down | **`OPEN`** | 100%<sup>1)</sup> | ![dual_action arrow_left](doc/left.png) |
|
| | | ▼ | Down | **`OPEN`** | 100%<sup>1)</sup> | ![dual_action arrow_left](doc/left.png) |
|
||||||
| Blackout panel ('DuoLite') | _**`secondary`**_ | ▲ | Up | `OPEN` | 0% | ▲ |
|
| Blackout panel ('DuoLite') | _**`secondary`**_ | ▲ | Up | `OPEN` | 0% | ▲ |
|
||||||
| | | ▼ | Down | `CLOSED` | 100% | ▼ |
|
| | | ▼ | Down | `CLOSED` | 100% | ▼ |
|
||||||
|
|
||||||
|
|
|
@ -103,9 +103,9 @@ To ensure that the players and groups are attached to the bridge the definition
|
||||||
|
|
||||||
```java
|
```java
|
||||||
Bridge heos:bridge:main "Bridge" [ipAddress="192.168.0.1", username="userName", password="123456"] {
|
Bridge heos:bridge:main "Bridge" [ipAddress="192.168.0.1", username="userName", password="123456"] {
|
||||||
player Kitchen "Kitchen"[pid="434523813"]
|
player Kitchen "Kitchen"[pid="434523813"]
|
||||||
player LivingRoom "Living Room"[pid="918797451"]
|
player LivingRoom "Living Room"[pid="918797451"]
|
||||||
group 813793755 "Ground Level"[members="434523813;918797451"]
|
group 813793755 "Ground Level"[members="434523813;918797451"]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -269,16 +269,16 @@ String LivingRoom_Playlists {channel="heos:player:main:LivingRoom:Playlists"}
|
||||||
### demo.sitemap
|
### demo.sitemap
|
||||||
|
|
||||||
```perl
|
```perl
|
||||||
Frame label="LivingRoom" {
|
Frame label="LivingRoom" {
|
||||||
Default item=LivingRoom_Control
|
Default item=LivingRoom_Control
|
||||||
Default item=LivingRoom_Mute
|
Default item=LivingRoom_Mute
|
||||||
Default item=LivingRoom_Volume
|
Default item=LivingRoom_Volume
|
||||||
Default item=LivingRoom_Title
|
Default item=LivingRoom_Title
|
||||||
Default item=LivingRoom_Interpret
|
Default item=LivingRoom_Interpret
|
||||||
Default item=LivingRoom_Album
|
Default item=LivingRoom_Album
|
||||||
Selection item=LivingRoom_Favorites label="Favorite" icon="music"
|
Selection item=LivingRoom_Favorites label="Favorite" icon="music"
|
||||||
Selection item=LivingRoom_Playlists label="Playlist" icon="music"
|
Selection item=LivingRoom_Playlists label="Playlist" icon="music"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
## Detailed Explanation
|
## Detailed Explanation
|
||||||
|
@ -318,17 +318,18 @@ Rule for kitchen:
|
||||||
|
|
||||||
```java
|
```java
|
||||||
rule "Play AuxIn from Living Room"
|
rule "Play AuxIn from Living Room"
|
||||||
when
|
when
|
||||||
Item HeosKitchen_InputSelect received command
|
Item HeosKitchen_InputSelect received command
|
||||||
then
|
then
|
||||||
if (receivedCommand.toString == "aux_in_1") {
|
if (receivedCommand.toString == "aux_in_1") {
|
||||||
sendCommand(HeosKitchen_Input, "aux_in_1")
|
sendCommand(HeosKitchen_Input, "aux_in_1")
|
||||||
|
}
|
||||||
} if (receivedCommand.toString == "LivingRoom") {
|
if (receivedCommand.toString == "LivingRoom") {
|
||||||
sendCommand(HeosBridge_Play_Living, ON)
|
sendCommand(HeosBridge_Play_Living, ON)
|
||||||
sendCommand(HeosKitchen_Input, "aux_in_1")
|
sendCommand(HeosKitchen_Input, "aux_in_1")
|
||||||
sendCommand(HeosBridge_Play_Living, OFF) //Switch player channel off again to be sure that it is OFF
|
sendCommand(HeosBridge_Play_Living, OFF) //Switch player channel off again to be sure that it is OFF
|
||||||
}
|
}
|
||||||
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
Sitemap:
|
Sitemap:
|
||||||
|
@ -373,18 +374,18 @@ Sitemap:
|
||||||
```perl
|
```perl
|
||||||
Frame label="Heos Group" visibility=[HeosGroup_Status==ONLINE] {
|
Frame label="Heos Group" visibility=[HeosGroup_Status==ONLINE] {
|
||||||
|
|
||||||
Default item=HeosGroup1_Player
|
Default item=HeosGroup1_Player
|
||||||
Default item=HeosGroup1_Volume
|
Default item=HeosGroup1_Volume
|
||||||
Default item=HeosGroup1_Mute
|
Default item=HeosGroup1_Mute
|
||||||
Default item=HeosGroup1_Favorites
|
Default item=HeosGroup1_Favorites
|
||||||
Default item=HeosGroup1_Playlist
|
Default item=HeosGroup1_Playlist
|
||||||
|
|
||||||
Text item=HeosGroup1_Song {
|
Text item=HeosGroup1_Song {
|
||||||
Default item=HeosGroup1_Song
|
Default item=HeosGroup1_Song
|
||||||
Default item=HeosGroup1_Artist
|
Default item=HeosGroup1_Artist
|
||||||
Default item=HeosGroup1_Album
|
Default item=HeosGroup1_Album
|
||||||
Image item=HeosGroup1_Cover url=""
|
Image item=HeosGroup1_Cover url=""
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
|
@ -179,10 +179,10 @@ http://www.domain.org/home/lights/23871/?status=OFF&date=2020-07-06
|
||||||
|
|
||||||
```java
|
```java
|
||||||
Thing http:url:foo "Foo" [
|
Thing http:url:foo "Foo" [
|
||||||
baseURL="https://example.com/api/v1/metadata-api/web/metadata",
|
baseURL="https://example.com/api/v1/metadata-api/web/metadata",
|
||||||
headers="key1=value1", "key2=value2", "key3=value3",
|
headers="key1=value1", "key2=value2", "key3=value3",
|
||||||
refresh=15] {
|
refresh=15] {
|
||||||
Channels:
|
Channels:
|
||||||
Type string : text "Text" [ stateTransformation="JSONPATH:$.metadata.data" ]
|
Type string : text "Text" [ stateTransformation="JSONPATH:$.metadata.data" ]
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
|
@ -87,11 +87,11 @@ Also, you can target a specific series episode by season and episode numbers pre
|
||||||
|
|
||||||
```java
|
```java
|
||||||
Bridge jellyfin:server:exampleServerId "Jellyfin Server" [
|
Bridge jellyfin:server:exampleServerId "Jellyfin Server" [
|
||||||
clientActiveWithInSeconds=0,
|
clientActiveWithInSeconds=0,
|
||||||
hostname="192.168.1.177",
|
hostname="192.168.1.177",
|
||||||
port=8096,
|
port=8096,
|
||||||
refreshSeconds=30,
|
refreshSeconds=30,
|
||||||
ssl="false"
|
ssl="false"
|
||||||
token=XXXXX # Optional, read bellow
|
token=XXXXX # Optional, read bellow
|
||||||
userId=XXXXX # Optional, read bellow
|
userId=XXXXX # Optional, read bellow
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue