Would it be better for efficiency/memory/speed/etc to have one pistons to control my 20+ Wemo light switches or have multiple smaller pistons where one piston is used to control individual or small groups of switches. Right now I have about 10 pistons to control my lights. With the right grouping of IF and ELSE IF statements I see how I could turn all those smaller pistons into one large one.
Single piston or multiple pistons to control 20+ light switches
bangali
#2
depends on how much you are doing within each piston for an individual or small group of lights. the approach i tend to take on this is to have a piston per room or area and control all of the lights in that room or area within one piston. for me this works as a balance between n small or 1 large piston.