Replies: 7 comments 7 replies
-
Seen this a before, and it was another service re-posting messages. What else have you on MQTT? Remember that AqualinkD posts messages with retain flag, this means when someone subscribes to the topic, the MQTT server resends the last set of messages. |
Beta Was this translation helpful? Give feedback.
-
If you don’t see /set flick to 1 then 0 then I doubt it’s MQTT. Set aqualinkd to debug, it will tell you what & why it’s turned something on. |
Beta Was this translation helpful? Give feedback.
-
You have something re-posting MQTT messages to AqualinkD as soon as it starts, and before AqualinkD has even connected to the control panel.
AqualinkD is queuing up these messages and then posts them once it connects to the control panel.
This is your problem. I think you have some form of re-post history on your MQTT server. |
Beta Was this translation helpful? Give feedback.
-
Just thinking about this. What ever you are using to post message for AqualinkD to receive ie the xyz/set topic(s), you probably have the retain and/or QOS flags set when posting that message. That means the broker will ALWAYS resent the last message every time someone subscribes to the topic. Since AqualinkD is subscribing as it just starts, the broker is resending that message. If you are, you need to turn that off as you don’t want last state on the /set topic. |
Beta Was this translation helpful? Give feedback.
-
@mhmatttu I'm sure you have disabled everything. My guess is its the MQTT broker/server that posting the message. ie. application post a messages to topic aqualinkd/xyz/set with retain and/or QOS flags then is turned off. The MQTT broker will post that same message to everyone the subscribes to aqualinkd/xyz/set for eternity (or unless a different message is posted to that topic). |
Beta Was this translation helpful? Give feedback.
-
Thanks again for all your help. I deleted the mosquitto.db file and changed the persistence setting to false in mosquitto.conf. That seems to have resolved the issue. All interfaces are back to running and no issues for now. Thanks! |
Beta Was this translation helpful? Give feedback.
-
Just be careful when you start using your automations again that they don’t set the retain flag against the /set topics. |
Beta Was this translation helpful? Give feedback.
-
I've recently noticed some strange behavior that I believe I have narrowed down to MQTT.
Each time I stop and then restart aqualinkD service, all pool circuits turn on (spa mode, heater, lights, waterfall, blower, etc). This does not happen if I have mosquitto mqtt service disabled.
I do have some integrations (i.e node-red, homebridge-aqualinkd plugin), but disabling these don't seem to change the behavior.
Any ideas on how to troubleshoot this? I have probably messed something up :)
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions