grzegorz914 / homebridge-enphase-envoy

Homebridge plugin for Photovoltaic Energy System manufactured by Enphase. Supported Envoy-IQ, Envoy-S and all peripheral devices.
MIT License
47 stars 9 forks source link

Token Instead of username and password #140

Closed unserbaublog closed 2 months ago

unserbaublog commented 2 months ago

While it might be beneficial for most users to enter Enlighten username and password, I‘d appreciate the ability to enter an existing auth token instead. It appears this config variable was removed at some point in time. Is there a possibility to bring it back?

grzegorz914 commented 2 months ago

Right now is not possible, in current version the app get the token automatically and check its expired date, if the token expired then token will refresh automatically. In your case after token expired need to paste new token manually, in this case some users loses the connectivity to Envoy. Technically paste token generated itself is possible but in current version the process is very easy and simply.

unserbaublog commented 2 months ago

Thanks gregorz914. Sadly I‘m relying on multiple tools and the only option to get them all going is to use the manually created token. AFAIK there can be only one token. Using username and password would break the other tools, so co-existence won‘t be possible.

grzegorz914 commented 2 months ago

Ok, I agree, I will prepare beta release with possibility to put own token instead user and password.

unserbaublog commented 2 months ago

Amazing! That‘s very much appreciated.

grzegorz914 commented 2 months ago

please try 7.16.0-beta and let me know

grzegorz914 commented 2 months ago

7.16.0 released

unserbaublog commented 2 months ago

Thank you for the efforts. It works. 🙏🏼