@@ -96,6 +96,7 @@ def _start(self) -> None:
96
96
f"--> Waiting until { time_to_sleep_to } ..."
97
97
)
98
98
pause .until (time_to_sleep_to )
99
+ self .write_newlines_to_log_file ()
99
100
self .log .info ("Waking up since the the price minimum has to re-checked" )
100
101
next_price_minimum = self .tibber_api_handler .get_next_price_minimum (True )
101
102
@@ -188,7 +189,7 @@ def _do_iteration(self, current_energy_rate: EnergyRate) -> EnergyRate:
188
189
if minimum_of_soc_until_next_price_minimum > target_min_soc :
189
190
self .log .info (
190
191
"The expected minimum state of charge until the next price minimum without additional charging"
191
- "is higher than the target minimum state of charge. --> There is no need to charge"
192
+ "is higher than the target minimum state of charge --> There is no need to charge"
192
193
)
193
194
self .iteration_cache = {}
194
195
return next_price_minimum
@@ -307,7 +308,8 @@ def _charge_inverter(self, target_state_of_charge: StateOfCharge, maximum_chargi
307
308
308
309
if current_state_of_charge >= target_state_of_charge :
309
310
self .log .info (
310
- f"Charging finished ({ current_state_of_charge } ) --> Setting the inverter back to normal mode"
311
+ f"Charging finished, the battery is at { current_state_of_charge } "
312
+ "--> Setting the inverter back to normal mode"
311
313
)
312
314
self .inverter .set_operation_mode (OperationMode .GENERAL )
313
315
break
@@ -321,8 +323,8 @@ def _charge_inverter(self, target_state_of_charge: StateOfCharge, maximum_chargi
321
323
break
322
324
323
325
self .log .debug (
324
- f"Charging is still ongoing (current: { current_state_of_charge } , target: >= { target_state_of_charge } "
325
- f") --> Waiting for another { charging_progress_check_interval } ..."
326
+ f"Charging is still ongoing (current: { current_state_of_charge } , target: >= { target_state_of_charge } ) "
327
+ f"--> Waiting for another { charging_progress_check_interval } ..."
326
328
)
327
329
328
330
def _calculate_amount_of_energy_bought (
0 commit comments