Help with Automated Windows Ramping Piston


#1

1) Give a description of the problem
I’d love some advice on creating a piston that lets me gradually open a window. This is my first piston. I have my device working with a Lutron Pico remote and the piston seems to be working okay but I notice that everyone is using this X2 Set Variable = currentLevel attribute and I can’t figure out how to do that. I’m just wanting to use buttons 4 and 5 to gradually open the window. Buttons 1 and 2 are open and close fully and button 3 is a preset level. Thanks in advance for any assistance.

2) What is the expected behavior?
Window slowly opens and closes

3) What is happening/not happening?
Want to know the best way

4) Post a Green Snapshot of the pistonimage


pico button numbering

5) Attach any logs (From ST IDE and by turning logging level to Full)
(PASTE YOUR LOGS HERE BETWEEN THE MARKS)

REMOVE BELOW AFTER READING


#2

looking at your piston seems like it should do the job just fine. and as you also say the piston seems to be working ok.

what are you looking to use the set variable for? if you just want to see how a set variable is done heres the quick steps. from your piston looks like you already know how to define a variable so skipping that step.

click add a new statement:

image

select add an action:

since i dont have an window opener i just selected a random device or you can leave it to the default which is location:

now click add a task, then select set variable from the first dropdown:

next choose a variable you have already defined from the variable dropdown. under value change the drop down to physical device. then from the next drop down next to physical device choose your window device. then from the third drop down where it says temperature in my case, choose the device variable which contains the current level of the window:


#3

awesome. thanks for writing that up! I’ll give it a try right now.