Skip to content

Commit

Permalink
Minor updates
Browse files Browse the repository at this point in the history
Signed-off-by: Arne Seime <[email protected]>
  • Loading branch information
seime committed May 19, 2019
1 parent 05b966f commit f66ede7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,10 @@ public class SensiboAccountConfiguration {
* API key from https://home.sensibo.com/me/api
*/
public String apiKey;
public int refreshInterval = 30;
public int refreshInterval = 120;

@Override
public String toString() {
return "SensiboAccountConfiguration [apiKey=" + apiKey + ", refreshInterval=" + refreshInterval + "]";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ public void handleCommand(final ChannelUID channelUID, final Command command) {
@Override
public void initialize() {
config = getConfigAs(SensiboAccountConfiguration.class);
logger.debug("Initializing Sensibo Account bridge using config {}", config);
scheduler.execute(() -> {
try {
model = refreshModel();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<parameter name="refreshInterval" type="integer" required="false" min="30" unit="s">
<label>Refresh interval</label>
<description>Specifies the refresh time in seconds for polling temperature updates from Sensibo service</description>
<description>How often to fetch updates from Sensibo service (polling interval)</description>
<default>120</default>
</parameter>
</config-description>
Expand Down

0 comments on commit f66ede7

Please sign in to comment.