# eWeLink node: Power State (out) just give the statement, no action to switch on/off devices

**URL:** <https://discourse.nodered.org/t/ewelink-node-power-state-out-just-give-the-statement-no-action-to-switch-on-off-devices/40831>\
**Category:** Dashboard\
**Created:** [11 February 2021 16:46 UTC](https://discourse.nodered.org/t/ewelink-node-power-state-out-just-give-the-statement-no-action-to-switch-on-off-devices/40831 "2021-02-11T16:46:48Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jarimentega](https://avatars.discourse-cdn.com/v4/letter/j/9d8465/32.png) [@jarimentega](https://discourse.nodered.org/u/jarimentega)\
**Post date:** [11 February 2021 16:46 UTC](https://discourse.nodered.org/t/ewelink-node-power-state-out-just-give-the-statement-no-action-to-switch-on-off-devices/40831/1 "2021-02-11T16:46:48Z")

</div>

Device: Channel Pam Hidroponik - state "on" in eWeLink app

1st state - inject toggle  
2nd state - inject on  
3rd state - inject off  
nothing change on app and devices

why?

 ![Untitled](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/9/a9145f89943b001ec15e5093085210196d2c0f73.jpeg)

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [11 February 2021 18:01 UTC](https://discourse.nodered.org/t/ewelink-node-power-state-out-just-give-the-statement-no-action-to-switch-on-off-devices/40831/2 "2021-02-11T18:01:52Z")

</div>

There is Two different pwer state blocks. best to use device node for on and off of most sonoff devices.  
[edit] I recall the power state nodes mainly work with the 4 channel/wall switches sonoff devices.

Power state (read) - read the power state of a device  
power state (write) - to set the power state (on off) of a device.  
device - to turn on off a device  
devices - to get state and info of devices.  
event listener - to listen to events from device in real time

This ewelink node and app work best when not registered to same account, set up 2 accounts and share all devices. One for node-red and one for your app.

---

<div class="post-metadata">

**Author:** ![jarimentega](https://avatars.discourse-cdn.com/v4/letter/j/9d8465/32.png) [@jarimentega](https://discourse.nodered.org/u/jarimentega)\
**Post date:** [12 February 2021 11:27 UTC](https://discourse.nodered.org/t/ewelink-node-power-state-out-just-give-the-statement-no-action-to-switch-on-off-devices/40831/3 "2021-02-12T11:27:26Z")

</div>

hi E1cid.. thanks for your fast response...  
i tried to follow ur instruction...  
using 2 different account,  
and use device node,  
then power state (write) to control..  
but the result is same.. i can't switch on/off the ewelink from node red...

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [12 February 2021 11:29 UTC](https://discourse.nodered.org/t/ewelink-node-power-state-out-just-give-the-statement-no-action-to-switch-on-off-devices/40831/4 "2021-02-12T11:29:23Z")

</div>

Then there is an issue with node or you are suppling wrong object to node, supply an example flow. with example object in inject node.

---

<div class="post-metadata">

**Author:** ![jarimentega](https://avatars.discourse-cdn.com/v4/letter/j/9d8465/32.png) [@jarimentega](https://discourse.nodered.org/u/jarimentega)\
**Post date:** [12 February 2021 11:38 UTC](https://discourse.nodered.org/t/ewelink-node-power-state-out-just-give-the-statement-no-action-to-switch-on-off-devices/40831/5 "2021-02-12T11:38:30Z")

</div>

or maybe im using old version of ewelink palette?  
how do i remove the old version and install the new one? it say conflict...

 ![ewe](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/6/b6a323a2ef84e47063d479ceac4ede0e1cb0bdb3.png)

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [12 February 2021 11:39 UTC](https://discourse.nodered.org/t/ewelink-node-power-state-out-just-give-the-statement-no-action-to-switch-on-off-devices/40831/6 "2021-02-12T11:39:39Z")

</div>

you need to remove any nodes being used, before you can remove node.Or using console use npm uninstall. If that fails you would have to go into the nodes module folder and delete ewelink files.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [14 March 2021 11:40 UTC](https://discourse.nodered.org/t/ewelink-node-power-state-out-just-give-the-statement-no-action-to-switch-on-off-devices/40831/7 "2021-03-14T11:40:19Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
