Printing Variables in piston state

variables
piston_state

#1

I am trying to display (print) the value of a variable in the piston state. I believe I have successfully defined and populated a global variable in a different piston. when I go into pistons, I see the global variable in the upper right and I see it’s current value (all correct!). However, I then want to show that value in a different piston’s state section on the dashboard. Is that possible? And what would be the code for it? I tried simply ‘@variablename’ both with or without the quotes.

I am definitely no coder, and freely admit I have used someone else’s code for most of this and am simply learning through experimentation. Any guidance on the syntax would be great.

You can see my variable @Thermostatstate in the ‘Set piston state to’ clause below.


#2

figured it out. {@Thermoststate}