Forum Replies Created
Ray, not sure what fixed it, but i just reinstalled the arduino ide and all libraries and did everything all over again. No more error and compiled correctly, probably user error on my part somehow.
Ben, I’ve been too busy to try your fix, i actually just removed the mqtt code for the time being to get things working since my mqtt server won’t be put into action for a little while while I remodel. I’ll let you know when I get a chance to test out the increased timing. On a side note my brother experienced the same problem with his open garage as well, unfortunately he was using my mqtt server as well so he can’t test his at the moment either.
I would like to bring up something I came across recently. My open garage was running slow as molases. Pressing the button on the webpage or blynk, it would take 5 minutes before the garage door would open. I figured out the problem was that my mqtt server was down. As soon as I got it running again everything was back to normal. Just an observation, if you have mqtt setup and you stop using am mqtt server, it will cause issues with open garage.
I have been using your mqtt addition with home assistant for 2 garages for over a month now and it is working flawlessly. Thanks again for the help Ben!
Ben, i think you just nailed it. I put your mqtt code on my main opengarage that is setup in my garage last month, but it wasn’t working. I am now working with another open garage on my test bench, and i just realized that now that mqtt is working, i bet that both open garage units are sending mqtt messages to the same topic. I will test this when i get home. Thanks for your help, its always the simple things that cause these issues lol. I am learning a great deal as I go thought.
That is exactly what is happening, they are both publishing to the same topic! I was able to log in remotely and take a look. I will report back once i change the topic names, i’m certain things will work properly though. Thanks again Ben!
I’m not sure what the root cause might be; I’m using the same variable (“distance”) that is being written to the log, webpage, and to Blynk.
On mine I’m seeing the number move a little (from 145-147) but not wide changes like you are seeing on your bench.
Ben, OG is setup to take readings every 4 seconds via the webpage, however it looks like mqtt is reporting readings every 1 second. Do you know how to get mqtt to publish every 4 seconds and so i can test if this fixes the issue?
- This reply was modified 2 years, 8 months ago by Gompka.
Ben, i removed the user/pass and it seems to be working. Not sure if it was just the user pass or the way i have mosquito setup. Anyway, now that open garage is publishing to mqtt the issue i’m having is the distance variables it is printing are strange. I have it on my test bench and sitting stationary and it publishes 147, 256, 145,260 and like that back and forth which causes open/close/open close messages. However, if i go to the built in OG webpage that Ray made the distance is a steady 147 and the status stays closed. Any idea, what could be causing this strange distance behavior?
Ben, I have a spare esp8266 that i will rig up as a pseudo open garage so that i don’t have to run back and forth to the garage when its 14F here in Chicago lol. I’ll do some testing and report back. Thanks again.
Hey Ben, thank you for the files, i compiled and uploaded and seems like everything opengarage relate is working but i’m not getting anything on my mqtt broker. The topic is just “GarageDoor” right? I changed the mqtt server and added my username and password, am I missing anything else?
Ben thank you for the code, it will same me a lot of time and swearing lol. I will load it up when i get home and let you know how it goes.
Ben if you could send me your code or upload it here i would appreciate it. My email is [email protected]
Also interested in the mqtt code, would like to run my own mqtt server instead of relying on blynk.
Sotrios I will start a separate post with a more detailed write up on what I did. I’m working on it, will takeemail another day or two.
Ray, i finally got everything working, thank you for your direction, i am just waiting for a project box to come in and will be installing this on the garage!