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" i 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 )