Probably faulty math or wrong moment to evaulate the term.

The error is likely in
|
while((datetime.now() - start_time) < timedelta(hours=HOT_DURATION+COOL_DURATION)): |
I used HOT_DURATION = 3 and COOL_DURATION = 1
Error occurred both when the end of the measurement would have been just after midnight and in the middle of the day, so it is probably not a calendar-day related issue.
Probably faulty math or wrong moment to evaulate the term.
The error is likely in
measure_thermal_behavior/measure_thermal_behavior.py
Line 492 in 0098166
I used
HOT_DURATION = 3andCOOL_DURATION = 1Error occurred both when the end of the measurement would have been just after midnight and in the middle of the day, so it is probably not a calendar-day related issue.