# \[Dashboard\] Reuse groups/widgets - For example for multiple thermostats

**URL:** https://discourse.nodered.org/t/dashboard-reuse-groups-widgets-for-example-for-multiple-thermostats/52606
**Category:** Dashboard
**Tags:** node-red-dashboard
**Created:** [23 October 2021 08:39 UTC](https://discourse.nodered.org/t/dashboard-reuse-groups-widgets-for-example-for-multiple-thermostats/52606 "2021-10-23T08:39:57Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![\_Tim](https://avatars.discourse-cdn.com/v4/letter/_/e47c2d/32.png) [@\_Tim](https://discourse.nodered.org/u/_Tim)
#### Post date: [23 October 2021 08:39 UTC](https://discourse.nodered.org/t/dashboard-reuse-groups-widgets-for-example-for-multiple-thermostats/52606/1 "2021-10-23T08:39:58Z")

</div>

Hey all,

I've been tinkering with Node-RED in HA and I run into a wall.

If I would have 14 rooms, with in each room a thermostat, I would add 14 thermostat widgets/groups to the dashboard. One thermostat functionality for each room. But I seem to get stuck to create one widget and reuse it 14 times. Or to add 14 dashboard thermostats to one group? Something, so that I don't have to program 14 thermostats and edit 14 thermostats to make one change 🙂

I'm sure there is an existing solution for this.

---

<div class="post-metadata">

### Author: ![\_Tim](https://avatars.discourse-cdn.com/v4/letter/_/e47c2d/32.png) [@\_Tim](https://discourse.nodered.org/u/_Tim)
#### Post date: [24 October 2021 12:13 UTC](https://discourse.nodered.org/t/dashboard-reuse-groups-widgets-for-example-for-multiple-thermostats/52606/2 "2021-10-24T12:13:25Z")

</div>

So, I think this just not doable with the dashboard nodes. A head-ace further I tried the dashboard template node. With it I can create an Angular.js widget.

I feed it an array with the different thermostats. It then itterates over the array to render the different thermostats.

Here a small test:

 ![Screenshot 2021-10-23 at 17.10.31](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/e/fe9633c33e8d4c2c6b739823c6658f7a714dc732.png)

---

<div class="post-metadata">

### Author: ![xjust](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/xjust/32/39096_2.png) [@xjust](https://discourse.nodered.org/u/xjust)
#### Post date: [10 November 2021 18:12 UTC](https://discourse.nodered.org/t/dashboard-reuse-groups-widgets-for-example-for-multiple-thermostats/52606/3 "2021-11-10T18:12:47Z")

</div>

\_Tim, can you share your flow ? thanks

---

<div class="post-metadata">

### Author: ![Christian-Me](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/christian-me/32/10774_2.png) [@Christian-Me](https://discourse.nodered.org/u/Christian-Me)
#### Post date: [10 November 2021 18:28 UTC](https://discourse.nodered.org/t/dashboard-reuse-groups-widgets-for-example-for-multiple-thermostats/52606/4 "2021-11-10T18:28:15Z")

</div>

You are right it is not doable by using the dashboard widgets.  
I circumvent the problem and save dashboard real estate by using a drop down widget to select a room or item and use one group of widgets to control the selected room or widget.  
I then have obe tab per room to show only the controls for that room.  
And I use ui-table to get an overview of all thermostats or other things.

---

<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: [10 December 2021 18:29 UTC](https://discourse.nodered.org/t/dashboard-reuse-groups-widgets-for-example-for-multiple-thermostats/52606/5 "2021-12-10T18:29:04Z")

</div>

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