hoymiles icon indicating copy to clipboard operation
hoymiles copied to clipboard

Fails when there is no data yet

Open augustynski-lukasz opened this issue 1 year ago • 2 comments

Addon failes on newly installed PV plant when there is no data yet.

Logs: 2024-09-20 15:25:11,945 - HoymilesAdd-on.hoymilesapi.Hoymiles - WARNING - real_power = 0 Traceback (most recent call last): File "/hoymiles.py", line 499, in sys.exit(main()) # next section explains the use of sys.exit File "/hoymiles.py", line 454, in main publicate_data(plant_list[id], mqtt_h) File "/hoymiles.py", line 263, in publicate_data hoymiles_h.get_solar_data() File "/hoymilesapi.py", line 265, in get_solar_data self.solar_data = self.adjust_solar_data(self.solar_data) File "/hoymilesapi.py", line 308, in adjust_solar_data last_data_time = datetime.strptime(last_data_time, "%Y-%m-%d %H:%M:%S") TypeError: strptime() argument 1 must be str, not None

augustynski-lukasz avatar Sep 20 '24 13:09 augustynski-lukasz

Same here a month later…

xxLeoxx93 avatar Oct 26 '24 08:10 xxLeoxx93

@xxLeoxx93 but it is only for fresh installation. where there is no data on the server. It will be fixed in new version.

Cosik avatar Oct 26 '24 14:10 Cosik