Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mqtt issue or code? #23

Open
codedmind opened this issue Sep 1, 2018 · 6 comments
Open

Mqtt issue or code? #23

codedmind opened this issue Sep 1, 2018 · 6 comments

Comments

@codedmind
Copy link

After some days working well now i'm getting issues when the garage doors is closed the homeassistant is getting wrong status inside a minute it open and close again, the garage door is always close...

If open everything is ok.

Any suggestion for debug?

@marthoc
Copy link
Owner

marthoc commented Sep 3, 2018

Possible that your esp8266 device is dropping off the wifi network?

@sam-wright
Copy link

sam-wright commented Sep 3, 2018

Mine does the opposite of this (if open, it alternates between open and close every minute or so). This is because I didn't install a pull-down resistor, so when the door is open, the pin is left floating. Depending on your circuit, you may have left out a pull-up or a pull-down resistor.

@codedmind
Copy link
Author

codedmind commented Sep 3, 2018 via email

@marthoc
Copy link
Owner

marthoc commented Sep 3, 2018

@sam-wright The pin shouldn’t be floating as I’m enabling the INPUT_PULLUP mode for the door status input pins. So when the door is closed, the pin is pulled low, but when open, the internal pull-up resistor should be pulling it high. Possible though that the resistor is too weak depending on your own environment. @codedmind you can try using a pull-up resistor and see if it solves your problem.

@codedmind
Copy link
Author

codedmind commented Sep 4, 2018 via email

@codedmind
Copy link
Author

codedmind commented Sep 15, 2018

Ok @marthoc i made the connections (no resistor) an try the both versions (master and dev) in the master the serial connections show normal output, change status and keep, but the dev is always connection and publish to mqtt don't now why... same connections , same hardware

. WiFi connected - IP address: 192.168.1.80
Ready for OTA Upload...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 open! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to garage/door/3/action...
Garage Door 3 open! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 open! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 open! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 open! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 open! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 open! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 open! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 open! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 open! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 open! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 open! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 open! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 open! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 open! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 open! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 open! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 open! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 open! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 open! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 open! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 open! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 open! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 open! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 open! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 open! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 open! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 open! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 open! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 open! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 open! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 open! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 open! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 open! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 open! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 open! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 open! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 open! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 open! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 open! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 open! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 open! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 open! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 open! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 open! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 open! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 open! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 open! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 open! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 open! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 closed! Publishing to garage/door/3/status...
Garage Door 3 closed! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 closed! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 closed! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 closed! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 closed! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 closed! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 closed! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 closed! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 closed! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 closed! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 closed! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 closed! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 closed! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 closed! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 closed! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 closed! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 closed! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 closed! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 closed! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 closed! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 closed! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 closed! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 closed! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 closed! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 closed! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 closed! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 closed! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 closed! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 closed! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 closed! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 closed! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 closed! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 closed! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 closed! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 closed! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...
Garage Door 3 closed! Publishing to garage/door/3/status...
Attempting MQTT connection...Connected!
Subscribing to GarHAge/api...
Publishing birth message "online" to GarHAge/availability...
Subscribing to garage/door/3/action...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants