Options for Sunpower solar integration?

I have a PVS6 system (which has all of the ethernet ports) installed a few months ago. I just followed the steps in the PDF guide and installed an RPi Zero 2 W that’s assigned a static IP of 192.168.1.11. Interestingly, when I go to 192.168.1.11/cgi-bin/dl_cgi?Command=DeviceList, everything is working and I see all my devices. However, when I try going to 192.168.1.11 or 1.2.168.1.11:80, I get a 403 Forbidden error.

I thought this may have been an error with how I setup HA proxy, so I tried connecting my laptop to the PVS6 WiFi, however I see the same 403 Forbidden page when navigating to http://sunpowerconsole.com/, http://www.sunpowerconsole.com/, and 172.27.152.1. I also verified that 172.27.152.1 is the correct IP address for the unit and power cycled the PVS6 unit by flipping the breaker that connects to it. Anyone experiencing a similar issue and/or have any ideas of what may be going on here?

I have the same “issue”. My PVS6 stopped reporting to the cloud over the summer however the API never stopped working so HA had all the data and I knew the system was working. The installer came out and fixed the issue, I assume with a software update as I tried everything imaginable on my end. That’s when I noticed the console page stopped loading.

The issue came back a month later and I never bothered to report it this time, the installer still insisted on coming out to fix the issue, again I assume a software update took place and the console page is still 403.

I don’t think it much matters as long as HA can pull the data, it’s not like there’s much you can do on that page. My guess is they don’t want non-installers having access to it at all.

I sort of figured my system stopped reporting due to me being connected to the service port and that possibly keeping the PVS6 from automatically applying software updates. I’m curious if anyone can speak to this?

I was trying to add the RPi to the integration last night but kept getting a “Cannot Connect” error so I assumed it was because of the 403 Forbidden page that I was seeing. However, this morning I just re-tried and it decided to work. Not sure what changed (other than the fact that my panels were started to produce power), but hopefully it’s all good now!

It’s so annoying that we have to jump through hoops and backdoors just to get this data working though. I hope they don’t push an update in the future and disable the API unless you’re using the Sunpower installer app or something.

I’ve wondered the same; my PVS6 is now on its third episode of ‘no cloud reporting’ and I’ve stopped caring. In my case I have an unusual home network with redundant routers and I’ve noticed that the reporting failures started after the routers switched roles, and assumed the IP stack in the PVS6 is just crap :slight_smile: Still, power-cycling it does not cure the problem.

In addition, the cellular backup system doesn’t work on my PVS6 because it’s on the AT&T network and there is nearly no coverage from that network at my house, which meant the last tech who came out had to spend a lot of extra time getting a software update applied.

Had the same problem in November 2
The cloud app was not working
I noticed my intergration was not get data. I restarted the pie and it started working. But the API still was not working. It was connected to my WiFi but not getting data.
I powered down the sunpower system to reset but still no go. it had one day it reported some data for a couple hours.

Called sunpower they said they can’t help and for me call the contractor. They came out first week of December did something and it’s working again but historical data is gone from API for the 6 weeks it was down
I lost some history on the intergration for the few days before I noticed it was not working.

I was not here when they came.
But Barbara said the tech said it was a software issue and database to large or something like that.


So is this from a update?
Or is the intergration and being connected to installer port causing issues during updates?

I’ve been looking at making an integration that just queries the sunpower website.

I’ve determined it logs in with okta, then makes queries with graphql. Unfortunately, I know neither, so it’s going to be a big learning curve.

And I’ve been sidetracked with other projects, too :weary:

1 Like

Personally, I would avoid grabbing data from the web. I have issues where the PVS6 is simply missing the data. Multiple times a day, sometimes in excess of 10m the power data is just gone. The Energy data is then incorrect and cannot be relied upon. They have told me database issues, replaced the pVS6, network, etc. I am dealing with executive escalations now. I paid to have my data and I want all of it, 99.9999%. I am holding them to the same standards that my customers hold me to. I certainly didn’t pay $38k for missing data.

1 Like

We aren’t really monitoring their device. We are grubbing the same data that their website offers. You are plugging an ethernet cable into an existing port, to pull data. You are displaying the same data in a different view. It is 100% YOUR data. You are not voiding the warranty.

I’ve been searching around and haven’t been able to find an answer to this. I have a Sunpower system with a PVS6; during installation I requested that they connect via a hard wire to my existing router vs wifi, which they did. So I have a hard line running from the PVS6 to the wifi router in my living room.

I can’t actually figure out how to open the damn box to take a look, so I’m not sure, but I assume that inside the PVS6 box they have a USB-ethernet adapter connected to the PVS6, and the ethernet cable plugged into that on their end.

So if I want to set up an integration, am I right in thinking I should set up a basic travel router in my living room, bridge it to my existing wifi router, and plug the PVS6 into that instead? Or is there a simpler way that I’m just not seeing – I am running an ASUS RT-AX86U router with Merlin installed, so maybe there’s some kind of software solution in the router itself I could use?

You’ll need a second compatible usb to ethernet dongle as well as an additional ethernet cable run to the pvs6 to use the travel router. Alternatively you could use the cable that is there now and connect that to the other USB port and connect the PVS6 to your network with wifi.

The api is only accessible on the service port, not the port usb to provide it access to the internet.

That’s how I have mine connected, two ethernet cables come into the house connected to 2 different dongles, one provides internet access through my router and the other goes to a spare router I use to bridge the network the PVS6 puts out and my own network.

You can open the PVS6 with a key or screw driver fairly easily. There’s a tab on the bottom you pry to pop the cover off. My installers had apparently never seen the version with USB ports before and tried connecting the ethernet cable directly to the built in ethernet ports. This did nothing and they eventually gave up and asked for my wifi password. If your installer ever asked for your wifi, chances are it’s already connected to your network via wifi. I don’t believe USB dongles are part of the install kit so I’d be surprised if they just happened to have one.

2 Likes

Okay, this makes things much clearer. It’s raining, but after it clears up I’ll take a look in the box; I assume I have the model w/o ethernet ports, but WAN and LAN USB ports instead. So presumably then, the installers have the hard line connected from the WAN port to my home wifi router, and I should still be able to tap into the LAN port with a travel router. So basically the same setup as typically recommended, just with an extra wire in the enclosure for the hard line into my house.

Thank you! I’ll update if I find anything weird once I get the case open.

Anyone have configuration steps for EdgeOS, I have an ERLite-3 so it has an extra eth port. I’m trying to connect the PVS6 directly to eth2. I was able to manually configure eth2 with 172.27.153.2/24 and using the CLI within edgeOS I can ping and curl 172.27.153.1. Next I tried moving to a PC on my local network to ping 172.27.153.1 but it doesn’t work. I tried a few DNAT rules and then tried using a VLAN but I haven’t figured either out yet.

Figured it out see below comment.

Here are instructions for anyone using a router running EdgeOS and just wants to plug the PVS directly into one of the unused eth ports.

  • Plug in PVS to unused eth port (I used eth2)
  • On dashboard page config eth2. Pick Manually defined IP address and use 172.27.153.254/24
  • At this point you should be able to open the CLI in EdgeOS and ping 172.27.153.1
  • On Firewall/NAT → NAT tab create a new source NAT rule. Outbound interface is eth2. Select Use Masquerade. Click Save.
  • Now from a PC on your primary local network you should be able to curl http://172.27.153.1/cgi-bin/dl_cgi?Command=DeviceList

I just wanted to thank everyone in here for all your help, advice, and hard work getting all this together!

I finally got all the parts (most of which I ended up not needing) and cracked my PVS6 enclosure to plug everything in. Data is humming along beautifully, just need now to set up all the integrations/visualizations and automations.

@Keith_Baker also, your integration is incredible! (also, if there’s a way I can support the repository, buy you a coffee/beer/tea/pizza/whatever…)

Would it be possible to see the port profile settings? I’m in the process of setting this up.

So far i’ve created the VLAN(2) with a host address of 172.27.153.50/24 and disabled DHCP.

I’ve also using the LAN2 port on the PSV6 which i’ve confirmed is the 172.27.153.x range ( i used an old router i had in AP mode and connected to its wifi.) connected to my UDMSE on port1. I’ve created a new Ethernet Port Profile that uses the VLAN i created and allowed all Tagged VLAN management and set everything else to auto.

I do see a device on that port with a macID that corresponds to the PSV6. Its registers on the ip address 172.27.153.1, but when i try to use my computer which is on the default VLAN(1) of 192.168.0.1 and try to ping 172.27.153.1 i get nothing but timeouts.

Not sure if i’m doing something wrong like the Port Profile being wrong. or do i need to do a reroute somewhere for the host file. I’m relatively decently versed at networking but VLANs are probably the last bastion that i suck at.

Thanks in advanced…

Ended up just using a Pi zero 2w as mentioned in one of the how to’s.

i’ll figure out the networking thing another day lols.

Also for those looking to get energy stats out of HA from sunpower. I managed to link everything from the sunpower sensors and have everything report correctly on the Energy dashboard. You do have to create some templates in order to get some values required. But if anyone needs it i can post here.

Also with those extra templates I managed to create some other items. I have a card for current load draw.
image

Also another one for Lifetime KWH from solar, grid, and home
image

These utilize the Power flow card plus and Energy flow card plus HACS plugins

I’d appreciate your templates as I often struggle to get those set up correctly.

Hardware confirmation
I believe you’re now running an Ethernet cable to the yellow jack on the PVS6 for their internet reporting needs. Then a second Ethernet cable connected to the black jack on the PVS6 and into your Pi Zero. May I presume your Pi is powered from one of the USB ports inside the PVS6?.

Issues?
I’m having a lot of problems with my PVS6 going offline over the past year and would love to connect it to HA for more rapid error monitoring. But before doing so I’d wanted to double check that the integration isn’t causing adverse effects to anyone else here. Have you found any issues with your PVS6 going offline to SunPower, stop reporting data to them or any other issues?

My PVS6 stops reporting to Sunpower and I’ve given up getting it ‘fixed’ as it fails again within a couple of months. I have no way to know whether using the ‘API’ connection is the cause of this as I’ve been using the API connection since day 2 and it has given me all of the data I want (stored locally, not in Sunpower’s cloud service).

The last time a tech came out they realized that AT&T mobile network service (what the PVS6 uses as ‘backup’ connectivity) is terrible at my house, so if for any reason the PVS decides to stop using the Ethernet WAN connection it can’t connect at all.

Mine did not report for a month st beginning of year.
Called sunpower
They said to call contractor
Contractor said to call sunpower.
Then a tech showed up
Reset something then started working
The HA intergration just kept going

integration has been running pretty smoothly for the most part… i haven’t had any issues with reporting…

though quick question for those that do have reporting working and consistent. do you guys check against what the power company bills you?

i just check last month’s bill and while it reports the amount of power i pulled from the grid spot on… (bill says 340… vs HA saying 340.5) the amount of power i sent back to the grid is pretty off… ( bill says i sent 199 back while HA says 223)…

I’m kinda confused. but this is the first month i actually have a full month of reporting… last month i had about 15 days worth of reporting since it was activated mid month and it was off in the other direction… ( bill says i sent 115 but HA reports i sent back only 104.)

just curious as to what people have encountered…