New API


Set the active power

<p><strong>Brief Description:</strong> </p> <ul> <li>Set the active power percentage of the device based on the device type and SN of the device, and the data returned by the interface only returns the device setting result for which the key token has permission to access, and the device without permission will not be set and will not return the result</li> <li>'Device Type' is the deviceType parameter in the API for obtaining the device list. `</li> <li>'Current interface frequency 5S once'</li> </ul> <p><strong>Request URL:</strong> </p> <ul> <li><code>http(s)://openapi.growatt.com/v4/new-api/setPower</code></li> </ul> <p><strong>Request method:</strong></p> <ul> <li>POST </li> </ul> <p><strong>Content-Type:</strong></p> <ul> <li>application/x-www-form-urlencoded </li> </ul> <p>Http Header Parameters and Description: </p> <table> <thead> <tr> <th style="text-align: left;">Parameter Name</th> <th style="text-align: left;">Required</th> <th style="text-align: left;">Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">token</td> <td style="text-align: left;">Yes</td> <td style="text-align: left;">String</td> <td>keytoken</td> </tr> </tbody> </table> <p>Http body parameters and description: </p> <table> <thead> <tr> <th style="text-align: left;">Parameter Name</th> <th style="text-align: left;">Required</th> <th style="text-align: left;">Type</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">deviceSn</td> <td style="text-align: left;">is</td> <td style="text-align: left;">string</td> <td>device SN, example: xxxxxxx</td> </tr> <tr> <td style="text-align: left;">deviceType</td> <td style="text-align: left;">yes</td> <td style="text-align: left;">string</td> <td>[Equipment type](<a href="https://www.showdoc.com.cn/p/e9f6e73f251e6364fe1d43e9d4cc1eec">https://www.showdoc.com.cn/p/e9f6e73f251e6364fe1d43e9d4cc1eec</a> &quot;Equipment type&quot;)</td> </tr> <tr> <td style="text-align: left;">value</td> <td style="text-align: left;">yes</td> <td style="text-align: left;">int</td> <td>Percentage of active power, range 0-100, example: 25. Note: NOAH device type is set to power (range 0-800W, unit W)</td> </tr> </tbody> </table> <p><strong>Call Example</strong></p> <pre><code>{ &amp;quot;deviceSn&amp;quot;: &amp;quot;FDCJQ00003&amp;quot;, &amp;quot;deviceType&amp;quot;: &amp;quot;noah&amp;quot;, &amp;quot;value&amp;quot;: &amp;quot;25&amp;quot; }</code></pre> <p><strong>Example of Return</strong></p> <p>The setup was successful</p> <pre><code> {     &amp;quot;code&amp;quot;: 0,     &amp;quot;data&amp;quot;: null,     &amp;quot;message&amp;quot;: &amp;quot;PARAMETER_SETTING_SUCCESSFUL&amp;quot; }</code></pre>

页面列表

ITEM_HTML