Some users reported that GarHAge would send duplicate door status messages (i.e. two "open" or "closed" messages in a row). This PR ensures that GarHAge only publishes the message that correctly corresponds to the state the door has changed to. Renamed the debounceTime parameter to deadTime to more accurately reflect its use and increased it to 4000 to ensure that the door/reed switch will have settled in its final position before we try to read the status again for publishing purposes. Closes #16.
Some users reported that GarHAge would send duplicate door status messages (i.e. two "open" or "closed" messages in a row). This PR ensures that GarHAge only publishes the message that correctly corresponds to the state the door has changed to. Renamed the debounceTime parameter to deadTime to more accurately reflect its use and increased it to 4000 to ensure that the door/reed switch will have settled in its final position before we try to read the status again for publishing purposes. Closes #16.