House dashboard, tab display problem

Hi for my house I made a dashboard to manage my different api and connected device, but when I am on one of the tabs has set up my devices and my wife logs in to modify another device, the ui_control sends the change of tab on our two sessions, do you have a solution for this change to be targeted on a single session, can you help me?

I think you'll find it is because there is only one dashboard. You can multiple tabs but they all affect the same single dashboard. I had a similar effect with my IoT students when a pair of students were working in two tabs on the same instance of Node-RED. Took a while before we realised what was going on.

Quelle solution avais vous trouvé?

Probably not the solution you are looking for...
I took the quick and easy solution and assigned each student to their own Raspberry Pi - Zero.



ui-control triggers tab changes to all connected clients only if no socketid is specified
if you specify the socketid of a single client only these client will be affected.
this inject node will only change the tab on the client specified by it's socketid

you can get the socketid by the ui-control node listening for connect events (or via responses of input widgets)

To differentiate yourself form your wife you have the chance via fixed ip addresses as the socketid changes on all connects randomly


1 Like

thank you i will try

Hi I sent him the socket id but nothing changed, I tested with the ip, and even the two together but nothing worked, I even tested it in the payload.
But with the notification message it works, are you sure that's the only thing to change?

First: It only works by providing the socketid as under one ip-address there could be more than one session. The ip address might only be usefull to distinguish different users.

TL;DR: Upgrade the dashboard to the latest version

After testing I was a little bit lost as the socketid given by the ui-control node differs from the browsers socketid and seams to be wrong




They are not the same. The browsers socketid works fine but the socketid given by the ui-control node in version below 3.1.3 might give you wrong gesults (EDIT)

but the socket id coming from a ui widget (here a button) is fine

Investigating a little bit further there was an issue up to version 3.1.3 Wrong socketid displayed by ui-control node · Issue #738 · node-red/node-red-dashboard · GitHub

So upgrade to the latest version and it should work as expected

here my little test flow:


I opened two windows in private browsing on two different browsers on my pc and still does not work but I am in 3.1.0 :confused:
I quickly switch to 3.1.5 to test

3.1.3: Maintenance Release


  • Remove main entry from package.json. Issue #740

  • Let date-picker send repeated existing values.

  • Warn if Node.js version not 12+.

  • Allow ui-dropdown to accept single string for one valid option.

  • Fix socketid back to be in sync with reality. Issue #738

I am using Dashboard 3.1.5 and have found this issue.

Think you might have to raise an issue on github if you found a reproduceable bug.

Hi, it's good for me, since the migration everything works now. Thank you all.

1 Like

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