Skip to content

Commit

Permalink
4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Hombach authored and Hombach committed Dec 1, 2024
1 parent 79eac0d commit 5a635b9
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ If you enjoyed this project — or just feeling generous, consider buying me a b
- (HombachC) BREAKING: dropped support for ioBroker.admin < 7.0.0 because of ioBroker Responsive Design Initiative (#544)
- (HombachC) redesigned admin tab for calculator
- (HombachC) optimize translations, added more tooltips
- (HombachC) WiP - fix repeated calculation of LTF channels (#593)

### 3.5.4 (2024-12-01)

Expand Down
4 changes: 4 additions & 0 deletions build/lib/tibberCalculator.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/tibberCalculator.js.map

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions src/lib/tibberCalculator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -669,11 +669,13 @@ export class TibberCalculator extends ProjectUtils {
format(addDays(channelConfig.chStartTime, channelConfig.chRepeatDays), "yyyy-MM-dd'T'HH:mm:ss.SSSXXX"),
true,
);
channelConfig.chStartTime = addDays(channelConfig.chStartTime, channelConfig.chRepeatDays);
void this.adapter.setState(
`Homes.${channelConfig.chHomeID}.Calculations.${channel}.StopTime`,
format(addDays(channelConfig.chStopTime, channelConfig.chRepeatDays), "yyyy-MM-dd'T'HH:mm:ss.SSSXXX"),
true,
);
channelConfig.chStopTime = addDays(channelConfig.chStopTime, channelConfig.chRepeatDays);
}
} else {
// chActive and inside LTF -> choose desired value
Expand Down Expand Up @@ -727,11 +729,13 @@ export class TibberCalculator extends ProjectUtils {
format(addDays(channelConfig.chStartTime, channelConfig.chRepeatDays), "yyyy-MM-dd'T'HH:mm:ss.SSSXXX"),
true,
);
channelConfig.chStartTime = addDays(channelConfig.chStartTime, channelConfig.chRepeatDays);
void this.adapter.setState(
`Homes.${channelConfig.chHomeID}.Calculations.${channel}.StopTime`,
format(addDays(channelConfig.chStopTime, channelConfig.chRepeatDays), "yyyy-MM-dd'T'HH:mm:ss.SSSXXX"),
true,
);
channelConfig.chStopTime = addDays(channelConfig.chStopTime, channelConfig.chRepeatDays);
}
} else {
// chActive and inside LTF -> choose desired value
Expand Down

0 comments on commit 5a635b9

Please sign in to comment.