Options for Sunpower solar integration?

And in case it is helpful to others, here are some notes on how I got the networking side of things working:

Basically I’m using a small travel router to make a bridge between my home Wi-Fi network and the travel router’s LAN port, which connects to the SunPower installer port, with port forwarding for the API requests.

  1. I used a GL-iNet travel router; in my case it’s model GL-MT300N-V2, only around $20 and very compact (it’s also quite useful as a portable VPN solution for travel but that’s another matter).
  2. For initial configuration, I connected my PC to the LAN port of the router and configure as follows. This router has a simplified GUI which allowed me to do all the steps except one (which required the alternate “advanced” LuCI screens).
  3. Connect the Wi-Fi repeater to my internal network (in my case I used a separate SID on my main network with no Internet access and limited access to the rest of my network… this part is optional).
  4. [Update: Step 4 should no longer be necessary as of the GL-iNet firmware version 3.203, should be possible to disable inbound Wi-Fi now] Define an inbound Wi-Fi name/password - technically this WISP/repeater piece shouldn’t be necessary, but with this device I found that it wouldn’t automatically connect the “uplink” Wi-Fi without also having an active downlink. Otherwise I would have disabled inbound Wi-Fi.
  5. Change the LAN IP to 172.27.153.10 (the .10 part can be anything, but not .1 as the SunPower is expected to be at 172.27.153.1)
  6. Firewall: Create a port forwarding rule from WAN port 8080 to 172.27.153.1 port 80. I used port 8080 so that I’d still have access to the router’s admin pages using the default port 80.
  7. Firewall: Enable inbound port 80 (allows router admin from internal network)
  8. Firewall: Enable inbound port 8080 (which was forwarded above to SunPower’s port 80)
  9. Go into Advanced settings (the LuCI screens): Under Network/Firewall, change the zone settings for zone “wan”: Add lan to the “covered networks” list and change “Input” to “Accept”. I don’t understand all of the details here, but my port forwarding didn’t seem to work until I did this.
  10. Mount the router in the SunPower box, plug the power connector to the USB port and the LAN connector to the installer port.
  11. Back on my main router configuration, assign an IP to this travel router (which should be connected via Wi-Fi now).
  12. Configure the SunPower integration (the krbaker/hass-sunpower integration added via HACS) to use my assigned local IP at port 8080 (in my case: 10.10.40.10:8080).
  13. Profit!

Home router (10.x) —Wi-Fi—> Travel Router (10.x:8080) —LAN port—> SunPower (172.27.153.1:80)

Now I can configure the travel router using its 10.x address (if needed), or talk to SunPower using port 8080 on that same address.

2 Likes