# Prevent Enphase export with negative prices

**URL:** <https://community.homey.app/t/prevent-enphase-export-with-negative-prices/153586>\
**Category:** Apps\
**Created:** [April 9, 2026, 8:19pm UTC](https://community.homey.app/t/prevent-enphase-export-with-negative-prices/153586 "2026-04-09T20:19:38Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Timelezz](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/timelezz/32/121046_2.png) [@Timelezz](https://community.homey.app/u/Timelezz)\
**Post date:** [April 9, 2026, 8:19pm UTC](https://community.homey.app/t/prevent-enphase-export-with-negative-prices/153586/1 "2026-04-09T20:19:38Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [April 9, 2026, 8:50pm UTC](https://community.homey.app/t/prevent-enphase-export-with-negative-prices/153586/2 "2026-04-09T20:50:02Z")

</div>

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`:

 ![Screenshot_20260409_224205_Vivaldi](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/9/e9d1cd21320f1247fe1a839af407fee11fd1e358.jpeg)

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](http://192.168.1.10/ivp/mod/603980032/mode/power)  
[https://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`.

---

<div class="post-metadata">

**Author:** ![Robkrekel](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robkrekel/32/113089_2.png) [@Robkrekel](https://community.homey.app/u/Robkrekel)\
**Post date:** [April 10, 2026, 5:34am UTC](https://community.homey.app/t/prevent-enphase-export-with-negative-prices/153586/3 "2026-04-10T05:34:07Z")

</div>

Do you have a link to that forum/topic?

---

<div class="post-metadata">

**Author:** ![Anoniemand](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/anoniemand/32/120697_2.png) [@Anoniemand](https://community.homey.app/u/Anoniemand)\
**Post date:** [April 10, 2026, 5:56am UTC](https://community.homey.app/t/prevent-enphase-export-with-negative-prices/153586/4 "2026-04-10T05:56:31Z")

</div>

> [@\[APP\] Enphase - Harness the sun to make, use, save, and sell your own power](https://community.homey.app/t/app-enphase-harness-the-sun-to-make-use-save-and-sell-your-own-power/134602):
>
> Central Topic for [Enphase App for Homey | Homey](https://homey.app/a/com.enphase/)

---

<div class="post-metadata">

**Author:** ![Timelezz](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/timelezz/32/121046_2.png) [@Timelezz](https://community.homey.app/u/Timelezz)\
**Post date:** [April 10, 2026, 10:23pm UTC](https://community.homey.app/t/prevent-enphase-export-with-negative-prices/153586/5 "2026-04-10T22:23:19Z")

</div>

> **[Enphase Community](https://support.enphase.com/s/question/0D7Ps00000GQ4mjKAD/how-to-switch-off-a-single-micro-inverter?s1oid=00DA0000000aQ9D&s1nid=0DB2G000000Kz2X&s1uid=005Ps00000K8fgo&s1ext=0&emkind=chatterCommentNotification&emtm=1775562527121)**

---

<div class="post-metadata">

**Author:** ![Timelezz](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/timelezz/32/121046_2.png) [@Timelezz](https://community.homey.app/u/Timelezz)\
**Post date:** [April 10, 2026, 10:27pm UTC](https://community.homey.app/t/prevent-enphase-export-with-negative-prices/153586/6 "2026-04-10T22:27:48Z")

</div>

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](https://enphase.com/download/accessing-iq-gateway-local-apis-or-local-ui-token-based-authentication)

> **[The Enlighten Systems API](https://developer-v4.enphase.com/docs.html)**
>
> Harness the power of data from Enphase Systems.

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [April 10, 2026, 10:37pm UTC](https://community.homey.app/t/prevent-enphase-export-with-negative-prices/153586/7 "2026-04-10T22:37:38Z")

</div>

> [@Timelezz](#):
>
> 401

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.

> [@Timelezz](#):
>
> found this documentation

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

---

<div class="post-metadata">

**Author:** ![bramtops](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bramtops/32/166144_2.png) [@bramtops](https://community.homey.app/u/bramtops)\
**Post date:** [May 26, 2026, 9:17am UTC](https://community.homey.app/t/prevent-enphase-export-with-negative-prices/153586/8 "2026-05-26T09:17:37Z")

</div>

Yes you need to get credentials from the enphase entrez server first. And to get around the https certification error you need to define a custom http agent that doesn’t mind the self certification. Neither is possible with just flow cards.

I’ve made a working homey script that can enable/disable power production. It works, and i’m now converting it to working homey app. I already have it running on my homey. It’s basically the same as the already existing enphase apps, but with the addition of power on/off switch and the associated flow-cards.

The device:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/e/feebf74d4ebfa7e3936d31738a639858bf1c3c07.png)

And now you can do:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/a/aa7fd63ef5d1a43127c4cae1a799110a8ccc84cb.jpeg)

I only need to check some homey requirements and publish it.

To be able to enable/disable power production in your enphase gateway, you need to have an enphase maintainer account which has access to your home-owner account though. Instructions [here](https://gathering.tweakers.net/forum/list_messages/2237450?data%5Bfilter_topicstarter%5D=1#installateur) (in Dutch).

---

<div class="post-metadata">

**Author:** ![bramtops](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bramtops/32/166144_2.png) [@bramtops](https://community.homey.app/u/bramtops)\
**Post date:** [May 26, 2026, 9:44pm UTC](https://community.homey.app/t/prevent-enphase-export-with-negative-prices/153586/9 "2026-05-26T21:44:26Z")

</div>

Test version currently available [here](https://homey.app/en-nl/app/nl.creitive.enlighten/Enphase-Controller/test/).

---

<div class="post-metadata">

**Author:** ![Robkrekel](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robkrekel/32/113089_2.png) [@Robkrekel](https://community.homey.app/u/Robkrekel)\
**Post date:** [May 27, 2026, 6:10am UTC](https://community.homey.app/t/prevent-enphase-export-with-negative-prices/153586/10 "2026-05-27T06:10:23Z")

</div>

I’ve tried to install a view times, but in doesn’t install at all…

---

<div class="post-metadata">

**Author:** ![Captaingreenfield](https://avatars.discourse-cdn.com/v4/letter/c/9f8e36/32.png) [@Captaingreenfield](https://community.homey.app/u/Captaingreenfield)\
**Post date:** [May 27, 2026, 6:26am UTC](https://community.homey.app/t/prevent-enphase-export-with-negative-prices/153586/11 "2026-05-27T06:26:06Z")

</div>

Works fantastically at first glance! I was initially logged in with my user account, then it doesn’t work. You can try to adjust your details in the device in Homey, but that didn’t work either. After removing the device and reinstalling it (logging in with an Enphase Installer account), it works perfectly!

You are truly greatly appreciated for this fantastic work! I’m happy to help with testing where needed. I still have a fixed energy contract without feed-in penalties, so for now I won’t be using it very actively, but I’m more than willing to help with testing.

---

<div class="post-metadata">

**Author:** ![Captaingreenfield](https://avatars.discourse-cdn.com/v4/letter/c/9f8e36/32.png) [@Captaingreenfield](https://community.homey.app/u/Captaingreenfield)\
**Post date:** [May 27, 2026, 6:36am UTC](https://community.homey.app/t/prevent-enphase-export-with-negative-prices/153586/12 "2026-05-27T06:36:23Z")

</div>

You mean you can’t install the app? Or do you mean that you can’t add the device after installing the app?

---

<div class="post-metadata">

**Author:** ![Robkrekel](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robkrekel/32/113089_2.png) [@Robkrekel](https://community.homey.app/u/Robkrekel)\
**Post date:** [May 27, 2026, 6:40am UTC](https://community.homey.app/t/prevent-enphase-export-with-negative-prices/153586/13 "2026-05-27T06:40:28Z")

</div>

I can’t install the app.  
I’ve still got a pro 2019, maybee that could be the issue?

---

<div class="post-metadata">

**Author:** ![bramtops](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bramtops/32/166144_2.png) [@bramtops](https://community.homey.app/u/bramtops)\
**Post date:** [May 27, 2026, 7:01am UTC](https://community.homey.app/t/prevent-enphase-export-with-negative-prices/153586/14 "2026-05-27T07:01:14Z")

</div>

> [@Captaingreenfield](#):
>
> I was initially logged in with my user account, then it doesn’t work. You can try to adjust your details in the device in Homey, but that didn’t work either.

The app should detect whether you’re using a home or installer account, and disable features accordingly. Do you mean you still had the on/off toggle with the home account? What did you see exactly that made you go “that doesn’t work”? It should also state the control access on the device status display. I’ll look into it.

I’ll include some extra notifications regarding the importance of the installer account on the login screen too.

> [@Robkrekel](#):
>
> I’ve still got a pro 2019, maybee that could be the issue?

Might very well be. It’s developed on a pro 2023. Haven’t looked into compatibility at all yet 😅 Will do that soon!

---

<div class="post-metadata">

**Author:** ![Captaingreenfield](https://avatars.discourse-cdn.com/v4/letter/c/9f8e36/32.png) [@Captaingreenfield](https://community.homey.app/u/Captaingreenfield)\
**Post date:** [May 27, 2026, 7:16am UTC](https://community.homey.app/t/prevent-enphase-export-with-negative-prices/153586/15 "2026-05-27T07:16:15Z")

</div>

> The app should detect whether you’re using a home or installer account, and disable features accordingly. Do you mean you still had the on/off toggle with the home account? What did you see exactly that made you go “that doesn’t work”? It should also state the control access on the device status display. I’ll look into it.
> 
> I’ll include some extra notifications regarding the importance of the installer account on the login screen too.

When I entered my installer credentials, it immediately stated that you have full permissions with that account (I don’t remember the exact wording). With the user account, it said something different, so that part works fine.

However, with the user account it didn’t work at all. I got a red exclamation mark on the device and couldn’t see any data. With the installer account, it worked straight away using exactly the same details otherwise.

I do think it would be good to add a warning somewhere when entering credentials that it specifically requires the installer account. I was confused myself because the example email address was something like “[eigenaar@gmail.com](mailto:eigenaar@gmail.com)”, which led me to initially use my user (eigenaar) account.

---

<div class="post-metadata">

**Author:** ![bramtops](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bramtops/32/166144_2.png) [@bramtops](https://community.homey.app/u/bramtops)\
**Post date:** [May 27, 2026, 8:03am UTC](https://community.homey.app/t/prevent-enphase-export-with-negative-prices/153586/16 "2026-05-27T08:03:53Z")

</div>

> [@Captaingreenfield](#):
>
> However, with the user account it didn’t work at all. I got a red exclamation mark on the device and couldn’t see any data.

Right, thanks for the clarification. I’ll look into it.

> [@Captaingreenfield](#):
>
> I do think it would be good to add a warning somewhere when entering credentials that it specifically requires the installer account.

Yep that’s on the todo-list. However, an installer account isn’t required if you only want read-only access which could still be usefull. I’ll make sure it’s explained better.

---

<div class="post-metadata">

**Author:** ![microkid](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/microkid/32/48040_2.png) [@microkid](https://community.homey.app/u/microkid)\
**Post date:** [May 27, 2026, 10:44am UTC](https://community.homey.app/t/prevent-enphase-export-with-negative-prices/153586/17 "2026-05-27T10:44:54Z")

</div>

although I have a installer account (I can adjust all settings in my Enphase config and use the ITK), the app reports a read-only role and no metrics are visible.

Also, since installing this app, the official Enphase app went red and is not responding anymore…

---

<div class="post-metadata">

**Author:** ![bramtops](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bramtops/32/166144_2.png) [@bramtops](https://community.homey.app/u/bramtops)\
**Post date:** [May 27, 2026, 11:10am UTC](https://community.homey.app/t/prevent-enphase-export-with-negative-prices/153586/18 "2026-05-27T11:10:16Z")

</div>

> [@microkid](#):
>
> the app reports a read-only role

Are you absolutely sure you logged in with your installer/maintainer account?

> [@microkid](#):
>
> and no metrics are visible

This one is under investigation.

> [@microkid](#):
>
> Also, since installing this app, the official Enphase app went red and is not responding anymore…

Ooh thats… weird. Must be a conflict somewhere, but i’m not immediately sure how/why. Maybe something related to the Envoy access tokens. If there’s a conflict with the tokens on Enphase’s side, I don’t think we can have more than one Enhpase app active at the same time. But I’ll investigate.

Thanks for reporting!

---

<div class="post-metadata">

**Author:** ![microkid](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/microkid/32/48040_2.png) [@microkid](https://community.homey.app/u/microkid)\
**Post date:** [May 27, 2026, 11:52am UTC](https://community.homey.app/t/prevent-enphase-export-with-negative-prices/153586/19 "2026-05-27T11:52:54Z")

</div>

> Are you absolutely sure you logged in with your installer/maintainer account?

Afaik yes, as it is the same account I use in the Gateway to access the “Installer login” at the bottom of the screen. I also see a “fleet view” in Enphase Manager.

---

<div class="post-metadata">

**Author:** ![bramtops](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bramtops/32/166144_2.png) [@bramtops](https://community.homey.app/u/bramtops)\
**Post date:** [May 27, 2026, 12:10pm UTC](https://community.homey.app/t/prevent-enphase-export-with-negative-prices/153586/20 "2026-05-27T12:10:18Z")

</div>

Maybe you’ve entered your “Site ID” instead of the “Gateway SN”?

The gateway SN can be found in Enlighten → System → Devices → Gateway and has 12 digits.

The Site ID (under is Enlighten → System → Site details) only has 7 digits. We do not want this one.

This would also explain the metrics not showing up.

[Next page](https://community.homey.app/t/prevent-enphase-export-with-negative-prices/153586.md?page=2)
