hass-sunpower icon indicating copy to clipboard operation
hass-sunpower copied to clipboard

Unable to integrate PV Supervisor version 2.2.2, Build 234

Open meanhacker opened this issue 2 years ago • 22 comments

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:

SunPower Console

When I enter http://sunpowerpi/cgi-bin/dl_cgi?Command=DeviceList into the browser, I'm presented with an HTML response:

SunPower 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

image

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&nbsp;Data:</b>&nbsp;
		<span class='DateClass'>2022,07,20,17,27,24</span></td>
	<td class='info'><b>CT&nbsp;Scale&nbsp;Factor:</b>&nbsp;
		100&nbsp;&nbsp;</td></tr>
	<tr><td class='info'><b>Last&nbsp;Refresh:</b>&nbsp;
		<span class='DateClass'>2022,07,20,17,27,38</span></td>
	<td class='info'><b>Total&nbsp;Lifetime&nbsp;Energy:</b>&nbsp;
		69006.2343&nbsp;&nbsp;kWh</td></tr>
	<tr><td class='info'><b>Model:</b>&nbsp;
		WNC-3Y-208-MB</td>
	<td class='info'><b>Avg&nbsp;Real&nbsp;Power:</b>&nbsp;
		-0.4899&nbsp;&nbsp;kW</td></tr>
	<tr><td class='info'><b>Serial&nbsp;Number:</b>&nbsp;
		146xxx</td>
	<td class='info'><b>Avg&nbsp;Reactive&nbsp;Power:</b>&nbsp;
		-0.2289&nbsp;&nbsp;kVAR</td></tr>
	<tr><td class='info'><b>Software&nbsp;Version:</b>&nbsp;
		19</td>
	<td class='info'><b>Avg&nbsp;Apparent&nbsp;Power:</b>&nbsp;
		0.5408&nbsp;&nbsp;kVA</td></tr>
	<tr><td/>
	<td class='info'><b>Avg&nbsp;Power&nbsp;Factor:</b>&nbsp;
		-0.9059&nbsp;&nbsp;</td></tr>
	<tr><td/>
	<td class='info'><b>Avg&nbsp;AC&nbsp;Frequency:</b>&nbsp;
		60.0627&nbsp;&nbsp;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:

HomeAssistant Cannot Connect

  1. Would it be possible to update the plugin to support this type of response from SunPower Supervisor?
  2. Has anyone else come across this version of SunPower Supervisor? It appears it was installed all the way back in 2014.
  3. While browsing the Documentation files, I came across a lot of interesting and potentially useful reference documents:

SunPower Documentation

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

meanhacker avatar Apr 03 '22 09:04 meanhacker