Skip to content

Commit

Permalink
2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hombach committed Aug 28, 2022
1 parent ccb2d4f commit 34afb31
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -346,19 +346,19 @@ class KostalPikoBA extends utils.Adapter {
this.setStateAsync('State', { val: result[13].value, ack: true });
switch (result[13].value) {
case 0:
this.setStateAsync('StateAsString', { val: 'Aus', ack: true });
this.setStateAsync('StateAsString', { val: 'OFF', ack: true });
break;
case 1:
this.setStateAsync('StateAsString', { val: 'Leerlauf', ack: true });
this.setStateAsync('StateAsString', { val: 'Idling', ack: true });
break;
case 2:
this.setStateAsync('StateAsString', { val: 'Anfahren, DC Spannung noch zu klein', ack: true });
this.setStateAsync('StateAsString', { val: 'Start up, DC voltage still too low for feed-in', ack: true });
break;
case 3:
this.setStateAsync('StateAsString', { val: 'Einspeisen(MPP)', ack: true });
this.setStateAsync('StateAsString', { val: 'Feeding (MPP)', ack: true });
break;
case 4:
this.setStateAsync('StateAsString', { val: 'Einspeisen(abgeregelt)', ack: true });
this.setStateAsync('StateAsString', { val: 'Feeding (limited)', ack: true });
break;
default:
this.setStateAsync('StateAsString', { val: 'Undefined', ack: true });
Expand Down

0 comments on commit 34afb31

Please sign in to comment.