# Auto refresh to home tab

**URL:** https://discourse.nodered.org/t/auto-refresh-to-home-tab/8670
**Category:** Dashboard
**Created:** [6 March 2019 14:54 UTC](https://discourse.nodered.org/t/auto-refresh-to-home-tab/8670 "2019-03-06T14:54:33Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![rjdelbueno](https://avatars.discourse-cdn.com/v4/letter/r/b3f665/32.png) [@rjdelbueno](https://discourse.nodered.org/u/rjdelbueno)
#### Post date: [6 March 2019 14:54 UTC](https://discourse.nodered.org/t/auto-refresh-to-home-tab/8670/1 "2019-03-06T14:54:33Z")

</div>

I am looking for a way to have the dashboard auto-refresh to home tab after a specified amount of inactivity. Any ideas on this?

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [6 March 2019 21:32 UTC](https://discourse.nodered.org/t/auto-refresh-to-home-tab/8670/2 "2019-03-06T21:32:59Z")

</div>

once you have defined and detected inactivity then use a ui\_control node and just send it a `0` which will swap it to the first tab, etc.

---

<div class="post-metadata">

### Author: ![rjdelbueno](https://avatars.discourse-cdn.com/v4/letter/r/b3f665/32.png) [@rjdelbueno](https://discourse.nodered.org/u/rjdelbueno)
#### Post date: [6 March 2019 21:53 UTC](https://discourse.nodered.org/t/auto-refresh-to-home-tab/8670/3 "2019-03-06T21:53:15Z")

</div>

Thanks dceejay.  
Any thoughts on how one would detect inactivity? In our case that would mean no input from keyboard or mouse.

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [6 March 2019 22:12 UTC](https://discourse.nodered.org/t/auto-refresh-to-home-tab/8670/4 "2019-03-06T22:12:24Z")

</div>

That would probably need to be outside of Node-RED and would depend on the operating system you are using. (Unless you actually mean clicks inside the Node-RED dashboard in which case you could feed all ui elements into a trigger node (as well as wherever they are meant to go to), set to not send anything on first input , a suitable timeout, and extend if any more inputs - then send the message above.

---

<div class="post-metadata">

### Author: ![rjdelbueno](https://avatars.discourse-cdn.com/v4/letter/r/b3f665/32.png) [@rjdelbueno](https://discourse.nodered.org/u/rjdelbueno)
#### Post date: [6 March 2019 23:58 UTC](https://discourse.nodered.org/t/auto-refresh-to-home-tab/8670/5 "2019-03-06T23:58:21Z")

</div>

Excellent. Thanks.
