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

Enphase System, Get backbone app data error: Error: self-signed certificate. Reconnect in 15s #114

Closed
CaptainPic opened this issue Dec 3, 2023 · 56 comments

Comments

@CaptainPic
Copy link

CaptainPic commented Dec 3, 2023

Looked like I was doing everything right to set up this plug in but I get this recurring error when I restart Homebridge.
Enphase System, Get backbone app data error: Error: self-signed certificate. Reconnect in 15s ......
I'm also a bit confused by not seeing the firmware V7.X.X. It's a newly commissioned system in the US using the latest Controller 3 and 5P batteries. The IQ Gateway shows Firmware: D8.2.62 and the IQ system controller 3 is firmware 3.0.5509_rel/3.11 from the Enlighten App. Is there any reason my system should not work with your plug-in?

@grzegorz914
Copy link
Owner

Are you enabled support for Firmware 7.x.x in plugin config?

@grzegorz914
Copy link
Owner

grzegorz914 commented Dec 4, 2023

Try also 7.7.5-beta and let me know

@grzegorz914
Copy link
Owner

Any info?

@CaptainPic
Copy link
Author

CaptainPic commented Dec 6, 2023 via email

@grzegorz914
Copy link
Owner

You need to add the accessory itself to the HomeKit app not the bridge only. In readme is all described what is displayed in native HomeKit app.

@CaptainPic
Copy link
Author

CaptainPic commented Dec 10, 2023 via email

@grzegorz914
Copy link
Owner

First of all if you get error please go to plugin settings advanced settings>>system>>debug and enable this option. After this restart plugin and post the whole log here. Please also post your config without credential data.

@grzegorz914
Copy link
Owner

@CaptainPic
Copy link
Author

CaptainPic commented Jan 9, 2024 via email

@grzegorz914
Copy link
Owner

Where you post the debug log? I need this to check what happens.

@CaptainPic
Copy link
Author

homebridge.log (1).txt.crdownload

Is this the log file that helps?

@grzegorz914
Copy link
Owner

which file

@CaptainPic
Copy link
Author

homebridge.log.txt

I think I attahed it properly this time

@grzegorz914
Copy link
Owner

grzegorz914 commented Jan 10, 2024

To debug my plugin You need go to plugin settings Advanced Settings>>>System>>>Debug enable it restart plugin then send me the log.

@CaptainPic
Copy link
Author

CaptainPic commented Jan 11, 2024 via email

@grzegorz914
Copy link
Owner

You need go to plugin settings not to Homebridge settings.

@CaptainPic
Copy link
Author

CaptainPic commented Jan 12, 2024 via email

@grzegorz914
Copy link
Owner

And, any debug log?

grzegorz914 added a commit that referenced this issue Jan 15, 2024
@grzegorz914
Copy link
Owner

Fixed in 7.9.3

@CaptainPic
Copy link
Author

Thank You! I'm getting the plug-in to work and becoming familiar with the accessories. I do still get the error if I enable the Ensemble Status so I turned that off. I'm thinking that's where the Grid Status switch appears which is really the high order bit in terms of making a decision to start to shed loads. If that's the case I can get the logs there but for now I'm still working through what can be done using Controller for HomeKit. Thanks again - This is probably the most interesting and practical information for automating load shedding when you have a solar/battery system when the utility grid may have issues.

@grzegorz914
Copy link
Owner

Im happy to hear that is working now. If you can post the debug log with enabled ensemble status then will be very helpful for me to fix potentially existed bug.

@CaptainPic
Copy link
Author

CaptainPic commented Feb 7, 2024

Been busy moving in to the new place but got some time to get the debug log when I enable the Ensemble Status and enable Empower Grid State Sensor. Here is the Homebidge and Enphse Plug in log files.

I haven't looked into the Apple Home App of Controller in detail. It looks like I need to re-add the Enphase 80DC accessory in HomeKit as I'm getting No Response - Is that correct that it needs to be removed and re-added when I change the plug in configuration?

I wanted to pass on a couple thoughts and ideas. I see in Controller for HomeKit how to do the automations. My focus is on creating a visual load shedding panel based on some logic on Solar Power and Battery Level in combination with the Grid Status which I'm assuming will be surfaced as a contact sensor from the Envoy detail in Controller.

The other item that would be next high value feature in my mind would be to get information on the nw Enphase IQ EV charger which I have in my system. The first use case for the automation in my mind is just to have a status reminder if the car is not connected in the evening. Perhaps also how much energy the car pulled but the Enphase App has most of the settings to show this information. However it doesn't give me a notification if I forgot to plug the car in!

Thanks for the great work in this area! - If you need anything else let me know.

Jack

log removed due to credentials data

@grzegorz914
Copy link
Owner

grzegorz914 commented Feb 8, 2024

Please install 7.9.8-beta.7and let me know, im fixed ensemble status and more other cases based on Your debug log.
If you get again some error please post the aktual debug again.

P.S. - After configuration change You don't need add the accessory to the HomeKit again, just restart plugin/child bridge. P.S.1 - Only if you get error during first start after config change the accessory will no response.

@grzegorz914 grzegorz914 reopened this Feb 8, 2024
@CaptainPic
Copy link
Author

Still getting the error in the logs. Here is the log using 7.9.8-beta10

Uploading homebridge-enphase-envoy.log (4).txt…

@grzegorz914
Copy link
Owner

grzegorz914 commented Feb 8, 2024

Log not available, please upload again.
Your Envoy uses new firmware which contain many new data and some old data are removed. Based on Your logs I can adapt the plugin to the newest firmware.

@grzegorz914
Copy link
Owner

@CaptainPic please install beta 11 and get me the log again.

@CaptainPic
Copy link
Author

Looks like the plug-in log has no errors using beta 11 based on the fact I'm not seeing anything in red anymore. Here is the log - When I get home later I'll add it to HomeKit.
homebridge-enphase-envoy.log (1).txt

@grzegorz914
Copy link
Owner

Many thanks for your help, 7.10.0 released with all fixes. In your log now is all OK, the accessory can be added to the Home app.

@CaptainPic
Copy link
Author

CaptainPic commented Feb 10, 2024 via email

@grzegorz914
Copy link
Owner

@CaptainPic i don't see any error in log

@grzegorz914
Copy link
Owner

@CaptainPic 7.11.2 released with encharge sensor fix

@CaptainPic
Copy link
Author

CaptainPic commented Feb 10, 2024 via email

@CaptainPic
Copy link
Author

Going to attach the file in Github rather than email - 7.11.5 still giving an error about circular reference
homebridge-enphase-envoy.log (5).txt

@CaptainPic
Copy link
Author

CaptainPic commented Feb 10, 2024 via email

@grzegorz914
Copy link
Owner

Fixed in 7.11.6

@CaptainPic
Copy link
Author

Still seeing errors in 7.11.6. Here's the Enhphase Plug in log
homebridge-enphase-envoy.log (3).txt

@grzegorz914
Copy link
Owner

this fixed in 7.11.7

@CaptainPic
Copy link
Author

CaptainPic commented Feb 11, 2024 via email

@grzegorz914
Copy link
Owner

grzegorz914 commented Feb 11, 2024

Ok, this error fixed in 7.11.10 now should all working correct

@grzegorz914
Copy link
Owner

The grid mode sensors will not working in 7.11.9 because was error, should working correct in 7.11.10. The grid mode sensors need to be first configured in plugin settings.
If you don’t see the accessory in home app to add it try this: https://github.com/grzegorz914/homebridge-enphase-envoy/wiki#troubleshooting

@grzegorz914
Copy link
Owner

@CaptainPic if all working without error please post the debug log, I want to check what new properties are in 8.x.x firmware.

Have You Enphase EV Charger in the system installed?

@CaptainPic
Copy link
Author

CaptainPic commented Feb 12, 2024 via email

@CaptainPic
Copy link
Author

Latest debug log 7.11.10 no errors and bridge / accessories loaded properly

homebridge-enphase-envoy.log (6).txt

@grzegorz914
Copy link
Owner

Try to configure sensors as below:

 "enchargeGridModeSensors": [
 {
      "name": "Grid OFF",
      "gridMode": "off-grid",
      "mode": true
 },
{
      "name": "Multimode On Grid",
      "gridMode": "multimode-ongrid",
      "mode": true
    }
  ],
  "solarGridModeSensors": [
    {
      "name": "Off Grid",
      "gridMode": "off-grid",
      "mode": true
    }
  ]

switch device to grid off and after 5 min get the debug log.

@CaptainPic
Copy link
Author

CaptainPic commented Feb 12, 2024 via email

@grzegorz914
Copy link
Owner

grzegorz914 commented Feb 12, 2024

just use UX, is simply and safe

@CaptainPic
Copy link
Author

CaptainPic commented Feb 12, 2024 via email

@grzegorz914
Copy link
Owner

set to grid off

@CaptainPic
Copy link
Author

CaptainPic commented Feb 12, 2024 via email

@CaptainPic
Copy link
Author

Debug log after going off grid for about 5-6 minutes

homebridge-enphase-envoy.log (7).txt

@grzegorz914
Copy link
Owner

grzegorz914 commented Feb 12, 2024

nice, as you see your device report multimode-offgrid and multimode-ongrid

"Enchg_grid_mode": "multimode-offgrid",
"Solar_grid_mode": "multimode-offgrid"

I suggest You to create two sensors for encharge and solar like bottom, in this case the sensors will fired if go to grid off or on

"enchargeGridModeSensors": [
{
     "name": "Multimode Grid OFF",
     "gridMode": "multimode-offgrid",
     "mode": true
},
{
     "name": "Multimode Grid On",
     "gridMode": "multimode-ongrid",
     "mode": true
   }
 ],
 "solarGridModeSensors": [
   {
     "name": "Multimode Grid OFF",
     "gridMode": "multimode-offgrid",
     "mode": true
},
{
     "name": "Multimode Grid On",
     "gridMode": "multimode-ongrid",
     "mode": true
   }
 ]

@CaptainPic
Copy link
Author

CaptainPic commented Feb 12, 2024 via email

@grzegorz914
Copy link
Owner

grzegorz914 commented Feb 12, 2024

I have published 7.11.11 with some fixes and improvements.
I don’t see your screenshots.
The sensors fired if your installation go to selected mode, for example:
If You create sensor Multimode Grid Off then will be fired if your Installation go to Off Grid.
If You create sensor Multimode Grid On then will be fired if your Installation go to On Grid.

@CaptainPic
Copy link
Author

7.11.11 looks good - don't see anything red indicating an error in the logs

Let me see if I can add the screen shots here.

I added two Empower Grid Multimode Grid Sensors for ON and OFF and took the system off grid twice today once when running minimal loads and later with about 8KW of power consumed. Looks like the Power Level Sensor which I set at 4KW is also working fine.

All Three of the sets of Mulitmode Grid Sensors (Empower, Encharge and Solar) show triggered for Grid ON when the system is connected and the Grid OFFs show as not triggered when the grid I on. They all flip appropriately when I take the Enphase system off grid. Seems like about a 30 second to minute delay at most.

Since all 6 of these sensors (3 pairs) have similar state changes, it appears that I can use any of the Multimode sensors to determine if the system is off grid and therefore indicative of a power outage (assuming I'm not manually manipulating it). Is there a reason why I should prefer to use one or the other sensors I set up under the Empower, Encharge or Solar tabs in the UX configuration? I'm thinking the Empower Sensor makes the most sense since the public grid status isn't specific to the batteries (Encharge) or Solar aspects of the Enhpase system. Enphase terminology is a bit confusing here and I don't think they use Encharge anymore to refer to batteries.

I tried to attach the picture of the three sets of grid sensors when grid was on and off

BTW, Did you know you can ask Siri to get the status of the Enphase System with these accessories? Using a Personal Shortcut have her tell you the the correct name instead of calling everything lightbulbs and contact sensors. Controller may help but since I see formatting this into an apple intercom response probably don't need controller to do this.

IMG_0590
IMG_0601
IMG_0600

@grzegorz914
Copy link
Owner

grzegorz914 commented Feb 13, 2024

Im happy that all working fine now.
I have add all possible sensors for Empower, Encharge, Solar, because we can have different configurations of our PV systems and not all have Empower installed.
You can use only one of available sensors to identify the grid state. All sensor will always report same mode.

I see now the screenshots.
If You find any problems please report it as new issue.

Im use Encharge terminology for Battery because is used in the internal api and the old Battery was named AC Battery.

@grzegorz914
Copy link
Owner

grzegorz914 commented Feb 13, 2024

in 7.12.0 beta I have reduced the refresh time for grid mode sensor, it will by more quickly react on changes.

P.S. - the refresh time can be set in ensemble settings in latest beta

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants