muppet3000 / homeassistant-growatt_server_api

Home Assistant Integration for Growatt - Upstream repo for the growatt_server integration that is part of the Core Home Assistant repository
MIT License
53 stars 6 forks source link

ENCHANCEMENT - Credentials change #47

Open Saentist opened 10 months ago

Saentist commented 10 months ago

Is your feature request related to a problem? Please describe. Way to change credentials without remove re-add integration

Describe the solution you'd like Integration entries "CONFIGURE" button as on Grott

Saentist commented 10 months ago

Compared config_flow.py to this in forecast.solar witch have needed functionality, but no idea how to make "configure" button to appear in HA

caitotheonlypotato commented 4 months ago

Here's a thought that may work.

I use the homeassistant-growatt_server_api to monitor my elderly father's solar through my home assistant instance. Each day the connection lasts 18-22 hours or so. To get around this I've made several "visitor" accounts on his web portal as per below. Each visitor account can have the same email address, so the end user doesn't need multiple email accounts.

image

Each day I remove the integration entry and alternate them, it takes a few moments but easy enough to do image Would it be a practical exercise to specify to people that they should create these visitor accounts before installing the integration and then when installing the integration specify these account credentials. 3-4 should be sufficient. Then, when the integration is operational a particular account's API access is blocked, it could failover automatically to the next one on the list and just cycle through them.

Hopefully this is a practical idea to get past their restrictions for the average user that can't work through grott, or can't implement it for other practical reasons.

I'm obviously connecting to the Jinko portal (pvplus), but I presume the Growatt web UI is identical.