Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
boehan committed Mar 26, 2020
1 parent 98f11b8 commit 29528e3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,15 +146,20 @@ public void initialize() {
}
if (comfoAirConnector != null) {
comfoAirConnector.open();
updateStatus(ThingStatus.ONLINE);
if (comfoAirConnector != null && comfoAirConnector.isConnected()) {
updateStatus(ThingStatus.ONLINE);

List<Channel> channels = this.thing.getChannels();
List<Channel> channels = this.thing.getChannels();

poller = scheduler.scheduleWithFixedDelay(() -> {
for (Channel channel : channels) {
updateChannelState(channel);
}
}, 0, (config.refreshInterval > 0) ? config.refreshInterval : DEFAULT_REFRESH_INTERVAL, TimeUnit.SECONDS);
poller = scheduler.scheduleWithFixedDelay(() -> {
for (Channel channel : channels) {
updateChannelState(channel);
}
}, 0, (config.refreshInterval > 0) ? config.refreshInterval : DEFAULT_REFRESH_INTERVAL,
TimeUnit.SECONDS);
} else {
updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.COMMUNICATION_ERROR);
}
} else {
updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.COMMUNICATION_ERROR);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@
</channel-group-type>

<channel-group-type id="menuP1">
<label>Menu P1: Control states</label>
<label>Menu P1: Control States</label>
<channels>
<channel id="menu20Mode" typeId="menu20_mode" />
<channel id="menu21Mode" typeId="menu21_mode" />
Expand All @@ -204,7 +204,7 @@
</channel-group-type>

<channel-group-type id="menuP2">
<label>Menu P2: Delay settings</label>
<label>Menu P2: Delay Settings</label>
<channels>
<channel id="bathroomStartDelay" typeId="bathroom_start_delay" />
<channel id="bathroomEndDelay" typeId="bathroom_end_delay" />
Expand All @@ -218,7 +218,7 @@
</channel-group-type>

<channel-group-type id="menuP9">
<label>Menu P9: Option States</label>
<label>Menu P9: Option Control States</label>
<channels>
<channel id="chimneyState" typeId="chimney_state" />
<channel id="bypassState" typeId="bypass_state" />
Expand Down

0 comments on commit 29528e3

Please sign in to comment.