Skip to content

Commit 68e4a8f

Browse files
committed
Optimize Quality
1 parent 1f56683 commit 68e4a8f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

main.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1042,11 +1042,12 @@ class OpenAPI {
10421042
this.adapter.log.error(' Adapter won\'t try again to fetch any data.');
10431043
this.adapter.wrongCredentials = true;
10441044
}
1045+
await this.adapter.setQualityForGroup(group, 0x44);
10451046
}
10461047
else {
10471048
this.adapter.log.debug(`Unknown error occurred: ${JSON.stringify(res.data)} (#${this.adapter.errorCount}) Group:${group}`);
1049+
await this.adapter.setQualityForGroup(group, 0x2);
10481050
}
1049-
await this.adapter.setQualityForGroup(group, 0x44);
10501051
}
10511052
}
10521053

@@ -1662,7 +1663,7 @@ class AlphaEss extends utils.Adapter {
16621663
if (newState) {
16631664
if (newState.q != q && newState.ack) {
16641665
newState.q = q;
1665-
this.log.silly(`Set state ${groupInfo.Group}.${groupStates[i].id} to val: ${newState.val}; q: ${newState.q}; ack: ${newState.ack}`);
1666+
this.log.debug(`Set state ${groupInfo.Group}.${groupStates[i].id} to val: ${newState.val}; q: ${newState.q}; ack: ${newState.ack}`);
16661667
await this.setStateAsync(`${groupInfo.Group}.${groupStates[i].id}`, newState, true);
16671668
}
16681669
else {

0 commit comments

Comments
 (0)