Skip to content

Commit

Permalink
0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Hombach authored and Hombach committed Nov 9, 2024
1 parent 3d5249c commit c761b86
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ If you enjoyed this project — or just feeling generous, consider buying me a b
### 0.4.0 (2024-11-xx) WiP

- (hombach) implement managed charging time (#29)
- (hombach) fixed error in 'time to finish charge'
- (hombach) fixed errors in 'time to finish charge'
- (hombach) changed min update interval to 10 sec

### 0.3.0 (2024-11-08)

Expand Down
2 changes: 1 addition & 1 deletion admin/jsonConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"zh-cn": "更新间隔(秒)"
},
"hidden": "!data.TeslaFiAPIToken",
"min": 30,
"min": 10,
"max": 3600,
"step": 1,
"default": 60,
Expand Down
4 changes: 3 additions & 1 deletion build/lib/teslafiAPICaller.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/lib/teslafiAPICaller.js.map

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion src/lib/teslafiAPICaller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,9 @@ export class TeslaFiAPICaller extends ProjectUtils {
stVD.scheduled_charging_start_time.desc,
);
} else {
this.checkAndSetValue(`battery-state.${stVD.scheduled_charging_start_time.key}`, `---`, stVD.scheduled_charging_start_time.desc);
if (stVD.carState.value !== "Sleeping") {
this.checkAndSetValue(`battery-state.${stVD.scheduled_charging_start_time.key}`, `---`, stVD.scheduled_charging_start_time.desc);
}
}
//#endregion

Expand Down

0 comments on commit c761b86

Please sign in to comment.