Show value of a Hub Variable on Dashboard

I set up some hub variables. I use these injuction with some door sensors. I have it set that if one of these sensors are left open, it will send be notification every 1 minute. There are times I need to keep a door open for awhile and dont want it pinging my phone every minute until I close it again. I set up a button to flip a boolean value and added it to the logic of the door sensors.

I would like to see the current value on my dashboard. How would I do that?

I'm a noob with RM, but I just did this. You can choose device or hub variable on the dashboard app.

Actually, it's in "add a tile".

Variable connectors show up as devices. Add tile, select the variable, Use attribute and variable.

Go to the Apps page and open the child app for the dashboard you want it to appear on and authorize the variable. Then go to the dashboard and add the variable using the proper variable template (integer, string, etc.)

3 Likes

To clarify some of the above, there are two different issues being discussed. What I would recommend is what @thebearmay mentioned, authorizing the variable itself and then adding the variable directly to the dashboard as a tile. (You do not need to choose a template for the tile; that's only for devices. Variables have only one type, and Dashboard will already know what to do.)

A second thing mentioned was variable connectors. These make a full device out of variables and were once necessary for apps like Dashboard that didn't support variables directly. Since then, a lot of things have changed. Dashboard can use variables directly, as above, and many other apps can too -- so there's no need to create one unless you need it for some other purpose. This is no longer one, though it would technically still work (and you would indeed need to choose a template in that case, with it being a device as far as any app knows).

1 Like

Do I need connectors for webcore? I have a few dozen of them.

webCoRE can access hub variables directly.

2 Likes

That work! I am able to add them to the dashboard now. Thanks

1 Like

Using a connector seems to prevent editing of a variable that is shown as a device on a dashboard. This is useful to me to prevent people from editing the variables. Is there an easier way to show variables on a dashboard but prevent people who have access to that dashboard from changing them?

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