New API


Set the power on and off

<p><strong>Brief Description:</strong> </p> <ul> <li> <p>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</p> </li> <li><code>Device type is the deviceType parameter in the interface for obtaining device list.</code></li> <li><code>Noah type devices do not support power on/off settings</code></li> <li><code>Current interface frequency is once every 5 seconds</code></li> </ul> <p><strong>Request URL:</strong> </p> <ul> <li><code>http(s)://openapi.growatt.com/v4/new-api/setOnOrOff</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>0: Shut down, 1: Turn on</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