UNPKG

node-red-contrib-superpower-smart-test

Version:

Node-RED integration with eWeLink Cube

45 lines (32 loc) 743 B
<script type="text/markdown" data-help-name="control-device"> A Node to control devices. ### Configuration * Name-Node name * Server-Server node * Type-Device type * Device-Device name * Behavior-Device behavior ### Input If using customized payload, then the payload should in JSON format and containing device state info. Please refer to [docs](https://ewelink.cc/ewelink-cube/introduce-open-api/document/) for more device capabilities. Example: ```javascript { "state": { "power": { "powerState": "on" } } } ``` ## Output Output device control result. Example: ``` javascript { "error":0, "data":{}, "message":"success" } ``` </script>