hoffmation-base 3.2.8 → 3.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -58,13 +58,16 @@ class VictronDevice extends BaseDevice_1.BaseDevice {
58
58
  }
59
59
  else if (hours > 5 &&
60
60
  hours < 12 &&
61
- ((_a = services_1.WeatherService.todayCloudiness) !== null && _a !== void 0 ? _a : 99) < 30 &&
61
+ ((_a = services_1.WeatherService.todayCloudiness) !== null && _a !== void 0 ? _a : 99) < 40 &&
62
62
  services_1.WeatherService.todayMaxTemp > 25) {
63
63
  // During morning hours battery still might be kinda empty but if it gets sunny again, we should go for ac anyways.
64
- return this.batteryLevel > this.settings.minimumMorningSunnyDayAcBatteryLevel;
64
+ return this.batteryLevel < this.settings.minimumMorningSunnyDayAcBatteryLevel;
65
65
  }
66
- else if (hours < 10) {
67
- return this.batteryLevel > this.settings.minimumTransientTimeAcBatteryLevel;
66
+ else if (hours < 8) {
67
+ return this.batteryLevel < this.settings.minimumNightTimeAcBatteryLevel;
68
+ }
69
+ else if (hours < 11) {
70
+ return this.batteryLevel < this.settings.minimumTransientTimeAcBatteryLevel;
68
71
  }
69
72
  return this.batteryLevel < this.settings.minimumDayTimeAcBatteryLevel;
70
73
  }