1) Give a description of the problem
bathroon fan timer to mimic the leviton ltb60, i have in wall switches (little square relays) wired at the fan and ge switches installed on the wall (replacing the leviton timer) and the fan relays are wired through unswitched.
@bangali - this was my first piston, your name came up in almost all the posts when googling different functions, most of the frustration was just the webcore learning curve, $index, arrayitem indexof text functions, timers, different statements and how they should operate vs what i want them to do. i still have alot to learn but it seems webcore is only as powerful as your ability to use its features, so i trial and error it till something works and remember that. i couldnt find a solution to this after weeks of tinkering with it. finally scrapping it for this.
2) What is the expected behavior?
press on. fan turns on and starts 10 min timer, switch turns off (to allow next on command), at the end of the timer the fan turns off
if the fan is running and i hit the switch again then then timer will restart at 20 minutes.
it should rotate from 10/20/30/60/off since the leviton acts this way also and were using the off for resetting the switch,
the ge switch doesnt send on or off if its already in the state, or i dont know how to get that to work.
3) What is happening/not happening?
cannot get current event device in list1 ( say theres 3 bathrooms and its the 3rd switch) to select the 3rd device in the relay list. i ended up scraping it for this workable piston. then i put some lipstick on the pig (the piston states) and copied it for the 4 setups i need it running on.
**4) Post a Green Snapshot of the piston![image|45x37]
5) Attach any logs (From ST IDE and by turning logging level to Full)
REMOVE BELOW AFTER READING
If a solution is found for your question then please mark the post as the solution.