srcfl / srcful-gateway

Sourceful Energy Gateway: Connect your solar inverter or Utility meters to earn tokens.
https://sourceful.energy/
MIT License
5 stars 2 forks source link

Support for enphase #104

Open davmoz opened 9 months ago

davmoz commented 9 months ago

PoS for enphase

https://enphase.com/installers/resources/documentation/microinverters

davmoz commented 7 months ago

Modbus under development: https://enphase.com/installers/resources/ieee-1547-2018

IQ gateway API: https://enphase.com/download/accessing-iq-gateway-local-apis-or-local-ui-token-based-authentication?_ga=2.192018467.867469757.1710945537-952080430.1710945537

Discussion: https://support.enphase.com/s/question/0D53m00008rXPs3CAG/hi-all-i-want-to-read-over-the-modbus-tcp-command-the-value-of-the-enphase-is-it-possible-if-yes-what-is-the-port-modbus-id-modbus-adress-and-command-thx-jan

davmoz commented 7 months ago

Relevant for uinverters: https://enphase.com/download/iq-gateway-datasheet

davmoz commented 5 days ago

seems like we can't poll the local gateway that often... https://www.reddit.com/r/enphase/comments/12ys04m/enphase_iq_combiner_does_local_api_require_tokens/

Every 60 seconds seems fine for HA https://www.home-assistant.io/integrations/enphase_envoy/#polling-interval

davmoz commented 1 day ago

When acquiring tokens programmatically, check the token's validity duration, as installer accounts generate tokens that expire after 12 hours, while system owner accounts can generate tokens valid for up to 12 months. If an installer account is detected (12h token), notify the user and recommend using system owner credentials for longer token validity.