I am wondering how I can get the relays to stay in the chosen state after the script has stopped.
I am trying to controll an inverter with the 3 relays, and would like them to stay in a certain state untill I change it or return to their original state if the RPI looses power. The latter is easy as the relays do it by themselves when they loose power, but the first one is my main problem.
As long as the script is running the relays stay in the state they were told, but as soon as the script ends they return to their normal unpowered state.
I am a n00b with python scripts, so it just might be that I need to learn more.