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:
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?
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).
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.
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 (in Dutch).
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.
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.
Might very well be. It’s developed on a pro 2023. Haven’t looked into compatibility at all yet Will do that soon!
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”, which led me to initially use my user (eigenaar) account.
Right, thanks for the clarification. I’ll look into it.
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.
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…
Are you absolutely sure you logged in with your installer/maintainer account?
This one is under investigation.
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.
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.