Announcement

Collapse
No announcement yet.

Login credentials for plugin control

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

    Login credentials for plugin control

    I'm having troubles to configure field "LAN user: pw PW for Plugin Control". I created user and entered username: password (no space after colon, just trying to avoid emojis) to this field, but I'm still getting "Valid login credentials (General Tab) needed to provide HS and plugin start, stop...". Is there some other option to set?
    Attached Files

    #2
    The message means a 401 Unauthorized response is being received from the HS server. Authorization is being done using Basic credentials with the colon between user and password. I can setup to retest this. Are you on Linux or Windows?

    Comment


      #3
      I've tried it once more and it's suddenly working, so sorry for the false alarm. Perhaps I had some wrong char in the pwd? (I think there was a dot, which is not in the new one).
      Currently it logs in fine, but I'm able to restart only the mcsMQTT, if I try for example the "stock" LIFX plugin, I get error, any ideas what might be wrong? (I'm running on Windows)
      Attached Files

      Comment


        #4
        I found an issue with the wrong plugin being started after it was stopped. Assuming this is what you observed then it is fixed with 5.24.4.1 that is at mcsMQTT Change Log (HS4 & HS3) - HomeSeer Message Board This assumes you are using the latest plugin from the updater 5.24.3.5.

        In you case, however, it seems you are not able to stop the plugin. When I try to replicate on my system, the following is contained in mcsMQTT Debug.txt
        Code:
        5/20/2022 9:50:49 AM 804965 | SetIOMulti 3313, oCAPI.ControlType=Button, ControlValue=-2, ControlString=
        5/20/2022 9:50:49 AM 804967 | PluginRequestData LIFX PluginIndex.Count=9
        5/20/2022 9:50:49 AM 804988 | Clear PluginIndex
        5/20/2022 9:50:49 AM 804990 | GetHSPluginList PluginIndex.Count=9
        5/20/2022 9:50:49 AM 804992 | Plugin Command ?enabled_1=unchecked
        5/20/2022 9:50:49 AM 805007 | SubPost Return: ["PAGE_refresh","true"]
        5/20/2022 9:50:49 AM 805087 | Plugin_Action removed id 5 remaining 0
        This is a normal sequence following pressing the disable button from HS Devices page to disable the LIFX plugin. The message you see in the log is that mcsMQTT is then monitoring the process in which the LIFX plugin is running. If it continues to run for five seconds then mcsMQTT will produce that message. The status that the LIFX device shows is based upon monitoring the CPU use and is updated every 60 seconds. This means it may not shown a disabled plugin for up to 60 seconds after it was actioned to be disabled.

        The next step is to add additional debug based upon what you now get in your debug file.

        Comment


          #5
          Yes, I was using the version from updater. I updated to 5.24.4.1 binaries and now I get in the debug log the following:
          Code:
          21.05.2022 9:38:15 503362 | SetIOMulti 445, oCAPI.ControlType=Button, ControlValue=-2, ControlString=
          21.05.2022 9:38:15 503363 | PluginRequestData LIFX PluginIndex.Count=11
          21.05.2022 9:38:15 503448 | Clear PluginIndex
          21.05.2022 9:38:15 503449 | GetHSPluginList PluginIndex.Count=11
          21.05.2022 9:38:15 503449 | Plugin Command ?enabled_6=unchecked
          21.05.2022 9:38:15 503451 | PluginPost http://localhost:80/interfaces Data=?enabled_6=unchecked v System.Net.HttpWebRequest.GetResponse()
          v MCSMQTTHS4_2020.PluginAction.SubmitPost(String sURL, String data) v C:\Users\Public\Documents\TFVC\HS\MQTT\MCSMQTTHS4_2020\CPU.v b:řádek 942
          Line 0 Vzdálený server vrátil chybu: (401) Neověřeno. 0 Vzdálený server vrátil chybu: (401) Neověřeno.
          Which is wierd, because in HS log there are sevaral successful login attempts of that user
          Code:
          Web Server authorized login successful from: 127.0.0.1 User: mcsmqtt_user

          Comment

          Working...
          X