Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

My Enphase integration has been unavailable for a few days #95851

Closed
alplaurent opened this issue Jul 4, 2023 · 61 comments
Closed

My Enphase integration has been unavailable for a few days #95851

alplaurent opened this issue Jul 4, 2023 · 61 comments

Comments

@alplaurent
Copy link

The problem

Hello

My Enphase integration has been unavailable for a few days.
I've deleted it but I can't connect despite numerous attempts.

I enter the information (which is correct),

image

HA tries to connect for about 2 minutes....

image

and then a "connection failed" message appears.

image

I've also tried using only the IP address, "Envoy" as the identifier and the serial number, and unchecking the "use Enlighten" box, but the result is the same...

image

I was in vesrion 2023.06.4. I switched back to 2023.4.5 but I still have the same problem...

I don't know what else to do...
Thanks in advance for your help

What version of Home Assistant Core has the issue?

core-2023.06.4

What was the last working version of Home Assistant Core?

core-2023.4.5

What type of installation are you running?

Home Assistant OS

Integration causing the issue

No response

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

@home-assistant
Copy link

home-assistant bot commented Jul 4, 2023

Hey there @gtdiehl, mind taking a look at this issue as it has been labeled with an integration (enphase_envoy) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of enphase_envoy can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign enphase_envoy Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


enphase_envoy documentation
enphase_envoy source
(message by IssueLinks)

@WebSpider
Copy link
Contributor

Please enable debug logging for the integration and add some logs.

@alplaurent
Copy link
Author

How can I activate debug logging as I can no longer install the integration?
thank you

image

@WebSpider
Copy link
Contributor

Your homeassistant install itself should have logs from the integration install failing:

https://your.home:8123/config/logs

If there is nothing in there related to enphase, check out https://www.home-assistant.io/integrations/system_log/ how to increase system logging. Increasing logging will usually slow down your system, so dont start logging everything you can think of :)

@alplaurent
Copy link
Author

Your homeassistant install itself should have logs from the integration install failing:

https://your.home:8123/config/logs

If there is nothing in there related to enphase, check out https://www.home-assistant.io/integrations/system_log/ how to increase system logging. Increasing logging will usually slow down your system, so dont start logging everything you can think of :)

I found this:

Détails du journal (ERREUR)
Cette erreur provient d'une intégration personnalisée
Logger: custom_components.enphase_envoy.config_flow
Source: custom_components/enphase_envoy/envoy_reader.py:246
Integration: Enphase Envoy (DEV)
First occurred: 06:07:10 (3 occurrences)
Last logged: 10:18:35

Unexpected exception
Traceback (most recent call last):
File "/config/custom_components/enphase_envoy/config_flow.py", line 150, in async_step_user
envoy_reader = await validate_input(self.hass, user_input)
File "/config/custom_components/enphase_envoy/config_flow.py", line 42, in validate_input
await envoy_reader.getData()
File "/config/custom_components/enphase_envoy/envoy_reader.py", line 368, in getData
await self._getEnphaseToken()
File "/config/custom_components/enphase_envoy/envoy_reader.py", line 261, in _getEnphaseToken
token_json = await self._fetch_owner_token_json()
File "/config/custom_components/enphase_envoy/envoy_reader.py", line 246, in _fetch_owner_token_json
resp_json = resp.json()
File "/usr/local/lib/python3.10/site-packages/httpx/_models.py", line 756, in json
return jsonlib.loads(self.text, **kwargs)
File "/usr/local/lib/python3.10/json/init.py", line 346, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python3.10/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/lib/python3.10/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

@alplaurent
Copy link
Author

And this :

2023-07-03 21:13:02.878 WARNING (MainThread) [homeassistant.config_entries] Config entry 'Envoy 122240002467' for enphase_envoy integration not ready yet: Error communicating with API: ; Retrying in background

@MrMiracles
Copy link

Are you sure it has nothing to do with the firmware update from enphase? See this issue. I have the same issue, and that is the problem here.

@fludo
Copy link

fludo commented Jul 7, 2023

Seems to be related to gateway upgrade from enphase.
Stopped working with this version:

D7.6.175 (f79c8d)
Software Build Date
22 Jun, 2023 12:43 PM

@rtdegraaf
Copy link

Seems to be related to gateway upgrade from enphase. Stopped working with this version:

D7.6.175 (f79c8d) Software Build Date 22 Jun, 2023 12:43 PM

I'm having the same issue, same firmware version. Stopped working since yesterday.

@alplaurent
Copy link
Author

same firmware version : D7.6.175

@seblang
Copy link

seblang commented Jul 7, 2023

yes it's an update!
when you try to connect you to the emphase passerelle you need a token

image

@karel314
Copy link

karel314 commented Jul 7, 2023

Hi, Same issues here with firmware version : D7.6.175

@seblang
Copy link

seblang commented Jul 7, 2023

There is a new API V4 (instead of V2) and this new API request OAUTH :

Note: Both Monitoring and Commissioning API follow OAuth 2.0 authentication. Each API request should include an OAuth 2.0 access token as Authorization header using the Bearer scheme, and the request should also include the API key of your application in header with name 'key'.

https://developer-v4.enphase.com/docs.html

@andyfsimon
Copy link

Yes, it proposes to create a token but if you go to the website it's not actually possible: the gateway remains empty and there's no indication of what the service is.

@seblang
Copy link

seblang commented Jul 7, 2023

image

you need to create an account to have a token, but I do not know how to update the file in home assistant

@michel130
Copy link

I have the same issue, since this morning it stopped in my home assistant.
It also stopped on my Toon.

@seblang
Copy link

seblang commented Jul 7, 2023

I will try this reposite in HACS
https://github.com/jrutski/home_assistant_envoy_d7_fw

@shvirik
Copy link

shvirik commented Jul 7, 2023

Hello everyone,

Incredible bad work on the part of enphase. I don't know if anyone from that company is here or is reading these lines... but it's obviously the last time I use a product from their brand. Its device management policy is disastrous, and this is already the last straw.

They have introduced the need for a token for the use of their API . Aditionally I lost the access via the web (local IP).

The token can be generate at:

https://entrez.enphaseenergy.com/entrez_tokens

The login credentials are the ones you use to access: enlighten.enphaseenergy.com

Once logged in, you will need the name of the installation that is taken from:

Menu: System
Submenu: Site Details
Site detail name: XXX

My installation is not in English, so it may not exactly correspond to those titles.

If the name is correct, you can now use the dropdown to choose your device and the token is generated. Copy it to a safe place.

You have all the info at:
https://enphase.com/download/accessing-iq-gateway-local-apis-or-local-ui-token-based-authentication?_ga=2.83049430.1337962982.1688732303-23618210.1688732303

I guess the integration will have to be adapted to support the new token.

Regards,

@fludo
Copy link

fludo commented Jul 7, 2023

@shvirik I posted a comment on this topic https://support.enphase.com/s/question/0D53m00006ySLuRCAW/unimpressed-with-loss-of-local-api-connectivity-to-envoys.
I also wrote to the support regarding the unability to log-in locally with this slow login portal.

To all: feel free to leave a comment as well and to contact the support. They should know this is not something customer appreciate.
They should at least have kept an option to opt-out from this auth method. entrez.enphaseenergy.com is not handling the load... I now get random metric reporting with most of the time unavailable data on the dashboard.

Regards

@shvirik
Copy link

shvirik commented Jul 7, 2023

@shvirik I posted a comment on this topic https://support.enphase.com/s/question/0D53m00006ySLuRCAW/unimpressed-with-loss-of-local-api-connectivity-to-envoys. I also wrote to the support regarding the unability to log-in locally with this slow login portal.

To all: feel free to leave a comment as well and to contact the support. They should know this is not something customer appreciate. They should at least have kept an option to opt-out from this auth method. entrez.enphaseenergy.com is not handling the load... I now get random metric reporting with most of the time unavailable data on the dashboard.

Regards

Thanks for the information, I have some questions, If you can answer them, I really appreciate it.

Does the envoy website appear in the browser at least? (local ip from a computer at the same network)

Those metrics you're talking about... are they from consumption? through the HA?

Regards,

@seblang
Copy link

seblang commented Jul 7, 2023

Hi if I read the answer from Emphase : "It is just that you will need token authentication to access the APIs"
That mean we need an update from the intégration to add this token

@alafon
Copy link

alafon commented Jul 7, 2023

Until the official integration is fixed (I'd like to help but I'm not a python dev so good luck guys), I'm using this one: https://github.com/briancmpbll/home_assistant_custom_envoy

I'm curious, not blaming, why not asking for pull request on the official repository instead of forking it?

@andyfsimon
Copy link

When I access entrez.enphaseenergy.com I have two fields, one for Select System and the other is a drop down with "Select gateway". No matter what I put in Select System the gateway field remains empty, hence I cannot create a token... this seems rather broken if you ask me.

@alplaurent
Copy link
Author

When I access entrez.enphaseenergy.com I have two fields, one for Select System and the other is a drop down with "Select gateway". No matter what I put in Select System the gateway field remains empty, hence I cannot create a token... this seems rather broken if you ask me.

I had posted the solution on the Enphase forum :
image

@andyfsimon
Copy link

Neat... thanks @alplaurent - would never have figured it out. Thanks to Enphase for sparing even the slightest help tip on the page! (you know... text is so expensive these days...!)

@alafon
Copy link

alafon commented Jul 7, 2023

Until the official integration is fixed (I'd like to help but I'm not a python dev so good luck guys), I'm using this one: https://github.com/briancmpbll/home_assistant_custom_envoy

I'm curious, not blaming, why not asking for pull request on the official repository instead of forking it?

For those who are asking, history is kept while moving from the official integration to the "new" custom one:

Capture d’écran 2023-07-07 à 18 19 08

I went through this workflow:

  • backup (HA + database + anything...)
  • disable current integration (not remove it)
  • install the custom one from HACS
  • restart HA
  • open current Envoy Enphase integration setup: you should see your previous configuration/entry appearing, but disabled and the integration name should be "Enphase Envoy (DEV)"
  • restart the integration setup workflow by entering host-IP/username/password/serial_number and check "Use enlighten" (username and password are your official credentials to access the enlighten portal)
  • wait (took ~ 30 seconds for me...)
  • restart HA
  • drink a beer and chill

@legomannetje
Copy link

With the API token that you can get from https://entrez.enphaseenergy.com/ and login with it, it is possible to get all the values from this endpoint https://envoy/api/v1/production/inverters . Would it be possible to rewrite the current plugin that it works with the current official hassio integration?

@shvirik
Copy link

shvirik commented Jul 7, 2023

one question for everyone. Could you log in the local envoy web? (http or https://envoy.local/ or local ip)

Because, I only have one time a message the "unsecure connection", but never reach the local web site.

I can do a telnet with 443 or 80 port.

@SjamonDaal
Copy link

SjamonDaal commented Jul 7, 2023

  • restart the integration setup workflow by entering host-IP/username/password/serial_number and check "Use enlighten" (username and password are your official credentials to access the enlighten portal)

@alafon, What do you mean with this? Everything until this worked. I'm unable to reconfigure the existing integration and when using the add integration option it says that it already exists.

@SjamonDaal
Copy link

  • restart the integration setup workflow by entering host-IP/username/password/serial_number and check "Use enlighten" (username and password are your official credentials to access the enlighten portal)

@alafon, What do you mean with this? Everything until this worked. I'm unable to reconfigure the existing integration and when using the add integration option it says that it already exists.

Did you restart it in between, I had the same, and forgot to restart hassio.

@legomannetje, Yes I did, twice, running a reboot now just to be sure.

@legomannetje, @alafon, It shows "Enphase Envoy (DEV)" but where do I click next?
Screenshot 2023-07-07 at 20 56 10

If I select ADD Entry and enter all the information, Local IP address, Enlighten credentials, Serial number and check Enlighten. It doesn't work.

Screenshot 2023-07-07 at 20 59 25

@fludo
Copy link

fludo commented Jul 7, 2023

This seems to highly depend on the https://entrez.enphaseenergy.com/ availability....
Capture d'écran 2023-07-07 221747
Capture d'écran 2023-07-07 215650

@thijsdejong
Copy link
Contributor

Going to my envoy url, it looks like they updated the firmware of my envoy to v7...

@rtdegraaf
Copy link

one question for everyone. Could you log in the local envoy web? (http or https://envoy.local/ or local ip)

Because, I only have one time a message the "unsecure connection", but never reach the local web site.

I can do a telnet with 443 or 80 port.

Try another browser, it works for me in chrome but not in Safari for example because Safari does not allow to visit "unsecure websites". It does not trust the self-signed certificate.

@shvirik
Copy link

shvirik commented Jul 8, 2023

one question for everyone. Could you log in the local envoy web? (http or https://envoy.local/ or local ip)
Because, I only have one time a message the "unsecure connection", but never reach the local web site.
I can do a telnet with 443 or 80 port.

Try another browser, it works for me in chrome but not in Safari for example because Safari does not allow to visit "unsecure websites". It does not trust the self-signed certificate.

THX!... in my case I had to restart the envoy ro reach it.

@fludo
Copy link

fludo commented Jul 8, 2023

You should implement API token usage if possible, this will prevent calling enphase entrez.enphaseenergy.com forever.
Plus you may be able to decode expiration from token or implement a simple 6 month-n days warning to renew it.

Edit: after checking my token, it is valid for 365 days to this will have a limited impact to renew it once a year.

Would be very nice to have it (much more than the unexpected update from enphase :-) )

@dschoorisse
Copy link

  • restart the integration setup workflow by entering host-IP/username/password/serial_number and check "Use enlighten" (username and password are your official credentials to access the enlighten portal)

@alafon, What do you mean with this? Everything until this worked. I'm unable to reconfigure the existing integration and when using the add integration option it says that it already exists.

Did you restart it in between, I had the same, and forgot to restart hassio.

@legomannetje, Yes I did, twice, running a reboot now just to be sure.

@legomannetje, @alafon, It shows "Enphase Envoy (DEV)" but where do I click next? Screenshot 2023-07-07 at 20 56 10

If I select ADD Entry and enter all the information, Local IP address, Enlighten credentials, Serial number and check Enlighten. It doesn't work.

Screenshot 2023-07-07 at 20 59 25

This happens to me as well.

@slurpey
Copy link

slurpey commented Jul 8, 2023

Ok, got it to work. So for dummies (like me)

  1. I went to "integrations" and opened the enlighten one, then disabled it.
  2. I went to hacks clicked on Integrations, then on the three ... at the top right, "add custom repository"
  3. I pasted https://github.com/briancmpbll/home_assistant_custom_envoy the selected "integration".
  4. Restart home assistant (full restart)
  5. Went to integrations and went back to "Enphase". I enabled it
  6. Restart home assistant (full restart)
  7. Fuzzed around for 30 minutes having this bloody "Device is already configure" issue - so I rage-deleted the existing entry (under the three dots) ATTENTION: if you rage delete as well... try to note the serial before doing so to avoid searching for it later!
  8. Clicked on "Add Entry" and filled:
    -Host (I found that on my router - it's the IP adress of your Enphase thing)
  • Username - it's an email adress. It's the one you use for the app
  • Password - it's the password for the app
  • Serial Number (Yeah... Had to go to the app under system, then "devices" (my thing is in dutch, it's the last option), then Gateway, and the first number after SN is your serial number
  • Clicked on "Use Enlighten"
  • Voilà!

It seems other before me in this trail were able to do it without deleted the old one. Works. But...
Seems my energy dashboard didn't work so.... Go to "Settings", then "Dashboard", then "Energy", second columns, and reconfigure that.

@SjamonDaal
Copy link

Ok, got it to work. So for dummies (like me)

  1. I went to "integrations" and opened the enlighten one, then disabled it.
  2. I went to hacks clicked on Integrations, then on the three ... at the top right, "add custom repository"
  3. I pasted https://github.com/briancmpbll/home_assistant_custom_envoy the selected "integration".
  4. Restart home assistant (full restart)
  5. Went to integrations and went back to "Enphase". I enabled it
  6. Restart home assistant (full restart)
  7. Fuzzed around for 30 minutes having this bloody "Device is already configure" issue - so I rage-deleted the existing entry (under the three dots) ATTENTION: if you rage delete as well... try to note the serial before doing so to avoid searching for it later!
  8. Clicked on "Add Entry" and filled:
    -Host (I found that on my router - it's the IP adress of your Enphase thing)
  • Username - it's an email adress. It's the one you use for the app
  • Password - it's the password for the app
  • Serial Number (Yeah... Had to go to the app under system, then "devices" (my thing is in dutch, it's the last option), then Gateway, and the first number after SN is your serial number
  • Clicked on "Use Enlighten"
  • Voilà!

It seems other before me in this trail were able to do it without deleted the old one. Works. But... Seems my energy dashboard didn't work so.... Go to "Settings", then "Dashboard", then "Energy", second columns, and reconfigure that.

Thanks! I've also just deleted the old entity. I had to reconfigure the energy dashboard settings as well.

FYI: After deleting the old Envoy integration the energy dashboard doesn't delete historical data about your solar production! 🎉

@arthurpoortman
Copy link

Works perfect, thanks!

@michel130
Copy link

Ok, got it to work. So for dummies (like me)

  1. I went to "integrations" and opened the enlighten one, then disabled it.
  2. I went to hacks clicked on Integrations, then on the three ... at the top right, "add custom repository"
  3. I pasted https://github.com/briancmpbll/home_assistant_custom_envoy the selected "integration".
  4. Restart home assistant (full restart)
  5. Went to integrations and went back to "Enphase". I enabled it
  6. Restart home assistant (full restart)
  7. Fuzzed around for 30 minutes having this bloody "Device is already configure" issue - so I rage-deleted the existing entry (under the three dots) ATTENTION: if you rage delete as well... try to note the serial before doing so to avoid searching for it later!
  8. Clicked on "Add Entry" and filled:
    -Host (I found that on my router - it's the IP adress of your Enphase thing)
  • Username - it's an email adress. It's the one you use for the app
  • Password - it's the password for the app
  • Serial Number (Yeah... Had to go to the app under system, then "devices" (my thing is in dutch, it's the last option), then Gateway, and the first number after SN is your serial number
  • Clicked on "Use Enlighten"
  • Voilà!

It seems other before me in this trail were able to do it without deleted the old one. Works. But... Seems my energy dashboard didn't work so.... Go to "Settings", then "Dashboard", then "Energy", second columns, and reconfigure that.

Thanks, works perfect.

@evharten
Copy link

evharten commented Jul 9, 2023

Sadly no Lifetime production (while this is in the json output), also the whtoday and stuff is now gone, dont see it in the json also (or at least i see it but its 0)

@Steve2017
Copy link

Steve2017 commented Jul 9, 2023

I did find the HACS version (https://github.com/briancmpbll/home_assistant_custom_envoy) did work for a while.

However when my envoy disconnects from Enlighten, it throws HA off - or at least that’s what it looks like. My envoy will go for several hours without phoning home, so both the Enphase web page and HA are out of date.

If I reload the integration it will reconnect, but disconnect within minutes.

Edit: It appears to me that the firmware update has blocked local access and you have to validate through the Enphase/Enlighten website. If that website is down or overloaded (a frequent situation) you lose connection to the Envoy. This has been an issue for more than 18 months as they slowly rolled out the firmware updates and Enphase has shown no inclination to fix the problem by allowing owners the choice of local access or the “more secure” web validation.

@ronajon
Copy link

ronajon commented Jul 9, 2023

with firmware 5.X i could enable / disabled the production of energy with a curl command.
[code]curl -X PUT -H 'Content-Type: application/json' --user 'installer:xxxx' --digest -d "{'length':1,'arr':[1]}" 'http://192.168.110.80/ivp/mod/603980032/mode/power'[/code]

this is not working in v 7.X anymore. is there another way to make an api call to the gateway and enable/disable power production ?

@pavarnos
Copy link

pavarnos commented Jul 10, 2023

Ok, got it to work. So for dummies (like me)

Thanks. That worked for me. I had to delete my old integration (for a v5 enphase) before I could trigger the setup process for the v7.
The dialog box had the expected IP address, username and password fields. There were two unlabelled fields below those: a text field and a checkbox. I guessed that the text field was the serial number. It failed to install if the checkbox was not ticked, worked when the checkbox was ticked. So I hope I haven't agreed to donate my kidneys or something...
I found that renaming a couple of key entities in the new integration reconnected most things back to the way they were before and got most stuff working. The Energy dashboard was a little messed up so it's worth checking there too.

@Phorion89
Copy link

Phorion89 commented Jul 10, 2023

Ok, got it to work. So for dummies (like me)

Thanks. That worked for me. I had to delete my old integration (for a v5 enphase) before I could trigger the setup process for the v7. The dialog box had the expected IP address, username and password fields. There were two unlabelled fields below those: a text field and a checkbox. I guessed that the text field was the serial number. It failed to install if the checkbox was not ticked, worked when the checkbox was ticked. So I hope I haven't agreed to donate my kidneys or something... I found that renaming a couple of key entities in the new integration reconnected most things back to the way they were before and got most stuff working. The Energy dashboard was a little messed up so it's worth checking there too.

Ok, got it to work. So for dummies (like me)

  1. I went to "integrations" and opened the enlighten one, then disabled it.
  2. I went to hacks clicked on Integrations, then on the three ... at the top right, "add custom repository"
  3. I pasted https://github.com/briancmpbll/home_assistant_custom_envoy the selected "integration".
  4. Restart home assistant (full restart)
  5. Went to integrations and went back to "Enphase". I enabled it
  6. Restart home assistant (full restart)
  7. Fuzzed around for 30 minutes having this bloody "Device is already configure" issue - so I rage-deleted the existing entry (under the three dots) ATTENTION: if you rage delete as well... try to note the serial before doing so to avoid searching for it later!
  8. Clicked on "Add Entry" and filled:
    -Host (I found that on my router - it's the IP adress of your Enphase thing)
  • Username - it's an email adress. It's the one you use for the app
  • Password - it's the password for the app
  • Serial Number (Yeah... Had to go to the app under system, then "devices" (my thing is in dutch, it's the last option), then Gateway, and the first number after SN is your serial number
  • Clicked on "Use Enlighten"
  • Voilà!

It seems other before me in this trail were able to do it without deleted the old one. Works. But... Seems my energy dashboard didn't work so.... Go to "Settings", then "Dashboard", then "Energy", second columns, and reconfigure that.

Thanks! I've also just deleted the old entity. I had to reconfigure the energy dashboard settings as well.

FYI: After deleting the old Envoy integration the energy dashboard doesn't delete historical data about your solar production! 🎉

What does deleting the old integration do with historical data? Do you keep all?

@Sillyjan
Copy link

Sadly no Lifetime production (while this is in the json output), also the whtoday and stuff is now gone, dont see it in the json also (or at least i see it but its 0)

I had that as well, but it can be fixed manually by briancmpbll/home_assistant_custom_envoy#88 (comment)

@evharten
Copy link

Sadly no Lifetime production (while this is in the json output), also the whtoday and stuff is now gone, dont see it in the json also (or at least i see it but its 0)

I had that as well, but it can be fixed manually by briancmpbll/home_assistant_custom_envoy#88 (comment)

Sadly that didnt work, i tried yesterday, no data whatsoever

@Sillyjan
Copy link

Sadly no Lifetime production (while this is in the json output), also the whtoday and stuff is now gone, dont see it in the json also (or at least i see it but its 0)

I had that as well, but it can be fixed manually by briancmpbll/home_assistant_custom_envoy#88 (comment)

Sadly that didnt work, i tried yesterday, no data whatsoever

I did the same thing by editing it directly in the /config/custom_components folder and restarting.
This solved it for me and my lifetime production is working again.

@Xocotet
Copy link

Xocotet commented Jul 10, 2023

It only worked for my after removing previous configuration.
I have the feeling this won't be the last time we have to reconfigure this.

@infernix
Copy link
Contributor

For anyone having the "Device is already configured" issue, if you are confident in your abiliities to edit JSON data without making any typos, you can edit your core.config_entries file and update it so that your existing local-access config entry is updated with the expected values for API access in the forked integration.

Old:

      {
        "entry_id": "xxxxxxxxxxxxxxxxxxxxxxxxxx",
        "version": 1,
        "domain": "enphase_envoy",
        "title": "Envoy",
        "data": {
          "host": "1.2.3.4",
          "username": "installer",
          "password": "a1b2c3d",
          "name": "Envoy"
        },
        "options": {},
        "pref_disable_new_entities": false,
        "pref_disable_polling": false,
        "source": "import",
        "unique_id": "xxxxxxxxxxxxx",
        "disabled_by": null
      },

New:

      {
        "entry_id": "xxxxxxxxxxxxxxxxxxxxxxxxxx",
        "version": 1,
        "domain": "enphase_envoy",
        "title": "Envoy",
        "data": {
          "host": "1.2.3.4",
          "username": "[email protected]",
          "password": "your_password",
          "serial": "your_serial",
          "use_enlighten": true,
          "name": "Envoy"
        },
        "options": {},
        "pref_disable_new_entities": false,
        "pref_disable_polling": false,
        "source": "import",
        "unique_id": "xxxxxxxxxxxxx",
        "disabled_by": null
      },

Only edit the section under "data" and make sure "name" is unchanged.

After editing, validate your json with jq, e.g. cat core.config_entries | jq .

@lloydbayley
Copy link

This is what I've been messing about with and it all seems to work locally, so that gives me hope for a fix for this integration as long as Enphase leave the local one alone. I know it seems too good to be true but to programmatically create a token and the ability to send it to the local GW in return for some lovely data is indeed encouraging!

@lloydbayley
Copy link

Also, if anyone is missing the daily total kWh for use with hot water boost or anything, I output to PVOutput, which still works ok, so I just use the PVOutput integration to get the daily total back in for the time-being until some kind person develops a fix.

@Mrsash2020
Copy link

This is what I've been messing about with and it all seems to work locally, so that gives me hope for a fix for this integration as long as Enphase leave the local one alone. I know it seems too good to be true but to programmatically create a token and the ability to send it to the local GW in return for some lovely data is indeed encouraging!

So got my token. Where do I add it?

@jcbdigger
Copy link

I have managed to update to the new Enphase Envoy (DEV) integration and I getting data from my IQ once again. Only problem is that the comsumption data is getting messed up somehow. Things seem OK but at around 8am each day there is an erroneous spike in the consumption data, I have no idea where this is coming from. Here is what I am getting from the Energy Dashboard

image

image

image

But here is the correct data from Enlighten

image

I guess I need to make a change to my config.yaml file, here is what is currently there and was working fine before the update.

template:

  • sensor:
    name: Grid Import Power
    state_class: measurement
    icon: mdi:transmission-tower
    unit_of_measurement: W
    device_class: power
    state: >
    {{ [0, states('sensor.envoy_122151092040_current_power_consumption') | int - states('sensor.envoy_122151092040_current_power_production') | int ] | max }}
  • sensor:
    name: Grid Export Power
    state_class: measurement
    icon: mdi:transmission-tower
    unit_of_measurement: W
    device_class: power
    state: >
    {{ [0, states('sensor.envoy_122151092040_current_power_production') | int - states('sensor.envoy_122151092040_current_power_consumption') | int ] | max }}

sensor:

  • platform: integration
    name: Grid Import Energy
    source: sensor.grid_import_power
    unit_prefix: k
    unit_time: h
    method: left

  • platform: integration
    name: Grid Export Energy
    source: sensor.grid_export_power
    unit_prefix: k
    unit_time: h
    method: left


Any suggestions on what needs to be altered to correct this gratefully recieved.

@lloydbayley
Copy link

This is what I've been messing about with and it all seems to work locally, so that gives me hope for a fix for this integration as long as Enphase leave the local one alone. I know it seems too good to be true but to programmatically create a token and the ability to send it to the local GW in return for some lovely data is indeed encouraging!

So got my token. Where do I add it?

I haven't used the new dev integration, mine was more of a potential-programming/informational post.

@Steve2017
Copy link

For nearly two days I have been getting consistent data using this one:
https://github.com/briancmpbll/home_assistant_custom_envoy/

Prior to that it would disappear for a couple of hours and then come back for a few.

I have also noticed the connection between the Envoy webpage and Enlighten is more consistent. For the first time I have been able to get the "live" data page up in Enlighten Manager. Until yesterday it always timed out. It doesn't give me any more than the Envoy webpage, but suggests maybe Enphase has improved the link.

@bdraco
Copy link
Member

bdraco commented Jul 13, 2023

duplicate of #88983

@bdraco bdraco closed this as completed Jul 13, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Aug 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests