I have control of the relay, but when I issue a .on() command, it will only activate or stay open for as long as the sleep(x) function after it.
I cannot get it to change to just be on until I tell it to close, ie no sleep function after.
I want to run one script to turn on the relay, such as:
import automationhat
automationhat.relay.one.on()
and another script to turn it off:
import automationhat
automationhat.relay.one.on()
I have also tried to use the RPi.GPIO instead of the automationhat library, but it seems the relay will revert to “off” as soon as the script has completed
My other relay boards do not behave like this, they will stay in the given state until it is commanded to change.
Is this normal for the Automationphat?