erikkastelec / hass-WEM-Portal

Custom component for retrieving sensor information from Weishaupt WEM Portal
MIT License
44 stars 9 forks source link

Integration is crashing after 1.5 update #65

Open zweckj opened 1 year ago

zweckj commented 1 year ago

Hi, the integration keeps crashing for me after the migration to 1.5. I added username/password in the config_flow, but get the following on repeat:

2023-04-26 11:52:30.222 ERROR (MainThread) [custom_components.wemportal] Creating new wemportal api instance
2023-04-26 11:52:30.226 DEBUG (MainThread) [custom_components.wemportal] Finished fetching WemPortal update data in 6.256 seconds (success: False)
2023-04-26 11:52:40.908 DEBUG (SyncWorker_7) [custom_components.wemportal] Fetching api device data
2023-04-26 11:52:41.151 DEBUG (SyncWorker_7) [custom_components.wemportal] Fetching api parameters data
2023-04-26 11:52:45.265 DEBUG (SyncWorker_7) [custom_components.wemportal] Fetching fresh api data
2023-04-26 11:52:45.778 ERROR (MainThread) [custom_components.wemportal] Creating new wemportal api instance

I cleared my config yaml and deleted any old entities (just in case), but no difference.

zweckj commented 1 year ago

Might be caused by my unit being offline.

dm82m commented 1 year ago

If your unit is offline in wemportal, just power it off and an manually, it should reconnect then.

erikkastelec commented 1 year ago

Yes the problem is in the unit being offline. Will add a check for that scenario, so we do not generate so many requests.