Skip to content

Commit

Permalink
0.15.3
Browse files Browse the repository at this point in the history
  • Loading branch information
hombach committed Jun 29, 2023
1 parent baa709c commit 91c96e5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,13 @@ class go_e_charger extends utils.Adapter {
if (state) { // The state was changed
this.log.info(`state ${id} changed: ${state.val} (ack = ${state.ack})`);
MinHomeBatVal = await this.asyncGetStateVal('Settings.Setpoint_HomeBatSoC'); // Get desired battery SoC
this.setStateAsync('Settings.Setpoint_HomeBatSoC', MinHomeBatVal, true);
//this.setStateAsync('Settings.Setpoint_HomeBatSoC', MinHomeBatVal, true);
ChargeNOW = await this.asyncGetStateVal('Settings.ChargeNOW'); // Get charging override trigger
this.setStateAsync('Settings.ChargeNOW', ChargeNOW, true);
//this.setStateAsync('Settings.ChargeNOW', ChargeNOW, true);
ChargeManager = await this.asyncGetStateVal('Settings.ChargeManager'); // Get enable for charge manager
this.setStateAsync('Settings.ChargeManager', ChargeManager, true);
//this.setStateAsync('Settings.ChargeManager', ChargeManager, true);
ChargeCurrent = await this.asyncGetStateVal('Settings.ChargeCurrent'); // Get current for charging override
this.setStateAsync('Settings.ChargeCurrent', ChargeCurrent, true);
//this.setStateAsync('Settings.ChargeCurrent', ChargeCurrent, true);
} else { // The state was deleted
this.log.warn(`state ${id} deleted`);
}
Expand Down

0 comments on commit 91c96e5

Please sign in to comment.