Announcement

Collapse
No announcement yet.

Loosing all associations on plugin restart

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

  • Loosing all associations on plugin restart

    When I restart the plugin or HS, all the existing associations from topics to devices are lost!
    I think this has been happening for a long time (over many version), but I haven't used the plugin much, so I'm not sure.

    Current Date/Time: 30/09/2018 11:39:45
    HomeSeer Version: HS3 Standard Edition 3.0.0.435
    Linux version: Linux hs3 4.4.0-135-generic #161-Ubuntu SMP Mon Aug 27 10:46:32 UTC 2018 i686 i686 i686 GNU/Linux System Uptime: 7 Days 13 Hours 25 Minutes 16 Seconds
    IP Address: 192.168..x.x
    Number of Devices: 521
    Number of Events: 284
    Available Threads: 199
    HSTouch Enabled: True
    Event Threads: 2101
    Event Trigger Eval Queue: 0
    Event Trigger Priority Eval Queue: 0
    Device Exec Queue: 0
    HSTouch Event Queue: 0
    Email Send Queue: 0
    Anti Virus Installed:

    Enabled Plug-Ins
    2.0.59.0: BLBackup
    3.0.0.21: Chromecast
    1.3.4.2: Device History
    3.0.0.50: EasyTrigger
    2.0.2.6: JowiHue
    3.4.10.0: mcsMQTT
    3.0.1.109: PHLocation
    0.0.0.38: Pushover 3P
    30.0.0.36: RFXCOM
    3.0.6.5: SDJ-Health
    3.0.8.4: SDJ-VStat
    0.0.0.5: TibberSeer
    3.0.0.88: weatherXML
    3.0.1.190: Z-Wave
    I enabled debug, then restarted the plugin.
    I then re-added the association:
    Click image for larger version

Name:	mqtt1.PNG
Views:	6
Size:	48.6 KB
ID:	1250444

    Then I restarted the plugin, and the association is lost:
    Click image for larger version

Name:	mqtt2.PNG
Views:	6
Size:	22.0 KB
ID:	1250445

    If I try to re-associate with 1284, I get an error:
    Click image for larger version

Name:	mqtt3.PNG
Views:	6
Size:	146.8 KB
ID:	1250446


    Log is attached.

    Hope this can be fixed, since this is by far the best MQTT-plugin!

  • #2
    Also, I notice the refID "jumps" alot between each restart:
    Click image for larger version

Name:	mqtt4.PNG
Views:	6
Size:	14.1 KB
ID:	1250449

    There are no devices between 1267 and 1284 - they simply don't exist.

    Comment


    • #3
      The debug does not indicate anything unusual other than only two devices are being initialized from the database at \data\mcsMQTT\mcsMQTT.db. It appears info is not being stored/retained in the database. With each restart a backup copy of the database is created in the same folder as the primary database.

      There are three things I suggest. The first is to observe the HS Log to be certain no error messages are being generated. The second is to delete mcsMQTT.db and let it be recreated. The third is to post or email to mcsSolutions at CenturyTel dot net the file mcsMQTT.db. After that the next step would be special builds to help isolate what is happening on your system.

      Comment


      • #4
        Originally posted by Michael McSharry View Post
        The first is to observe the HS Log to be certain no error messages are being generated.
        No errors in the log on plugin startup:
        Oct-03 08:41:10 mcsMQTT MQTTClient is Connected
        Oct-03 08:41:05 Starting Plug-In Plugin mcsMQTT started successfully in 2665 milliseconds
        Oct-03 08:41:02 Starting Plug-In Initializing plugin mcsMQTT ...
        Oct-03 08:41:02 mcsMQTT Version 3.4.10.0 Registered with Homeseer
        Oct-03 08:41:02 Info Plugin mcsMQTT has connected. IP:127.0.0.1:52748
        Oct-03 08:41:02 Plug-In Finished initializing plug-in mcsMQTT
        Oct-03 08:40:56 Info Plugin mcsMQTT with instance: has disconnected
        Oct-03 08:40:56 Plug-In Shutting down Plug-In: mcsMQTT
        Originally posted by Michael McSharry View Post
        The second is to delete mcsMQTT.db and let it be recreated.
        Did that, and that seems to have solved it!
        I've restarted the plugin a couple of times now and the associations seems to be retained.

        Comment


        • #5
          Any chance to make it possible to re-pair to devices? It was possible in earlier versions, but now all I get is this:
          Originally posted by ZoRaC View Post
          Click image for larger version

Name:	mqtt3.PNG
Views:	6
Size:	146.8 KB
ID:	1250446
          I have set up graphs on a few devices, would really like to be able to continue with the same device instead of a new one...

          Comment


          • #6
            The ref text box allows existing non-plugin devices to be associated. If the ref is an existing pluign device then it is already associated with another topic. If the ref does not exist then the pluign has no means to create it since HS assigns the ref property to a device when a device is created.

            Graphs in mcsMQTT of plugin devices are based on the Topic and not the ref of a device. If a different graph utility is being used then you need to look into how to update the database of that utility to change the old device ref that no longer exists in HS to the new on that is associated with subscribed topic.

            Comment


            • #7
              I got a similar problem again. Seems these devices are recreated at some point (these have devId around 1500 now and have the highest devid’s of all). Any reason why these would be recreated on reboot or at other times?

              Click image for larger version

Name:	448149B3-CEEB-4483-911F-C335C37C1C74.jpeg
Views:	7
Size:	110.8 KB
ID:	1274809

              Comment


              • #8
                Here the same... When mcsMQTT Status Devices are created as homeseer status devices these are recreated after a restart of the plugin or homeseer.

                I then selected this option in the general setup page: Show Statistics in HS Devices and mcsMQTT Statistics Tab

                Comment


                • #9
                  This was fixed in 3.4.17.3 and 3.4.17.4 has been submitted to Updater waiting for publishing. You can get HSPI_mcsMQTT.exe from http://mcsSprinklers.com/mcsMQTT_3_4_17_4.zip and manually replace the file in the HS folder or wait for it to show up in the Updater.

                  Comment


                  • #10
                    Originally posted by Michael McSharry View Post
                    This was fixed in 3.4.17.3 and 3.4.17.4 has been submitted to Updater waiting for publishing. You can get HSPI_mcsMQTT.exe from http://mcsSprinklers.com/mcsMQTT_3_4_17_4.zip and manually replace the file in the HS folder or wait for it to show up in the Updater.
                    Thanks!
                    Just updated from the updater, I’ll see how it goes.

                    Comment

                    Working...
                    X