# Node-red-contrib-ewelink not switching

**URL:** https://discourse.nodered.org/t/node-red-contrib-ewelink-not-switching/35150
**Category:** Hardware
**Created:** [1 November 2020 08:26 UTC](https://discourse.nodered.org/t/node-red-contrib-ewelink-not-switching/35150 "2020-11-01T08:26:06Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![1101101011011110](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/1101101011011110/32/34845_2.png) [@1101101011011110](https://discourse.nodered.org/u/1101101011011110)
#### Post date: [1 November 2020 08:26 UTC](https://discourse.nodered.org/t/node-red-contrib-ewelink-not-switching/35150/1 "2020-11-01T08:26:06Z")

</div>

Hi, I'm using Sonoff Basic with node-red-contrib-ewelink on Raspberry PI. I can read status (and temperature from Sonoff TH16) but I cannot change status.  
When I send the command I get the message:  
`{"status":"ok","state":"on"}`  
but when I read it immediatly after I get:  
`{"status":"ok","state":"off"}`  
and nothing happens to the switch itself.  
From the same RPi, the ewelink-api is working correctly.  
Any help?

---

<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: [1 November 2020 08:38 UTC](https://discourse.nodered.org/t/node-red-contrib-ewelink-not-switching/35150/2 "2020-11-01T08:38:35Z")

</div>

Sonoff have messed with the API, and it looks like only paid accounts can action events. I work around it using alexa remote2.

edit/  
So the js api has been updated and ewelink must still be using the old api. the developer will have to update the node.. Have you raised an issue on his github?

---

<div class="post-metadata">

### Author: ![funhall](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/funhall/32/36062_2.png) [@funhall](https://discourse.nodered.org/u/funhall)
#### Post date: [6 November 2020 16:23 UTC](https://discourse.nodered.org/t/node-red-contrib-ewelink-not-switching/35150/3 "2020-11-06T16:23:33Z")

</div>

Have anyone solved this issue????

---

<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: [5 January 2021 16:23 UTC](https://discourse.nodered.org/t/node-red-contrib-ewelink-not-switching/35150/4 "2021-01-05T16:23:33Z")

</div>

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