Hi, I was looking for node-red nodes which I can use to control the automation hat.
Unfortunately these don’t exist yet at this point in time, so I started with the development of these. I am willing to contribute these to the community if I can get some technical questions answered.
Currently I have written a node to control relay one on the automation hat.
In the background a python script is launched which is using automationhat.relay.one.on() to switch on the relay.
When the python script is closed, the relay reverts to the off position. All good here. But.
When I launch my python script again, the relay starts in the on position, as if it has remembered the previous state.
Is there any way to prevent this, as a predictive startup state should be desirable.