Announcement

Collapse
No announcement yet.

Setup questions don't show any available options [Linux]

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

    Setup questions don't show any available options [Linux]

    Originally posted by avpman View Post

    I still can't get this to work on Linux. All of the dropdowns in the setup questions don't show any available options.


    Hi avpman
    I'm moving this to a separate topic to not hijack shill's topic.

    Have to admit that I had not tested on Linux since I first developed this plugin. I just tested on a Debian 11 image under WSL and it seems to work fine. I want to find a solution, but I'm not sure in which direction we should look. Can you provide me with as much info as possible to start figuring this out? I'm thinking:

    - Which Linux distro? Which version of Mono?
    - Which version of HS4?
    - Are you running latest plugin version 1.0.3.0?
    - Which browser? Can you try another? It feels like a javascript problem.
    - Can you post a screenshot?
    - Can you post the source of your settings.html after it loaded? ( view-source:http://172.21.89.98/UpdatesPlugin/settings.html )
    Plugins I developed for HS4: Somfy Local, MiLight (LimitlessLED), Updates, Volvo (VoC), OpenTherm Gateway (OTGW)
    Running HS4 Pro on Windows 10 Pro on a Synology VM, with Node-RED running as a container.

    #2
    Hang on. I just managed to get something like you describe while adding a new setting. Now only to figure out how to restore it. Going back a version does not help. Yet.

    Does it look like this?

    Click image for larger version  Name:	afbeelding.png Views:	0 Size:	74.6 KB ID:	1628198
    Meanwhile fixed it. But new functionality broke it. Let's first see how next version works for you.
    Plugins I developed for HS4: Somfy Local, MiLight (LimitlessLED), Updates, Volvo (VoC), OpenTherm Gateway (OTGW)
    Running HS4 Pro on Windows 10 Pro on a Synology VM, with Node-RED running as a container.

    Comment


      #3
      Originally posted by Bernold View Post
      Hang on. I just managed to get something like you describe while adding a new setting. Now only to figure out how to restore it. Going back a version does not help. Yet.

      Does it look like this?

      Click image for larger version Name:	afbeelding.png Views:	0 Size:	74.6 KB ID:	1628198
      Meanwhile fixed it. But new functionality broke it. Let's first see how next version works for you.
      Yep - that's what it looks like on my system.

      Comment


        #4
        I just uploaded beta 1.0.3.9. Can you test if it works? And if it doesn't, can you check the log for errors?
        Plugins I developed for HS4: Somfy Local, MiLight (LimitlessLED), Updates, Volvo (VoC), OpenTherm Gateway (OTGW)
        Running HS4 Pro on Windows 10 Pro on a Synology VM, with Node-RED running as a container.

        Comment


          #5
          Originally posted by Bernold View Post
          I just uploaded beta 1.0.3.9. Can you test if it works? And if it doesn't, can you check the log for errors?
          Adding this version to HS causes the HS server not to respond. I can't get to any page. Deleting the .exe from the HS directory and HS functionality returns.


          Date/time=8/4/2023 12:04:27 PM EDT
          Version=HS4 Standard Edition 4.2.19.0 (Linux) Ubuntu
          MONO Version=Mono JIT compiler version 6.12.0.200 (tarball Tue Jul 11 21:37:50 UTC 2023)

          License=Registered
          Confguration File=/usr/local/HomeSeer/Data/HomeSeerData.json
          Uptime=0 Days 0 Hours 2 Minutes 3 Seconds
          Lan IP=192.168.1.78 (homeseer-ThinkCentre-M900)
          Device Count=1203
          Event Count=150
          Plugins Enabled=drhsIpPlugIn:,IR Plugin:,EasyTrigger:,BLBackup:,UltraTivo3:,Z-Wave Parameters:,BLLock:,BLLED:,Shark Robot:,MeiKu:,Device History:,SonyTV:,SDJ-Health:,Blue-Iris:,JowiHue:,Controls Plus:,AK Bond:,Z-Wave:,mcsMQTT:,ScreenLogic:,AK Weather:,AK Remootio:,BLLAN:,HomeKit Controller Lite:,UPBSpud:
          Modules/Threads=80 Modules, 133 Threads
          Available Threads=786
          HomeSeer Memory Used=201 Mbytes
          Plugins Installed=AK Bond 4.0.5.18,AK Remootio 4.0.5.0,AK Weather 4.0.5.114,Arduino 4.0.2.20,Big5HS4 3.7.0.0,BLBackup 2.0.63.0,BLLAN 2.0.45.0,BLLED 2.0.1.0,BLLock 3.0.39.0,BLOccupied 2.0.28.0,BLRussound 4.0.5.0,Blue-Iris 3.1.3.33206,Controls Plus 1.3.4.1,Device History 4.5.0.0,drhsIpPlugIn 0.0.0.31,EasyTrigger 3.0.0.78,EnvisaLink 3.0.0.43,HomeKit Controller Lite 4.1.31.0,IR Plugin 4.0.0.6,JowiHue 4.1.0.0,Manage Voice Devices 3.0.0.0,mcsMQTT 6.8.2.0,MeiKu 3.2.0.11,NetCam Plugin 1.0.0.6,OMNI 3.0.2.23,RaspberryIO 3.0.0.21,Ring 1.0.0.44,ScreenLogic 2.1.5.3,SDJ-Health 3.1.1.4,Shark Robot 1.0.8068.17222,SonyTV 3.0.0.6,Tuya 4.0.39.0,Ultra1Wire3 3.0.7364.22993,UltraTivo3 3.0.7956.26531,UPBSpud 3.0.0.54,Z-Wave 3.0.11.0,Z-Wave Parameters 4.0.63.0​

          Comment


            #6
            Wow. Sorry about that. Just checked and I'm on the same HS4 and MONO version.

            Could you go back to release version 1.0.3.0?
            I wonder if you get a config file at all. Can you check? Should be under Config and is named UpdatesPlugin.ini. If it's there, can you check access rights?
            Plugins I developed for HS4: Somfy Local, MiLight (LimitlessLED), Updates, Volvo (VoC), OpenTherm Gateway (OTGW)
            Running HS4 Pro on Windows 10 Pro on a Synology VM, with Node-RED running as a container.

            Comment


              #7
              Originally posted by Bernold View Post
              Wow. Sorry about that. Just checked and I'm on the same HS4 and MONO version.

              Could you go back to release version 1.0.3.0?
              I wonder if you get a config file at all. Can you check? Should be under Config and is named UpdatesPlugin.ini. If it's there, can you check access rights?
              ok with that version (except for not being able to setup).

              Comment


                #8
                Seems like I found a way to recreate. Running another HS4 instance in Docker Desktop. It has the same symptoms, but not all the time (starting beta 1.0.3.9 again after restarting worked). Still, this should help to figure things out. I'll get back to you, but it may take several days.
                Plugins I developed for HS4: Somfy Local, MiLight (LimitlessLED), Updates, Volvo (VoC), OpenTherm Gateway (OTGW)
                Running HS4 Pro on Windows 10 Pro on a Synology VM, with Node-RED running as a container.

                Comment


                  #9
                  I can't recreate the problem anymore, but I was not done debugging. I think it has something to do with an event using the plugin's trigger being incomplete, which makes the plugin crash partly at startup and therefore not returning settings anymore either.

                  Can you help to check if you have an event like that? Please make sure you have plugin version 1.0.3.0 installed enabled before you check, because that's where I went wrong and it was set to the Time trigger (Losing the possibility to go back, without having saved...). Please take a screenshot of the event before expanding it and after expanding it (edit).
                  Plugins I developed for HS4: Somfy Local, MiLight (LimitlessLED), Updates, Volvo (VoC), OpenTherm Gateway (OTGW)
                  Running HS4 Pro on Windows 10 Pro on a Synology VM, with Node-RED running as a container.

                  Comment


                    #10
                    I should probably have added avpman to get your attention for my previous message, since it's not you who started this topic..
                    Hope you can check.

                    I'm about to submit release version 1.0.5.0 with some more features (and a working check for incomplete event triggers...).
                    Plugins I developed for HS4: Somfy Local, MiLight (LimitlessLED), Updates, Volvo (VoC), OpenTherm Gateway (OTGW)
                    Running HS4 Pro on Windows 10 Pro on a Synology VM, with Node-RED running as a container.

                    Comment


                      #11
                      Originally posted by Bernold View Post
                      I can't recreate the problem anymore, but I was not done debugging. I think it has something to do with an event using the plugin's trigger being incomplete, which makes the plugin crash partly at startup and therefore not returning settings anymore either.

                      Can you help to check if you have an event like that? Please make sure you have plugin version 1.0.3.0 installed enabled before you check, because that's where I went wrong and it was set to the Time trigger (Losing the possibility to go back, without having saved...). Please take a screenshot of the event before expanding it and after expanding it (edit).
                      There are no events created yet to trigger by the plugin since I can't get past the setup.

                      Comment


                        #12
                        Originally posted by avpman View Post

                        There are no events created yet to trigger by the plugin since I can't get past the setup.
                        Technically you could create the event as soon as the plugin is running. It would never trigger though.

                        There are a few things I can think of to try. Might get us further. You would do me a great favor figuring this out, because I want to deliver stable plugins.

                        1. Could you check your linux terminal for errors with version 1.0.3.0? Below is what I got when I was able to recreate. Hopefully you'll get something similair.
                        2. Would you mind trying beta 1.0.4.9? I wonder if it crashes like beta 1.0.3.9. It might act the same, but you would know what to do now.
                        3. I could send you a Config file with just the basic settings and no device/features being created and/or a config file that should create all the possible device/features. Which would be a lot for you with the amount of plugins you have.

                        Code:
                        Unhandled Exception:
                        System.ArgumentNullException: Value cannot be null.
                        Parameter name: options
                          at HomeSeer.Jui.Views.SelectListView..ctor (System.String id, System.String name, System.Collections.Generic.List`1[T] options, HomeSeer.Jui.Types.ESelectListType style, System.Int32 selection) [0x0001a] in <ab26f6c28af549c299cd6b6433f19779>:0
                          at HomeSeer.Jui.Views.PageFactory.WithDropDownSelectList (System.String id, System.String name, System.Collections.Generic.List`1[T] options, System.Int32 selection) [0x00000] in <ab26f6c28af549c299cd6b6433f19779>:0
                          at HSPI_UpdatesPlugin.UpdatesPluginUpdateTrigger.InitializeDefaultPage () [0x00035] in <bad99be31a97415ea08933a3de3ac37a>:0
                          at HSPI_UpdatesPlugin.UpdatesPluginUpdateTrigger.OnNewTrigger () [0x00001] in <bad99be31a97415ea08933a3de3ac37a>:0
                          at HomeSeer.PluginSdk.Events.AbstractTriggerType.InflateTriggerFromData () [0x0004e] in <ab26f6c28af549c299cd6b6433f19779>:0
                          at HomeSeer.PluginSdk.Events.AbstractTriggerType..ctor (HomeSeer.PluginSdk.Events.TrigActInfo trigInfo, HomeSeer.PluginSdk.Events.TriggerTypeCollection+ITriggerTypeListener listener, System.Boolean logDebug) [0x00058] in <ab26f6c28af549c299cd6b6433f19779>:0
                          at HSPI_UpdatesPlugin.UpdatesPluginUpdateTrigger..ctor (HomeSeer.PluginSdk.Events.TrigActInfo trigInfo, HomeSeer.PluginSdk.Events.TriggerTypeCollection+ITriggerTypeListener listener, System.Boolean logDebug) [0x00023] in <bad99be31a97415ea08933a3de3ac37a>:0
                          at HSPI_UpdatesPlugin.HSPI.PluginTimer_Elapsed (System.Object sender, System.Timers.ElapsedEventArgs e) [0x0504a] in <bad99be31a97415ea08933a3de3ac37a>:0
                          at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__7_1 (System.Object state) [0x00000] in <d13c8b563008422a8c5aaec0a74089cc>:0
                          at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context (System.Object state) [0x00007] in <d13c8b563008422a8c5aaec0a74089cc>:0
                          at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00071] in <d13c8b563008422a8c5aaec0a74089cc>:0
                          at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <d13c8b563008422a8c5aaec0a74089cc>:0
                          at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () [0x00021] in <d13c8b563008422a8c5aaec0a74089cc>:0
                          at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00074] in <d13c8b563008422a8c5aaec0a74089cc>:0
                          at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in <d13c8b563008422a8c5aaec0a74089cc>:0​
                        Plugins I developed for HS4: Somfy Local, MiLight (LimitlessLED), Updates, Volvo (VoC), OpenTherm Gateway (OTGW)
                        Running HS4 Pro on Windows 10 Pro on a Synology VM, with Node-RED running as a container.

                        Comment


                          #13
                          Originally posted by Bernold View Post

                          Technically you could create the event as soon as the plugin is running. It would never trigger though.

                          There are a few things I can think of to try. Might get us further. You would do me a great favor figuring this out, because I want to deliver stable plugins.

                          1. Could you check your linux terminal for errors with version 1.0.3.0? Below is what I got when I was able to recreate. Hopefully you'll get something similair.
                          2. Would you mind trying beta 1.0.4.9? I wonder if it crashes like beta 1.0.3.9. It might act the same, but you would know what to do now.
                          3. I could send you a Config file with just the basic settings and no device/features being created and/or a config file that should create all the possible device/features. Which would be a lot for you with the amount of plugins you have.

                          Code:
                          Unhandled Exception:
                          System.ArgumentNullException: Value cannot be null.
                          Parameter name: options
                          at HomeSeer.Jui.Views.SelectListView..ctor (System.String id, System.String name, System.Collections.Generic.List`1[T] options, HomeSeer.Jui.Types.ESelectListType style, System.Int32 selection) [0x0001a] in &lt;ab26f6c28af549c299cd6b6433f19779&gt;:0
                          at HomeSeer.Jui.Views.PageFactory.WithDropDownSelectList (System.String id, System.String name, System.Collections.Generic.List`1[T] options, System.Int32 selection) [0x00000] in &lt;ab26f6c28af549c299cd6b6433f19779&gt;:0
                          at HSPI_UpdatesPlugin.UpdatesPluginUpdateTrigger.InitializeDefaultPage () [0x00035] in &lt;bad99be31a97415ea08933a3de3ac37a&gt;:0
                          at HSPI_UpdatesPlugin.UpdatesPluginUpdateTrigger.OnNewTrigger () [0x00001] in &lt;bad99be31a97415ea08933a3de3ac37a&gt;:0
                          at HomeSeer.PluginSdk.Events.AbstractTriggerType.InflateTriggerFromData () [0x0004e] in &lt;ab26f6c28af549c299cd6b6433f19779&gt;:0
                          at HomeSeer.PluginSdk.Events.AbstractTriggerType..ctor (HomeSeer.PluginSdk.Events.TrigActInfo trigInfo, HomeSeer.PluginSdk.Events.TriggerTypeCollection+ITriggerTypeListener listener, System.Boolean logDebug) [0x00058] in &lt;ab26f6c28af549c299cd6b6433f19779&gt;:0
                          at HSPI_UpdatesPlugin.UpdatesPluginUpdateTrigger..ctor (HomeSeer.PluginSdk.Events.TrigActInfo trigInfo, HomeSeer.PluginSdk.Events.TriggerTypeCollection+ITriggerTypeListener listener, System.Boolean logDebug) [0x00023] in &lt;bad99be31a97415ea08933a3de3ac37a&gt;:0
                          at HSPI_UpdatesPlugin.HSPI.PluginTimer_Elapsed (System.Object sender, System.Timers.ElapsedEventArgs e) [0x0504a] in &lt;bad99be31a97415ea08933a3de3ac37a&gt;:0
                          at System.Runtime.CompilerServices.AsyncMethodBuilderCore+&lt;&gt;c.&lt;ThrowAsync&gt;b__7_1 (System.Object state) [0x00000] in &lt;d13c8b563008422a8c5aaec0a74089cc&gt;:0
                          at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context (System.Object state) [0x00007] in &lt;d13c8b563008422a8c5aaec0a74089cc&gt;:0
                          at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00071] in &lt;d13c8b563008422a8c5aaec0a74089cc&gt;:0
                          at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in &lt;d13c8b563008422a8c5aaec0a74089cc&gt;:0
                          at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem () [0x00021] in &lt;d13c8b563008422a8c5aaec0a74089cc&gt;:0
                          at System.Threading.ThreadPoolWorkQueue.Dispatch () [0x00074] in &lt;d13c8b563008422a8c5aaec0a74089cc&gt;:0
                          at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback () [0x00000] in &lt;d13c8b563008422a8c5aaec0a74089cc&gt;:0​
                          Not sure what you mean by opening the terminal. I mean I know how to ssh into the server in a terminal window but not how to collect the above data. HS4 is running as a Service.

                          Comment


                            #14
                            Yeah, I meant the output to console, but if it's running as a service it's probably going to some system log. And I don't have enough Linux knowledge to tell you where.

                            So let's skip that for now. Are you willing to try 1.0.4.9?
                            Plugins I developed for HS4: Somfy Local, MiLight (LimitlessLED), Updates, Volvo (VoC), OpenTherm Gateway (OTGW)
                            Running HS4 Pro on Windows 10 Pro on a Synology VM, with Node-RED running as a container.

                            Comment


                              #15
                              Originally posted by Bernold View Post
                              Yeah, I meant the output to console, but if it's running as a service it's probably going to some system log. And I don't have enough Linux knowledge to tell you where.

                              So let's skip that for now. Are you willing to try 1.0.4.9?
                              Same issue - no options available in setup with 1.0.4.9

                              Click image for larger version

Name:	image.png
Views:	75
Size:	43.2 KB
ID:	1628929

                              Comment

                              Working...
                              X