[pilight] Add option to disable background discovery for a given pilight bridge thing (#15986)
* [pilight] Add option to disable background discovery for a given pilight bridge thing Previously the background discovery updated periodically all channels of all devices regardless whether they have sent an update or not. This behavior makes it impossible to decide whether a device is still alive by observing channel updates sent by a device itself. Especially for devices running on battery, it is important to know, if it still sends updates. Create ExecutorService during initialize --------- Signed-off-by: Stefan Roellin <stefan@roellin-baumann.ch>
This commit is contained in:
@@ -33,11 +33,12 @@ different pilight `bridge` things.
|
||||
|
||||
The `bridge` requires the following configuration parameters:
|
||||
|
||||
| Parameter Label | Parameter ID | Description | Required |
|
||||
|-----------------|--------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------|
|
||||
| IP Address | ipAddress | Host name or IP address of the pilight daemon | yes |
|
||||
| Port | port | Port number on which the pilight daemon is listening. Default: 5000 | yes |
|
||||
| Delay | delay | Delay (in millisecond) between consecutive commands. Recommended value without band pass filter: 1000. Recommended value with band pass filter: somewhere between 200-500. Default: 500 | no |
|
||||
| Parameter Label | Parameter ID | Description | Required |
|
||||
|----------------------|---------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------|
|
||||
| IP Address | ipAddress | Host name or IP address of the pilight daemon | yes |
|
||||
| Port | port | Port number on which the pilight daemon is listening. Default: 5000 | yes |
|
||||
| Delay | delay | Delay (in millisecond) between consecutive commands. Recommended value without band pass filter: 1000. Recommended value with band pass filter: somewhere between 200-500. Default: 500 | no |
|
||||
| Background Discovery | backgroundDiscovery | Whether pilight devices for this Bridge should automatically be discovered. Default: true | no |
|
||||
|
||||
Important: you must explicitly configure the port in the pilight daemon config or otherwise a random port will be used
|
||||
and the binding will not be able to connect.
|
||||
@@ -87,13 +88,13 @@ things from them.
|
||||
### pilight.things
|
||||
|
||||
```java
|
||||
Bridge pilight:bridge:raspi "Pilight Daemon raspi" [ ipAddress="192.168.1.1", port=5000 ] {
|
||||
Bridge pilight:bridge:raspi "Pilight Daemon raspi" [ ipAddress="192.168.1.1", port=5000, backgroundDiscovery=false ] {
|
||||
Thing switch office "Office" [ name="office" ]
|
||||
Thing dimmer piano "Piano" [ name="piano" ]
|
||||
Thing generic weather "Weather" [ name="weather" ] {
|
||||
Channels:
|
||||
State Number : temperature [ property="temperature"]
|
||||
State Number : humidity [ property="humidity"]
|
||||
Type number : temperature "Temperature" [ property="temperature"]
|
||||
Type number : humidity "Humidity" [ property="humidity"]
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user