# Enabling/Disabling HDRobots from NodeRed

**URL:** <https://discourse.openiap.io/t/enabling-disabling-hdrobots-from-nodered/3019>\
**Category:** OpenCore\
**Created:** [August 14, 2025, 10:30am UTC](https://discourse.openiap.io/t/enabling-disabling-hdrobots-from-nodered/3019 "2025-08-14T10:30:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Morphyum](https://discourse.openiap.io/user_avatar/discourse.openiap.io/morphyum/32/2012_2.png) [@Morphyum](https://discourse.openiap.io/u/Morphyum)\
**Post date:** [August 14, 2025, 10:30am UTC](https://discourse.openiap.io/t/enabling-disabling-hdrobots-from-nodered/3019/1 "2025-08-14T10:30:55Z")

</div>

Hi Everyone,

this question is a continuation of following problem:

> [@HD Bots get stuck when update work item fails?](https://discourse.openiap.io/t/hd-bots-get-stuck-when-update-work-item-fails/2357):
>
> Hi, we are currently running into another problem where the HD Bots are stopping to process items. What happens is, that one workitem gets stuck in processing and the bot never get another workitem. Looking at the log below it seems like there was a problem moving the failed item to the failure queue and after that the bot got stuck? [19:43:36.724][Warning] Message f24b2f76-fe31-4226-847f-2f683fba0886 (insertorupdateone) state loaded timed out, retrying state: [19:43:25.409][Warning] Message…

So what we found out is that you can fix stuck bots by forcing them to logout and back into the VM.  
One way to achieve this is having the autologout setting and disabling and enabling the bot. IS there any way we can do that via NodeRed?

Greetings Marvin

---

<div class="post-metadata">

**Author:** ![Allan\_Zimmermann](https://discourse.openiap.io/user_avatar/discourse.openiap.io/allan_zimmermann/32/12_2.png) [@Allan\_Zimmermann](https://discourse.openiap.io/u/Allan_Zimmermann)\
**Post date:** [August 14, 2025, 2:24pm UTC](https://discourse.openiap.io/t/enabling-disabling-hdrobots-from-nodered/3019/2 "2025-08-14T14:24:51Z")

</div>

This is also touched upon here:

> [@How can i update unattendedclient objects?](https://discourse.openiap.io/t/how-can-i-update-unattendedclient-objects/1744):
>
> A while ago i asked if i have someway to turn on the Hd robots in a specific time, Allan told me to create a NodeRED workflow that updates the “enabled” boolean property to true/false at certain times, but how can i do that?

Basically, you can either use a `get` node to fetch the one(s) you need to update, loop over them in a `function` node, and send the result to an `update` node, or you can use the `UpdateDoc` node to quickly update the enabled field.

---

<div class="post-metadata">

**Author:** ![Allan\_Zimmermann](https://discourse.openiap.io/user_avatar/discourse.openiap.io/allan_zimmermann/32/12_2.png) [@Allan\_Zimmermann](https://discourse.openiap.io/u/Allan_Zimmermann)\
**Post date:** [August 14, 2025, 2:52pm UTC](https://discourse.openiap.io/t/enabling-disabling-hdrobots-from-nodered/3019/3 "2025-08-14T14:52:41Z")

</div>

Sorry, that was a weird “incomplete” answer.

The RDService, which we sometimes call HD robots, works by creating a watch on the `openrpa` collection and looking for updates to objects with \_type `unattendedclient`. This means you can control the service by simply updating the objects in the database. For your use case, you simply have to update all the `unattendedclient` objects you want to enable or disable, resulting in the robot user getting signed in or logged out.

---

<div class="post-metadata">

**Author:** ![Morphyum](https://discourse.openiap.io/user_avatar/discourse.openiap.io/morphyum/32/2012_2.png) [@Morphyum](https://discourse.openiap.io/u/Morphyum)\
**Post date:** [August 15, 2025, 5:43am UTC](https://discourse.openiap.io/t/enabling-disabling-hdrobots-from-nodered/3019/4 "2025-08-15T05:43:28Z")

</div>

Works perfectly, thanks!

---

<div class="post-metadata">

**Author:** ![system](https://discourse.openiap.io/uploads/default/original/2X/a/a1ca7b164ac9a826839704d9ac82c7b5e6bcf557.png) [@system](https://discourse.openiap.io/u/system)\
**Post date:** [August 18, 2025, 5:43am UTC](https://discourse.openiap.io/t/enabling-disabling-hdrobots-from-nodered/3019/5 "2025-08-18T05:43:46Z")

</div>

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