I've created a global variable and set it to boolean true or false in my sequences. I would like to display it on a dashboard. I connected the change nodes for the global to a switch and set on and off payload to global. and then entered the global variable name into the input field next to it. The switch doesn't change. It seems as something is missing or I'm not understanding how it works. Is the switch just testing for the existence of the variable and not its setting? If it's the setting, how do I indicate true or false? I tried global.varName, varName, varNane.true, and global.varName.true.
If there is documentation on this somewhere, I'll gladly refer to it. My Internet searches didn't turn anything up.
Related nodes for a text node (wrong one, but answered by @Paul-Reed)
[{"id":"a4cbbbc3.55b9d8","type":"change","z":"4ed8298c.44ba6","name":"Set Hallway Occupied","rules":[{"t":"set","p":"hallwayOccupied","pt":"global","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":720,"y":100,"wires":[["bf55f2c9.225a48","689fb39c.d7e034","eb6b6af0.e39438"]]},{"id":"69cc6d5f.effd5c","type":"change","z":"4ed8298c.44ba6","name":"Reset Hallway Occupied","rules":[{"t":"set","p":"hallwayOccupied","pt":"global","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":1150,"y":120,"wires":[["689fb39c.d7e034","eb6b6af0.e39438"]]},{"id":"eb6b6af0.e39438","type":"ui_text","z":"4ed8298c.44ba6","group":"d127657e.88b01","order":1,"width":0,"height":0,"name":"","label":"Hallway Occupied:","format":"{{global.hallwayOccupied | char}}","layout":"row-spread","x":1480,"y":60,"wires":[]},{"id":"d127657e.88b01","type":"ui_group","name":"Group 3","tab":"5a31f675.ba7d2","order":3,"disp":true,"width":6},{"id":"5a31f675.ba7d2","type":"ui_tab","name":"Test Tab","icon":"dashboard","order":1,"disabled":false,"hidden":false}]
Update
I originally posted the wrong sequence. It's for using a text node, which @Paul-Reed answered. My question was about the switch node. Here is the correct example:
[{"id":"a4cbbbc3.55b9d8","type":"change","z":"4ed8298c.44ba6","name":"Set Hallway Occupied","rules":[{"t":"set","p":"hallwayOccupied","pt":"global","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":720,"y":140,"wires":[["bf55f2c9.225a48","689fb39c.d7e034","4efd4b20.9ef094"]]},{"id":"69cc6d5f.effd5c","type":"change","z":"4ed8298c.44ba6","name":"Reset Hallway Occupied","rules":[{"t":"set","p":"hallwayOccupied","pt":"global","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":1170,"y":160,"wires":[["689fb39c.d7e034","4efd4b20.9ef094"]]},{"id":"689fb39c.d7e034","type":"ui_switch","z":"4ed8298c.44ba6","name":"Hallway Occupied Global","label":"Hallway Occupied Global","tooltip":"","group":"d127657e.88b01","order":0,"width":0,"height":0,"passthru":true,"decouple":"false","topic":"topic","topicType":"msg","style":"","onvalue":"global.hallwayOccupied","onvalueType":"global","onicon":"","oncolor":"","offvalue":"global.hallwayOccupied","offvalueType":"global","officon":"","offcolor":"","animate":false,"x":1550,"y":240,"wires":[[]]},{"id":"d127657e.88b01","type":"ui_group","name":"Group 3","tab":"5a31f675.ba7d2","order":3,"disp":true,"width":6},{"id":"5a31f675.ba7d2","type":"ui_tab","name":"Test Tab","icon":"dashboard","order":1,"disabled":false,"hidden":false}]