codyc1515 / homebridge-panasonic-air-conditioner

Panasonic Air Conditioner / Heat Pump plugin for HomeBridge using the Panasonic Comfort Cloud API to expose Panasonic Air Conditioners to Apples HomeKit
MIT License
34 stars 13 forks source link

Set and clear intervals and timeouts for refresh, login and login retry #50

Closed rupertbg closed 3 years ago

rupertbg commented 3 years ago

Refresh and login token interval is now set after successful login. Login retries are now performed when login does not succeed. Login retries are set with a 5 minute delay, refresh of data and login token use the existing intervals. Intervals are cleared when login is being performed to prevent the intervals from stacking.

rupertbg commented 3 years ago

@codyc1515 can you take a look? The current token expiry handling means I have to reboot my homebridge relatively frequently

codyc1515 commented 3 years ago

Hopefully I can take a look tomorrow. Looks good to me.

codyc1515 commented 3 years ago

Thank you very much. This is a great help.