Prevent Enphase export with negative prices

Does anyone already have developed a way to prevent an Enphase system to export electricity to the net when prices are negative.

I have dynamic tariff pricing on, but Enphase still exports when prices are negative. I would like to switch off production when prices are negative.

There is an API available and someone in the Enphase forum said you can stop production via this endpoint:

https://{}/ivp/mod/603980032/mode/power

But I am not able to develop it myself. For Home Assistant there is an integration by Vincent Wolsink.

You can use the “http request” card.
Start testing by using a so called GET request (or ask that someone in the Enphase forum if it needs the GET , POST or PUT method).

(Just a thought: I also expect it to use a flag, like .../power?on .../power?off
But maybe .../power just toggles the power output.)

Example:
In case Enphase IP address being 192.168.1.10:

By the way you can test this URL from any browser in your home network
http://192.168.1.10/ivp/mod/603980032/mode/power
https://192.168.1.10/ivp/mod/603980032/mode/power

Also you’d try to use both https or http. Local connections often use http.

Do you have a link to that forum/topic?

1 Like

Tried with HTTP GET request in Homey but receive error, self-certication. When I go to the URL in the browser I can get passed that by selecting advanced, but then a 401. Would getting an API Token help? Can I add that token to the HTTP GET Request in Homey?

I also found this documentation. May help?

https://enphase.com/download/accessing-iq-gateway-local-apis-or-local-ui-token-based-authentication

401 = unauthorised

Apparently you’re supposed to send credentials along;
But concerning the self-certifcate issue, AFAIK Homey can’t process this atm. Please contact support to discuss this bug, or better: this decision.

I took a look at the documentation, but that’s way to complicated (to me).