hass-sunpower
hass-sunpower copied to clipboard
Unable to integrate PV Supervisor version 2.2.2, Build 234
Hello, I followed the guide to setup a Raspberry Pi inside of the comm cabinet, however it appears that the PV Supervisor is not compatible with the integration. Below is the setup:
- Home Assistant OS v2022.3.8 running on Raspberry PI 3 Model B v1.2
- Another Raspberry PI 3 Model B v1.2 running Raspberry PI OS Lite with haproxy installed (hostname: sunpowerpi, IP: 192.168.1.5)
I am able to access the PV Supervisor Management Console, below is a screenshot:
When I enter http://sunpowerpi/cgi-bin/dl_cgi?Command=DeviceList
into the browser, I'm presented with an HTML response:
=========EDIT=========
I recently came across a command that pulls all the information given a serial number of the device, however the response is still in an HTML format:
http://sunpowerpi/cgi-bin/dl_cgi?Command=DeviceDetails&SerialNumber=146xxx
When I inspect the page and indent the response for readability, this is what I see:
<div class='accordionItem'>
<h2 id='146xxx' type='WATTNODE'><img/>
<span class='working'>Power Meter 146xxx</span><img/>
<span class='working'>Working</span>
<span class='info'>P0:Modbus Slave ID: 11</span>
<span class='link'></span>
</h2>
<div>
<table>
<tr><td class='working'><b>Last Data:</b>
<span class='DateClass'>2022,07,20,17,27,24</span></td>
<td class='info'><b>CT Scale Factor:</b>
100 </td></tr>
<tr><td class='info'><b>Last Refresh:</b>
<span class='DateClass'>2022,07,20,17,27,38</span></td>
<td class='info'><b>Total Lifetime Energy:</b>
69006.2343 kWh</td></tr>
<tr><td class='info'><b>Model:</b>
WNC-3Y-208-MB</td>
<td class='info'><b>Avg Real Power:</b>
-0.4899 kW</td></tr>
<tr><td class='info'><b>Serial Number:</b>
146xxx</td>
<td class='info'><b>Avg Reactive Power:</b>
-0.2289 kVAR</td></tr>
<tr><td class='info'><b>Software Version:</b>
19</td>
<td class='info'><b>Avg Apparent Power:</b>
0.5408 kVA</td></tr>
<tr><td/>
<td class='info'><b>Avg Power Factor:</b>
-0.9059 </td></tr>
<tr><td/>
<td class='info'><b>Avg AC Frequency:</b>
60.0627 Hz</td></tr>
<tr><td class='MadCow' a='100' b='3' ></td></tr>
</table>
</div></div>
In HomeAssistant, when try to initialize the integration, it doesn't work. I tried providing the hostname and IP address:
- Would it be possible to update the plugin to support this type of response from SunPower Supervisor?
- Has anyone else come across this version of SunPower Supervisor? It appears it was installed all the way back in 2014.
- While browsing the Documentation files, I came across a lot of interesting and potentially useful reference documents:
Here is an example of what the setup looks like on my end, except I don't have the Ethernet adapters: https://us.sunpower.com/how-troubleshoot-icd-sunpower-monitoring-system-sms-2x-pv-supervisor