Hi @emcniece,
Thanks for putting together this addon.
I copied the master branch and managed to get it to login but something must have changed as it’s not working after the initial data retrieve. For example, when I restart the HA core, the add-on logs into BCHydro, retrieves the data, but then doesn’t update after that. I turned on debugging and after that initial data retrieval, it doesn’t seem to be able to re-authenticate. I’m not sure why - maybe the sessions is still good and the add-on isn’t detecting it?
There are no errors being displayed. I may add in some additional debugging outputs to see what might be going on but thought I’d see if you had any insight.
Thanks!
2021-05-19 16:13:52 DEBUG (SyncWorker_2) [custom_components.bchydro.sensor] About to call https://app.bchydro.com/sso/UI/Login with payload={'realm': 'bch-ps', 'email': '<username>', 'password': '<password>', 'gotoUrl': 'https://app.bchydro.com:443/BCHCustomerPortal/web/login.html'}
2021-05-19 16:13:53 DEBUG (SyncWorker_2) [custom_components.bchydro.sensor] Redirect iterations: 2
2021-05-19 16:13:53 DEBUG (SyncWorker_2) [custom_components.bchydro.sensor] About to call https://app.bchydro.com/evportlet/web/global-data.html with payload=None
2021-05-19 16:13:54 DEBUG (SyncWorker_2) [custom_components.bchydro.sensor] About to call https://app.bchydro.com/evportlet/web/account-profile-data.html with payload=None
2021-05-19 16:13:54 DEBUG (SyncWorker_3) [custom_components.bchydro.sensor] About to call https://app.bchydro.com/sso/UI/Login with payload={'realm': 'bch-ps', 'email': '<username>', 'password': '<password>', 'gotoUrl': 'https://app.bchydro.com:443/BCHCustomerPortal/web/login.html'}
2021-05-19 16:13:54 DEBUG (SyncWorker_0) [custom_components.bchydro.sensor] About to call https://app.bchydro.com/sso/UI/Login with payload={'realm': 'bch-ps', 'email': '<username>', 'password': '<password>', 'gotoUrl': 'https://app.bchydro.com:443/BCHCustomerPortal/web/login.html'}
2021-05-19 16:13:54 DEBUG (SyncWorker_8) [custom_components.bchydro.sensor] About to call https://app.bchydro.com/sso/UI/Login with payload={'realm': 'bch-ps', 'email': '<username>', 'password': '<password>', 'gotoUrl': 'https://app.bchydro.com:443/BCHCustomerPortal/web/login.html'}
2021-05-19 16:18:52 DEBUG (SyncWorker_4) [custom_components.bchydro.sensor] About to call https://app.bchydro.com/sso/UI/Login with payload={'realm': 'bch-ps', 'email': '<username>', 'password': '<password>', 'gotoUrl': 'https://app.bchydro.com:443/BCHCustomerPortal/web/login.html'}
2021-05-19 16:18:52 DEBUG (SyncWorker_6) [custom_components.bchydro.sensor] About to call https://app.bchydro.com/sso/UI/Login with payload={'realm': 'bch-ps', 'email': '<username>', 'password': '<password>', 'gotoUrl': 'https://app.bchydro.com:443/BCHCustomerPortal/web/login.html'}
2021-05-19 16:18:52 DEBUG (SyncWorker_8) [custom_components.bchydro.sensor] About to call https://app.bchydro.com/sso/UI/Login with payload={'realm': 'bch-ps', 'email': '<username>', 'password': '<password>', 'gotoUrl': 'https://app.bchydro.com:443/BCHCustomerPortal/web/login.html'}
2021-05-19 16:18:52 DEBUG (SyncWorker_3) [custom_components.bchydro.sensor] About to call https://app.bchydro.com/sso/UI/Login with payload={'realm': 'bch-ps', 'email': '<username>', 'password': '<password>', 'gotoUrl': 'https://app.bchydro.com:443/BCHCustomerPortal/web/login.html'}
2021-05-19 16:23:52 DEBUG (SyncWorker_7) [custom_components.bchydro.sensor] About to call https://app.bchydro.com/sso/UI/Login with payload={'realm': 'bch-ps', 'email': '<username>', 'password': '<password>', 'gotoUrl': 'https://app.bchydro.com:443/BCHCustomerPortal/web/login.html'}
2021-05-19 16:23:52 DEBUG (SyncWorker_8) [custom_components.bchydro.sensor] About to call https://app.bchydro.com/sso/UI/Login with payload={'realm': 'bch-ps', 'email': '<username>', 'password': '<password>', 'gotoUrl': 'https://app.bchydro.com:443/BCHCustomerPortal/web/login.html'}
2021-05-19 16:23:52 DEBUG (SyncWorker_4) [custom_components.bchydro.sensor] About to call https://app.bchydro.com/sso/UI/Login with payload={'realm': 'bch-ps', 'email': '<username>', 'password': '<password>', 'gotoUrl': 'https://app.bchydro.com:443/BCHCustomerPortal/web/login.html'}
2021-05-19 16:23:52 DEBUG (SyncWorker_6) [custom_components.bchydro.sensor] About to call https://app.bchydro.com/sso/UI/Login with payload={'realm': 'bch-ps', 'email': '<username>', 'password': '<password>', 'gotoUrl': 'https://app.bchydro.com:443/BCHCustomerPortal/web/login.html'}
2021-05-19 16:28:52 DEBUG (SyncWorker_0) [custom_components.bchydro.sensor] About to call https://app.bchydro.com/sso/UI/Login with payload={'realm': 'bch-ps', 'email': '<username>', 'password': '<password>', 'gotoUrl': 'https://app.bchydro.com:443/BCHCustomerPortal/web/login.html'}