Hello this is my first post, but i follow my sensors for about 2 months.
Excuse my bad english.
For those how want use a normal in wall switch
just change the line:
if (value != Relays[i].oldValue && value == 0){
to
if (value != Relays[i].oldValue){
to
hope this was a bit helpfully