washcroft / HttpGarageDoorController

A project for an Arduino based WiFi-enabled controller, IoT/M2M enabling an ordinary garage door operator.
MIT License
11 stars 4 forks source link

starts with relays on, how can i flip the default pin state easily? #14

Open lagunacomputer opened 4 years ago

lagunacomputer commented 4 years ago

Hey Warren everything works great, been using this for over a year now. But im having trouble when my controller is powered on, it flips the relays to an 'on' state, thus operating the door when unwanted.

I'm looking at the code, but cant find an easy answer. How can I flip the default state of the door and light output pins to ensure they are 'off' instead of 'on' ? in other words, when i power on, my door and light state are 'off' yet the relay pin is activated and the relay is 'on'. When i use ios/homebridge/alexa to turn the door or light switch on, the relay actually turns 'off'. the outputs state is reversed . How can i reverse the pin state on default?

thanks for your time sir.

rjblake commented 4 years ago

Seem to recall I had same issue initially. Problem was solved with a different relay (High level). If yours is switchable H/L, try otherwise suggest trying alternate.

See thread here