Start a new topic

save relay state

i would like to know if is it possible to save the state of theraly  pin so when the module is restarted it inmediatly puts the pin in the saved state. i want this information cos i´ve purchased a sonoff wifi and i would like to code it so i can use the normal switch o my house without interfiering with the wifi use. i'll explain myself :

this is the conf: power---------> normal house switch ---------> sonoff wifi ---------->bulb
what i want to do is that every time i switch off and then on the sonoff with the "normal house switch" it toggles the previous state an for that i need to save it before.

i hope ive explained myself correctly, thank you




pardon my enghish it isn`t my mother tonge(spanish is , in case you are asking :mrgreen: )


1 person likes this idea
Login or Signup to post a comment