mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
[melcloud] Adjust to new API limits (#16422)
* [melcloud] Add minimum polling value and change default Signed-off-by: Wietse van Buitenen <thewiep@gmail.com> Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
This commit is contained in:
parent
89e926618b
commit
087dedb4c6
@ -72,7 +72,7 @@ A.C. device and Heatpump device configuration:
|
||||
|-----------------|-----------|---------------------------------------------------------------------------------------|
|
||||
| deviceID | x | MELCloud device ID. |
|
||||
| buildingID | | MELCloud building ID. If not defined, binding tries to find matching id by device ID. |
|
||||
| pollingInterval | | Refresh time interval in seconds for updates from MELCloud. Defaults to 60 seconds. |
|
||||
| pollingInterval | | Refresh time interval in seconds for updates from MELCloud. Minimum is 180, defaults to 360 seconds. Mitsubishi Electric introduced limits on their API so changing default value may cause excessive traffic and lock you out for several hours. |
|
||||
|
||||
## Channels
|
||||
|
||||
@ -112,8 +112,8 @@ Heatpump device channels
|
||||
|
||||
```java
|
||||
Bridge melcloud:melcloudaccount:myaccount "My MELCloud account" [ username="user.name@example.com", password="xxxxxx", language="0" ] {
|
||||
Thing acdevice livingroom "Livingroom A.C. device" [ deviceID=123456, pollingInterval=60 ]
|
||||
Thing heatpumpdevice attic "Attic Heatpump device" [ deviceID=789012, pollingInterval=60 ]
|
||||
Thing acdevice livingroom "Livingroom A.C. device" [ deviceID=123456, pollingInterval=360 ]
|
||||
Thing heatpumpdevice attic "Attic Heatpump device" [ deviceID=789012, pollingInterval=360 ]
|
||||
}
|
||||
```
|
||||
|
||||
|
@ -207,7 +207,7 @@ public class MelCloudAccountHandler extends BaseBridgeHandler {
|
||||
}
|
||||
}
|
||||
};
|
||||
connectionCheckTask = scheduler.scheduleWithFixedDelay(runnable, 0, 60, TimeUnit.SECONDS);
|
||||
connectionCheckTask = scheduler.scheduleWithFixedDelay(runnable, 0, 300, TimeUnit.SECONDS);
|
||||
} else {
|
||||
logger.debug("Connection check task already running");
|
||||
}
|
||||
|
@ -36,10 +36,10 @@
|
||||
<label>Building ID</label>
|
||||
<description>Building ID of the A.C. device.</description>
|
||||
</parameter>
|
||||
<parameter name="pollingInterval" type="integer" required="true">
|
||||
<parameter name="pollingInterval" type="integer" min="180" required="true">
|
||||
<label>Polling Interval</label>
|
||||
<description>Time interval how often poll data from MELCloud</description>
|
||||
<default>60</default>
|
||||
<default>360</default>
|
||||
</parameter>
|
||||
</config-description>
|
||||
</thing-type>
|
||||
|
@ -34,10 +34,10 @@
|
||||
<label>Building ID</label>
|
||||
<description>Building ID of the Heatpump device.</description>
|
||||
</parameter>
|
||||
<parameter name="pollingInterval" type="integer" required="true">
|
||||
<parameter name="pollingInterval" type="integer" min="180" required="true">
|
||||
<label>Polling Interval</label>
|
||||
<description>Time interval how often poll data from MELCloud</description>
|
||||
<default>60</default>
|
||||
<default>360</default>
|
||||
</parameter>
|
||||
</config-description>
|
||||
</thing-type>
|
||||
|
Loading…
Reference in New Issue
Block a user