Customizable indicator

I want to make a dashboard for three types of temperature sensors.

I want to make a page on the right with some kind of button or something to choose from: sensor “type 1” or “type 2” or “type 3”

So the graph on page 1 should read as sensor “type 1” or “type 2” or “type 3”

I don’t know how to do it. Could you set a variable based on the state of a button or slider on page 3?

Sure, you can link existing ‘dummy’ variables to your button and then use the Triggers system to change whatever you need on the pages.

You can use triggers and actions to show and hide those gauges depending on a dummy value. For the step by step guide below I’ll assume you want three gauges, but you can use however many you want, it’ll just become a bit longer.

  1. Make the individual gauges – if they are made up of multiple items, put them in a container.
  2. Create an action for the button: “Rotate value up”. Select an unused dummy value (i.e. “Dummy 01”). Set the lower bound to 0, the upper bound to 2, the step size to 1 and leave the ‘stop’ parameter at 0. Now, pressing the button will change the dummy value to 0, then 1, then 2, then 0 again, and so on. If you want n gauges in this rotation, set the upper bound to n-1.
  3. For each gauge, create a “Show gauge” and a “Hide gauge” action.
  4. Create a new trigger event. Set the trigger conditions such that the trigger will fire if your dummy value is equal to 0. Add the “Show gauge” action for the first gauge and the “Hide gauge” actions for all others.
  5. Repeat step 4 with a dummy value of 1 for the second gauge, 2 for the third gauge, and so on.
1 Like