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

Connection not reliable #11

Closed
nplan opened this issue Nov 25, 2022 · 3 comments
Closed

Connection not reliable #11

nplan opened this issue Nov 25, 2022 · 3 comments

Comments

@nplan
Copy link
Owner

nplan commented Nov 25, 2022

    > @Zixim Are the button presses reliable for you? Does the battery percentage become available right after you press a button? Please check that you really receive messages every 10 minutes in MQTT Explorer or a similar app. Maybe your Wi-Fi is not reliable enough. Which Home Assistant version are you using?
  • Yesterday button presses were reliable. Today it shows "wifi error" or "mqtt error" or it works.
  • When HA (Home Assistant) receives the button press, battery % is also updated as well as hum & temp.
  • I was running MQTT explorer all day yesterday, just to monitor the button's messages, and the interval definitely wasn't 10 minutes exactly. The delay varied from 10m to 30m, which led me to believe it would only send if a certain threshold was reached. My bad.
  • I'm fully certain that wifi is reliable. For now the button is in my lab/workshop, there is an AP in the same room. Also, I have dozens of other esp devices across the house - if wifi were spotty it would be pretty obvious.
  • HA is version 2022.11.4 which is latest at time of writing.

Originally posted by @Zixim in #10 (comment)

@nplan
Copy link
Owner Author

nplan commented Nov 25, 2022

If you get "wifi error" and "mqtt error" interchangeably, I would guess it's a Wi-Fi issue... Could you try connecting it to a different AP just to see if it works?

The interval should always be 10 minutes, but if connection fails, it will skip it. That's why the interval varies for you.

@Zixim
Copy link

Zixim commented Nov 26, 2022

The AP & ESP32 are about 1.5meter apart, yet you are right about unreliable connection.
The cause is that the battery is blocking the wifi signal, well... at least at the exact angle I was positioning the Buttons on my desk.
Shifting it by just a few degrees made all the difference.

@nplan
Copy link
Owner Author

nplan commented Nov 26, 2022

That is interesting. I'm glad it works now.

@nplan nplan closed this as completed Nov 26, 2022
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

2 participants