jerrod-lankford / GarageQTPi

An MQTT server for a raspberry pi garage door opener. Most commonly used as a HomeAssistant cover component.
MIT License
75 stars 36 forks source link

Set initial relay output on pin setup. #44

Open craigInTx opened 3 years ago

craigInTx commented 3 years ago

For relays that use invert_relay as True, on output pin setup, there is a short toggle between Low and High that triggers the relay between the original GPIO.setup and the output line that sets the initial state.

The GPIO.setup() has an optional parameter initial to set the initial state on setup.