# Put-device-state node is not listing devices

**URL:** <https://forum.ewelink.cc/t/put-device-state-node-is-not-listing-devices/18519>\
**Category:** eWeLink CUBE\
**Created:** [June 6, 2023, 3:49pm UTC](https://forum.ewelink.cc/t/put-device-state-node-is-not-listing-devices/18519 "2023-06-06T15:49:55Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![christiansbalz](https://avatars.discourse-cdn.com/v4/letter/c/6f9a4e/32.png) [@christiansbalz](https://forum.ewelink.cc/u/christiansbalz)\
**Post date:** [June 6, 2023, 3:49pm UTC](https://forum.ewelink.cc/t/put-device-state-node-is-not-listing-devices/18519/1 "2023-06-06T15:49:56Z")

</div>

Other nodes like device-control work fine, but not put-device-state

![put-device-state-1](https://europe1.discourse-cdn.com/flex005/uploads/ewelinkforum/original/2X/6/69197eeffcb0a7f6c99d3d89c25e051a50f42a52.png)

![put-device-state-2](https://europe1.discourse-cdn.com/flex005/uploads/ewelinkforum/original/2X/1/1ad1d689ee922c8ae77017173ac433ee4cee143c.png)

![put-device-state-3](https://europe1.discourse-cdn.com/flex005/uploads/ewelinkforum/original/2X/b/b90d04fd3e6fa941a2bb7370116c1b1db37045fd.png)

---

<div class="post-metadata">

**Author:** ![christiansbalz](https://avatars.discourse-cdn.com/v4/letter/c/6f9a4e/32.png) [@christiansbalz](https://forum.ewelink.cc/u/christiansbalz)\
**Post date:** [June 8, 2023, 2:01am UTC](https://forum.ewelink.cc/t/put-device-state-node-is-not-listing-devices/18519/2 "2023-06-08T02:01:11Z")

</div>

All node-red-contrib-ewelink-cube nodes work fine except for put-device-state which does not list devices

---

<div class="post-metadata">

**Author:** ![Teki](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/teki/32/1161_2.png) [@Teki](https://forum.ewelink.cc/u/Teki)\
**Post date:** [June 13, 2023, 9:52am UTC](https://forum.ewelink.cc/t/put-device-state-node-is-not-listing-devices/18519/3 "2023-06-13T09:52:38Z")

</div>

try to edit the Server to update the token

---

<div class="post-metadata">

**Author:** ![christiansbalz](https://avatars.discourse-cdn.com/v4/letter/c/6f9a4e/32.png) [@christiansbalz](https://forum.ewelink.cc/u/christiansbalz)\
**Post date:** [June 13, 2023, 11:49pm UTC](https://forum.ewelink.cc/t/put-device-state-node-is-not-listing-devices/18519/4 "2023-06-13T23:49:23Z")

</div>

@Teki, I tried to do that, got the new token, but it didn’t work. The other nodes work perfectly.

---

<div class="post-metadata">

**Author:** ![christiansbalz](https://avatars.discourse-cdn.com/v4/letter/c/6f9a4e/32.png) [@christiansbalz](https://forum.ewelink.cc/u/christiansbalz)\
**Post date:** [June 25, 2023, 9:27pm UTC](https://forum.ewelink.cc/t/put-device-state-node-is-not-listing-devices/18519/5 "2023-06-25T21:27:10Z")

</div>

I uninstalled node-red, installed node-red-contrib-ewelink-cube again, but it didn’t solve it. The put-device-state node is still having problems. Frustrating

---

<div class="post-metadata">

**Author:** ![christiansbalz](https://avatars.discourse-cdn.com/v4/letter/c/6f9a4e/32.png) [@christiansbalz](https://forum.ewelink.cc/u/christiansbalz)\
**Post date:** [July 6, 2023, 8:05pm UTC](https://forum.ewelink.cc/t/put-device-state-node-is-not-listing-devices/18519/6 "2023-07-06T20:05:12Z")

</div>

Please, any predictions for fixing this bug?

---

<div class="post-metadata">

**Author:** ![christiansbalz](https://avatars.discourse-cdn.com/v4/letter/c/6f9a4e/32.png) [@christiansbalz](https://forum.ewelink.cc/u/christiansbalz)\
**Post date:** [July 18, 2023, 11:21pm UTC](https://forum.ewelink.cc/t/put-device-state-node-is-not-listing-devices/18519/7 "2023-07-18T23:21:57Z")

</div>

maybe this video can help identify the problem

[![](https://europe1.discourse-cdn.com/flex005/uploads/ewelinkforum/original/2X/c/c7bd13946ba869bcc4def4f62d6bfd46cada3a38.jpeg "New Recording - 18/07/2023, 20:12:15") ](https://vimeo.com/846437885/bd8f4e0809)

---

<div class="post-metadata">

**Author:** ![Teki](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/teki/32/1161_2.png) [@Teki](https://forum.ewelink.cc/u/Teki)\
**Post date:** [July 19, 2023, 7:08am UTC](https://forum.ewelink.cc/t/put-device-state-node-is-not-listing-devices/18519/8 "2023-07-19T07:08:26Z")

</div>

Hi, sorry for the misleading, this node is for device that registered from Node-red to iHost (virtual device), for the virtual device, refer to this video: [SONOFF iHost: Virtual Device Tutorial - YouTube](https://www.youtube.com/watch?v=SK4EtCqhWY8)

---

<div class="post-metadata">

**Author:** ![christiansbalz](https://avatars.discourse-cdn.com/v4/letter/c/6f9a4e/32.png) [@christiansbalz](https://forum.ewelink.cc/u/christiansbalz)\
**Post date:** [July 20, 2023, 8:59pm UTC](https://forum.ewelink.cc/t/put-device-state-node-is-not-listing-devices/18519/9 "2023-07-20T20:59:44Z")

</div>

Hello @Teki,

I performed the test here, and the virtual device worked correctly with the ‘device’ option, displaying the component as expected. However, I need to set the percentage at runtime for a specific component whose category is ‘curtain’, in other words, for a Dual R3 device.

A more appropriate approach would be for the ‘control-device’ node to have an additional property called ‘state’, which would receive a JSON, similar to how it works with ‘put-device-state’. This way, it would be possible to provide the necessary information to dynamically control the percentage.

Do these considerations make sense to you? Otherwise, how would you suggest informing and setting the percentage control on the device at runtime?

![image](https://europe1.discourse-cdn.com/flex005/uploads/ewelinkforum/original/2X/6/6acdec2f59c2e3fa3d9794bf725f7319f60e0fa7.png)

![image](https://europe1.discourse-cdn.com/flex005/uploads/ewelinkforum/original/2X/e/e2b3d4dfa291ff98e8cb02796c3d308d47b3886d.png)

---

<div class="post-metadata">

**Author:** ![christiansbalz](https://avatars.discourse-cdn.com/v4/letter/c/6f9a4e/32.png) [@christiansbalz](https://forum.ewelink.cc/u/christiansbalz)\
**Post date:** [July 22, 2023, 11:34am UTC](https://forum.ewelink.cc/t/put-device-state-node-is-not-listing-devices/18519/10 "2023-07-22T11:34:16Z")

</div>

Indeed, the issue goes beyond what was mentioned in the previous messages since there is no support for powering on, powering off, or stopping a curtain, in addition to receiving a payload.

![image](https://europe1.discourse-cdn.com/flex005/uploads/ewelinkforum/original/2X/9/94421db80b47d93c74620329ede17be67f1f1b96.png)
