Switch Block with Remote Help


#1

1) Give a description of the problem
I’ve been attempting to create a piston with a switch block for an Aeon Minimote. I was able to create a non switch block piston as a test with one button and a simple toggle — it worked fine. When I tried to map the rest of the buttons using a switch block, there was no response from the minimote

2) What is the expected behavior?
Map buttons so that they control both pushes and holds via a single piston with a switch block.

3) What is happening/not happening?
events are not triggered

4) Post a Green Snapshot of the pistonimage

Any help with this would be much appreciated. I’m pretty new to all of this so it’s a lot of trial and error. This one ended in more error, hence this post.


#2

I’d just break that into an IF statement for each button.

IF button #1 gets pushed
THEN do this

IF button #2 gets pushed
THEN do this

etc…

The reason yours isn’t working is because you have triggers within triggers. If keypad button #2 gets pushed, it’ll trigger the piston and pass the first IF condition. By the time it gets to line #23 it may evaluate false since it wasn’t “just pushed” and you’ll get unexpected results.


#3

Thanks so much. Still getting the hang of it. Sorted out the button pushes and got it working, now trying to figure out the button holds.