Announcement

Collapse
No announcement yet.

No more connection to broker after update HS4 + HS4 Plugin

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    No more connection to broker after update HS4 + HS4 Plugin

    Today I have upgrade my HS3 to HS4 4.1.0, the update was issue free, all went smoothly and legacy plugins, including mcsMWTT are running as expected.

    When I upgraded the 5.3.0.4 legacy mcsMQTT plugin to 5.5.1.4 from the store my MQTT integration stopped working because incoming message where no longer recognized.

    I switched on debug and copied the last relevant content from the debug file:

    23-Aug-20 19:12:40 4734 | Background Send
    23-Aug-20 19:12:40 4947 | Background Init Filters - Background Complete
    23-Aug-20 19:12:40 4948 | Spawning MQTT Threads
    23-Aug-20 19:12:40 4950 | mcsMQTT Debug MQTT Ready
    23-Aug-20 19:12:40 4954 | MQTT Thread Started with broker 1 192.168.1.132, Shutdown=False, Disconnect=False, Client=False, Connected=False
    23-Aug-20 19:12:40 4955 | MQTT Thread Not Connected Yet
    23-Aug-20 19:12:40 4956 | Calling MQTTclient for Broker 1
    23-Aug-20 19:12:40 4956 | HSEvent VALUE_CHANGE| 1024| | 0| 1| 2928
    23-Aug-20 19:12:40 4957 | MQTT Thread Client Created for Broker 1
    23-Aug-20 19:12:40 4957 | MQTT Thread Client ID=mcsMQTT on HS03
    23-Aug-20 19:12:40 4957 | Calling MQTT Connect
    23-Aug-20 19:12:40 4957 | Pre-connect oMQTTClient(0) is Nothing=False
    23-Aug-20 19:12:40 4963 | MQTT Thread Broker 1 192.168.1.132 Connect Response=0
    23-Aug-20 19:12:40 4963 | MQTT Broker 1 Connection Accepted, Connected=True to broker 192.168.1.132
    23-Aug-20 19:12:40 4964 | HSEvent VALUE_CHANGE| 1024| | 1| 0| 2928
    23-Aug-20 19:12:40 4968 | MQTT Thread Subscribing
    23-Aug-20 19:12:40 4971 | MQTT Subscription Start for Broker 1
    23-Aug-20 19:12:40 4971 | MQTT Subscription Topics being selected for Broker 1
    23-Aug-20 19:12:40 4971 | MQTT Subscription Topics selected for Broker 1
    23-Aug-20 19:12:40 4971 | No MQTT Subscriptions have been defined and discovery is not enabled for Broker 1
    23-Aug-20 19:12:49 13272 | HSEvent VALUE_CHANGE| 1024| Arduino, Board:7, Analog Input:1| 2| 1,6| 747
    23-Aug-20 19:12:49 13531 | Page Timing Start
    23-Aug-20 19:12:49 13846 | Sort > 0
    23-Aug-20 19:12:49 13879 | Page Timing End

    The above log file snippit seems to confirm my expectation. I have checked the settings and they seem to to have changed.

    For now I have reverted back to legacy version of the plugin but of course I like to upgrade to the HS4 version.

    Anybody seen this before and has some tips to resolve?

    #2
    What do you have on the General Tab, Inbound Management, Topic Discovery row? Default is to discover all topics. There was a change in the subscription template made with 5.5.1.4 so maybe I messed it up for some selections.

    Comment


      #3
      Michael, thanks for the lightning fast reply (as always )

      my legacy plugin is set to "Listen only for associated and MQTT Trigger topics. I checked after the upgrade in the HS45 plugin and the setting was not changed.

      I believe this is the correct setting??

      Comment


        #4
        It is a good setting. I normally use all topics during my testing. I will look at the code again for the option you selected.

        Comment


          #5
          I did not find anything wrong with subscription, but just to be certain use the same version I am using. A parallel discussion with plugin download link at https://forums.homeseer.com/forum/hs...longer-updated

          Comment


            #6
            Originally posted by Michael McSharry View Post
            I did not find anything wrong with subscription, but just to be certain use the same version I am using. A parallel discussion with plugin download link at https://forums.homeseer.com/forum/hs...longer-updated
            Will post my findings in the other thread

            Comment

            Working...
            X