-
Notifications
You must be signed in to change notification settings - Fork 198
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
Issue with MQTT messages - intermittent success #747
Comments
Are there any send or connection errors for the client connection in the log? |
I get the following the logs messages: 09-18-2017 18:59:05.604 | ERROR | Could not publish to MQTT client for name: Mosquitto and ip: 192.XXX.XXX.XXX:1883 with message: Client is not connected | com.bwssystems.HABridge.plugins.mqtt.MQTTHandler but then I get 09-18-2017 19:11:44.916 | INFO | Link button pressed.... | com.bwssystems.HABridge.SystemControl The IP of the MQTT broker is the same and I've used other MQTT clients to connect to that broker without any issues. Not using any username or password on broker. |
Well ,that is the issue why it is not publishing. We'll have to turn debug on for the mqtt classes in the log tab and then do a re-init. |
How do I turn on debug?
Get Outlook for iOS<https://aka.ms/o0ukef>
…________________________________
From: BWS Systems <notifications@github.com>
Sent: Wednesday, September 20, 2017 9:21:53 AM
To: bwssytems/ha-bridge
Cc: btkyoung; Author
Subject: Re: [bwssytems/ha-bridge] Issue with MQTT messages - intermittent success (#747)
Well ,that is the issue why it is not publishing. We'll have to turn debug on for the mqtt classes in the log tab and then do a re-init.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#747 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AM3ex6gUuZxlTTF2xUaEjOB5DbZKsVeGks5skRFxgaJpZM4Pboyw>.
|
Ok I've set DEBUG for DEBUG | com.bwssystems.HABridge.plugins.mqtt I get the following for the debug log: Press button and it would work: Tried again and I get an error. |
Actually, I need the beginning of the log as to see the connection errors. |
Sorry for the late reply. Here is the beginning of the log. No errors that I see. 09-25-2017 03:05:51.549 INFO HA Bridge (v4.5.6) starting.... com.bwssystems.HABridge.HABridge |
Ok, will need to research as the client connection in the setup shows no errors. |
I put in a check if the client is connected before the call, if not it will try to connect. |
Hi, having issues with MQTT message not always been sent to the broker even though I get the notification "Request Executed: success [{"success":{"/lights/1/state/on":false}".
I generated the MQTT message using form generator {"clientId":"Mosquitto","topic":"outlet/set/3","message":"1","qos":"0","retain":"true"}
but when I use the test buttons it may work once or twice and then it would not respond.
I have subscribed to outlet/set/3 using MQTTfx and it would not detect any thing being sent to the MQTT broker when it wasn't working but I do get the correct message when it does work so it leads me to believe this is an issue with HA-bridge.
I tried two different implementations of HA-bridge (RPi and Docker on UnRaid) and they both react the same.
Is there a configuration setting that I'm missing?
The text was updated successfully, but these errors were encountered: