GuyKh / ims-custom-component

The Israel Meteorological Service (IMS) integration component for home assistant
MIT License
44 stars 8 forks source link

Forecast not updated automatically #45

Closed vadimnazaroff closed 1 year ago

vadimnazaroff commented 1 year ago

Forecast not updated automatically (autorefresh set to 60 min), shows few days back (last time restart was done). Reload of integration or soft restart of HASS loads actual forecast. See below screenshot, date is 26, forecast shows like currently is 22. image

GuyKh commented 1 year ago

Try to add this to your configuration.yaml:

logger:
  default: info
  logs:
    custom_components.ims: debug

You should see in the logs:

[custom_components.ims.weather_update_coordinator] Finished fetching ims data in 0.587 seconds (success: True)

Try to see when this happens

vadimnazaroff commented 1 year ago

Very strange, Now seems to be working after log config and restart, I will monitor in next 1-2 days and close the issue if won't be reproducible. 2023-05-28 21:28:18.943 DEBUG (MainThread) [custom_components.ims.weather_update_coordinator] Finished fetching ims data in 1.517 seconds (success: True) 2023-05-28 21:28:27.751 DEBUG (MainThread) [custom_components.ims.weather_update_coordinator] Finished fetching ims data in 0.511 seconds (success: True) 2023-05-28 21:28:38.311 DEBUG (MainThread) [custom_components.ims.weather_update_coordinator] Finished fetching ims data in 0.512 seconds (success: True) 2023-05-28 22:28:40.636 DEBUG (MainThread) [custom_components.ims.weather_update_coordinator] Finished fetching ims data in 2.273 seconds (success: True) 2023-05-28 23:28:51.725 DEBUG (MainThread) [custom_components.ims.weather_update_coordinator] Finished fetching ims data in 11.361 seconds (success: True) 2023-05-29 00:28:52.312 DEBUG (MainThread) [custom_components.ims.weather_update_coordinator] Finished fetching ims data in 0.949 seconds (success: True) 2023-05-29 01:28:53.332 DEBUG (MainThread) [custom_components.ims.weather_update_coordinator] Finished fetching ims data in 0.969 seconds (success: True) 2023-05-29 02:28:54.303 DEBUG (MainThread) [custom_components.ims.weather_update_coordinator] Finished fetching ims data in 0.939 seconds (success: True) 2023-05-29 03:28:55.301 DEBUG (MainThread) [custom_components.ims.weather_update_coordinator] Finished fetching ims data in 0.937 seconds (success: True) 2023-05-29 04:28:56.308 DEBUG (MainThread) [custom_components.ims.weather_update_coordinator] Finished fetching ims data in 0.945 seconds (success: True) 2023-05-29 05:28:57.291 DEBUG (MainThread) [custom_components.ims.weather_update_coordinator] Finished fetching ims data in 0.928 seconds (success: True) 2023-05-29 06:28:58.267 DEBUG (MainThread) [custom_components.ims.weather_update_coordinator] Finished fetching ims data in 0.904 seconds (success: True)

GuyKh commented 1 year ago

@vadimnazaroff Looks like this happening every 2 hours. Try setting the update time to 30 mins for example

GuyKh commented 1 year ago

Added some debug logging in 0.31.0

vadimnazaroff commented 1 year ago

Monitored for 2 days, works now, closing the issue, will raise new one with logs if will reproducible in future. Thanks for support