vincentwolsink / home_assistant_enphase_envoy_installer

This is a HACS custom integration for Enphase Envoys with firmware version 7 and up.
Apache License 2.0
61 stars 12 forks source link

[BUG] Production switch not working #20

Closed Neowam closed 1 year ago

Neowam commented 1 year ago

Today it was a negative price in the Netherlands, so I wanted to switch off the production. Unfortunately, the switch was going on again.

Account type Installer

Envoy Metered

FW version:D7.0.88 Amount of micro inverters connected: 15

Home Assistant Version: 2023.6.3

image

vincentwolsink commented 1 year ago

Hi @Neowam, try to restart the Envoy and switch again. If it doesn’t work please check the Home Assistant error log for related error messages.

Neowam commented 1 year ago

Hi @vincentwolsink

This happens after restarting my Home Assistant and Enphase installation

image

image

It's not more available for some kind of reason. Due firmware upgrade maybe on the Enphase side?

evanlaar01 commented 1 year ago

Same issue. Only the Production is available.

Enphase3

vincentwolsink commented 1 year ago

@evanlaar01 Since the sensors are there, were they available before? What changed? Which firmware are you on?

evanlaar01 commented 1 year ago

@evanlaar01 Since the sensors are there, were they available before? What changed? Which firmware are you on?

Sensors worked until July 1st about 23:22 I can see in the log from a sensor. Home Assistant 2023.6.3 Supervisor 2023.06.4 Operating System 10.3 Frontend 20230608.0 - latest

Envoy-S-Metered-EU Softwareversie 7.6.175

In my opinion, nothing changed in Home Assistant, no restart or something else.

Enphase4

vincentwolsink commented 1 year ago

Try restarting your Envoy. If it doesn't work please enable debug logging for the integration and send me the output @evanlaar01 @Neowam

evanlaar01 commented 1 year ago

Try restarting your Envoy. If it doesn't work please enable debug logging for the integration and send me the output @evanlaar01 @Neowam I've restarted the integration with debug logging. No difference. I've removed the serial and the token in the text file. Thanks for helping

DebuglogEnphase.txt

vincentwolsink commented 1 year ago

@evanlaar01 It seems an supposedly authentication bug present in earlier firmwares now made it to the newest Envoy firmware. You did restart the Envoy device itself too right?

Do you have a true installer account or a DIY/DHZ one?

evanlaar01 commented 1 year ago

@evanlaar01 It seems an supposedly authentication bug present in earlier firmwares now made it to the newest Envoy firmware. You did restart the Envoy device itself too right?

Do you have a true installer account or a DIY/DHZ one?

Yesterday I've restarted the whole device, power off the gateway, all leds down, wait for a while and power on again. The debug log is only from reload the integration, I'm not at home so I've remotely reload the integration with debug log enabled. I'm not sure but I think I've a DIY/DHZ account, not a true installer.

luuksommers commented 1 year ago

For me a new FW version rolled out on sunday evening:

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

Previously I was able to go to the web interface and get into the installer page, but not I get an unauthorized message. Even the web interface of the envoy is broken with this update:

image

vincentwolsink commented 1 year ago

Thanks to @mnederlof there is a possible fix. Please try 0.2.2-beta1

Neowam commented 1 year ago

I have installed the latest bèta but it still does not work. Production Switch is still greyed out (entiteit niet beschikbaar)

vincentwolsink commented 1 year ago

Hi @Neowam, is it just the switch that is not working or also most of the other sensors for the inverters?

Neowam commented 1 year ago

A lot does not available from now on (since this latest beta version):

image

image

image

Only those are working

image

vincentwolsink commented 1 year ago

Can you please completely uninstall the integration, reinstall and see if it works. If not, please enable debug mode and send the logs (as an attachment). Thanks.

Neowam commented 1 year ago

I re-instaled, only have the basis functionality back, all other sensor information is gone:

image

Inverter (had many more before): image

image

vincentwolsink commented 1 year ago

@Neowam You have to change your password. It was in plaintext in the log unfortunatly. The log with the username/password redacted: home-assistant_enphase_envoy_2023-07-05T15-43-24.598Z.log

@mnederlof It seems to follow your new flow, but still returns a 401?

Neowam commented 1 year ago

Thank you Vincent! Weird that my complete mail and password are in the logging file. I changed my password.

mnederlof commented 1 year ago

@mnederlof It seems to follow your new flow, but still returns a 401?

The big question i think it, are you able to toggle the "Production Power Enabled" switch in the envoy-ui? You can find it in the homepage of the Installer Login

https://envoy.local/installer/setup/home image

If you don't have access using the envoy ui, you won't have access using the HA plugin. (and need to contact Enphase support about your account (and which permissions it has)

mnederlof commented 1 year ago

it also explains why you don't have any other metrics; you need to use the installer or DHZ/DIY account

Neowam commented 1 year ago

I don't see SYSTEM. I have this:

image

Weird that I could see all inverter info and had the production switch till last sunday in HA.

Neowam commented 1 year ago

How do I get this installer / DHZ/DIY account?

vincentwolsink commented 1 year ago

@Neowam Don't forget to click the Installer login button at the bottom of the page after logging in. Because the login will redirect you to the default homepage.

Neowam commented 1 year ago

Then I get this error:

401 Authorization Required

Redirecting to https://envoy.local/home

I am already contacting support. Something really wrong with my configuration since last firmware update Sunday.

vincentwolsink commented 1 year ago

Ok, then it seems you somehow lost your DHZ/installer access 🤷‍♂️

Neowam commented 1 year ago

Ok, then it seems you somehow lost your DHZ/installer access 🤷‍♂️

Indeed! Some weird problem.

Neowam commented 1 year ago

Got this info from support

For installer log in access, you have to complete an upgradation program. I can share the procedure for that.

Then I get access to the installer login page.

Neowam commented 1 year ago

To upgrade my Enlighten account to Installer access costs me 9,95 per month! or Life time for 249 EUR.

Did you both this too? I have now MyEnphase. It will be then upgraded to Enlighten Manager.

vincentwolsink commented 1 year ago

I have an installer account for free, but I found a support page about this: https://support.enphase.com/s/article/Upgrade-for-per-module-power-playback-and-alerts-through-Enlighten-Manager

mnederlof commented 1 year ago

No i did not do this. i just signed up as do it yourself user option on https://enlighten.enphaseenergy.com/manager/registration

vincentwolsink commented 1 year ago

Probably they are misunderstanding your request @Neowam. I know a lot of people got their homeowner account upgraded to DIY/DHZ via support for free.

vincentwolsink commented 1 year ago

@luuksommers Did you also lose your DIY access on the Envoy itself?

Neowam commented 1 year ago

I just got have a long chat with support, I hope finally understanding my problem. Will give you an update soon with their answer. They are investigation now the problem why my access is gone since last sunday.

@vincentwolsink send you invite using LinkedIn ;-)

luuksommers commented 1 year ago

@luuksommers Did you also lose your DIY access on the Envoy itself?

Yes, I'm only a home-owner, never had an Installer / DHZ account, but I had access to the Installer pages. I think there was a bug in the envoy firmware which was patched sunday evening with v7.6.175. I also had a chat with envoy, with the same reaction as @Neowam, allthough I don't think they will "fix" it.

luuksommers commented 1 year ago

Called with support, they will get back to me within 1 or 2 days. I told them I had access to the installer pages, but since the update I haven't, so I requested DIY account, but he needed approval from someone.

bes-r commented 1 year ago

Hi,

I was a kind of busy and didn't check HA. Checking the status of my system. They gave me also an update to 7.6.175.

My system has the same issues. I'm short in time this period, but will also try to contact Enphase.

catsmanac commented 1 year ago

Same here, got D7.6.175 overnight. Before all devstatus was showing, now not anymore. Just have homeowner account.

It was using stored token, Got 401 on first production.json access, did the session cookie capture and continued. When getting devstatus it reported 401 again, tried cookies refresh twice, then fetched enphase token with local secret. Then however it reported exact same expiration time for the token as the one used before. Next it got 401 again on devstatus. Yep I have owner and not DIY account.

catsmanac commented 1 year ago

Can we add a configuration option like 'use Owner account only' that will skip collecting the devstatus and production switch? When set it will avoid all the Install/DIY token logic and not cause unneeded collections and token refreshes on the envoy while enjoying the other features of this integration. (when testing this on my dev system my production one got all 503's) (PR #25 is adding logic for configuration options already)

evanlaar01 commented 1 year ago

I've updated the envoy-plugin in the Hacs page. The information as temperatur, voltage, etc, are back ,thanks! The switch for disable the panels is not grayed out anymore but not tested yet.

fnxpt commented 1 year ago

Not sure if it happens to someone else, whenever I disable the power and then try to reconnect the inverts don't start producing energy

Screenshot 2023-07-11 at 19 37 19
evanlaar01 commented 1 year ago

Not sure if it happens to someone else, whenever I disable the power and then try to reconnect the inverts don't start producing energy Screenshot 2023-07-11 at 19 37 19

It can take 30 minutes before it producing power again after the switch.