Announcement

Collapse
No announcement yet.

HS4 plugin version now available for download

Collapse
This is a sticky topic.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #31
    Originally posted by sdanks View Post
    Upgraded to .net 6. Then I ran the program in a cmd box. It says:

    Code:
    Unhandled Exception: System.TypeLoadException: Declaration referenced in a method implementation cannot be a final method. Type: 'HSPI_HSBuddy.HSPI'. Assembly: 'HSPI_HSBuddy, Version=4.33.906.1, Culture=neutral, PublicKeyToken=null'.
    at HSPI_HSBuddy.Program.Main(String[] args)​
    Hi sdanks , unfortunately I was not able to repro this on a Win10 system. I'm not familiar with that error, it's the first time I've seen this. One suggestion that might give more clues into what is happening:
    • Open the file HSPI_HSBuddy.exe.config on the HS install folder
    • Uncomment the whole <system.diagnostics> section at the bottom and save the file
    • Try running again from the command line
    Is there any new information output there?

    Comment


      #32
      When my automatic HS4 backup runs, I get this error:
      Warning
      A file cannot be accessed and will be skipped. If this is a plugin owned file the plugin author needs to implement the backup HSEvent: The process cannot access the file 'C:\Program Files (x86)\HomeSeer HS4\Data\HSBuddy\history.db3' because it is being used by another process.
      Warning
      A file cannot be accessed and will be skipped. If this is a plugin owned file the plugin author needs to implement the backup HSEvent: The process cannot access the file 'C:\Program Files (x86)\HomeSeer HS4\Data\HSBuddy\hsbuddy.db3' because it is being used by another process.​​

      So can I assume that HSbuddy stuff is NOT being backed up? I'm getting ready ti upgrade HSbuddy from HS3 to HS4 (since I'm on HS4) and don't want to risk losing all the work I did on dashboards etc.
      thanks,
      JOE

      Comment


        #33
        Hi BJH The HSBuddy plugin keeps a file to its DB open while it is running which interferes with backup. If you are trying to create a manual backup you can workaround this by first stopping HSBuddy (from the plugin management page) then creating the backup. That should clear the error you are seeing and it will include the DB for HSBuddy as part of the backup.

        Comment


          #34
          Still getting this in the HS log: Warning, Cannot load EXE file (possibly missing dependencies) HSPI_HSBuddy.exe: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. Warning, Error details with EXE HSPI_HSBuddy.exe: Declaration referenced in a method implementation cannot be a final method. Type: 'HSPI_HSBuddy.HSPI'. Assembly: 'HSPI_HSBuddy, Version=4.33.906.1, Culture=neutral, PublicKeyToken=null'.
          Tried clicking on HSPI_HSBuddy.exe and still the same error (The cannot be final method error). Do you think maybe installing the HS3 version then upgrading to the HS4 version might work?
          A computer's attention span is as long
          as it's powercord.

          Comment


            #35
            Thank you sir. I'll do that for the manual backups... Can I do a script that will stop hsbuddy at 3am when the auto backups run, and then restart? So that the auto backups does everything?
            I'm a novice when it comes to scripts, only doing a few instant ones to make log entries, so explicit directions or references to docs would be greatly appreciated.
            Thanks Joe

            Comment


              #36
              OK. I performed the steps to upgrade from HSBuddy 3 to now 4.33.906.1. According to the log it worked correctly, and I enabled HSbuddy.
              ON MY PHONE, I went to by dashboard(s) and was able to turn a light on/off - so sounds good so far.
              However, by next step was to ensure the latest versions of dashboards are updated - so I have attempted to UPLOAD from phone to HS (which is running on a windows 10 PC). I g
              et "Operation Failed" after 10-15 seconds. I tried DOWNLOADING (since they were sync'd they should be the same) and I get the same error after about 10 secs, Operation Failed.
              Android phone using 1.0.80. (I have fire tablets also but haven't tried them yet). So no need to update the tablets/phones, right?
              thanks,
              JOE

              Comment


                #37
                Originally posted by sdanks View Post
                Still getting this in the HS log: Warning, Cannot load EXE file (possibly missing dependencies) HSPI_HSBuddy.exe: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. Warning, Error details with EXE HSPI_HSBuddy.exe: Declaration referenced in a method implementation cannot be a final method. Type: 'HSPI_HSBuddy.HSPI'. Assembly: 'HSPI_HSBuddy, Version=4.33.906.1, Culture=neutral, PublicKeyToken=null'.
                Tried clicking on HSPI_HSBuddy.exe and still the same error (The cannot be final method error). Do you think maybe installing the HS3 version then upgrading to the HS4 version might work?
                sdanks I followed up with you directly on DM

                Comment


                  #38
                  Originally posted by BJH View Post
                  OK. I performed the steps to upgrade from HSBuddy 3 to now 4.33.906.1. According to the log it worked correctly, and I enabled HSbuddy.
                  ON MY PHONE, I went to by dashboard(s) and was able to turn a light on/off - so sounds good so far.
                  However, by next step was to ensure the latest versions of dashboards are updated - so I have attempted to UPLOAD from phone to HS (which is running on a windows 10 PC). I g
                  et "Operation Failed" after 10-15 seconds. I tried DOWNLOADING (since they were sync'd they should be the same) and I get the same error after about 10 secs, Operation Failed.
                  Android phone using 1.0.80. (I have fire tablets also but haven't tried them yet). So no need to update the tablets/phones, right?
                  thanks,
                  JOE
                  There's no need to update the phone app when you update the plugin. The error you are getting could be unrelated - I think the best next step would be to send feedback from the app:
                  1. Start a bug report from Options > Feedback
                  2. Retry the operation to upload/download the dashboard
                  3. Send the bug report tapping on the paper-plane icon at the top-left corner

                  Comment


                    #39
                    I am having issues adding zigbee devices to dashboards, I can not add controls only can add the status. am I doing something wrong?

                    Comment


                      #40
                      Have you tried to enabe 'Use legacy device loader' within the plugin settings?
                      After that, my dimming slider control was available again for Zigbee dimmer devices.

                      Comment


                        #41
                        Originally posted by legato View Post
                        Have you tried to enabe 'Use legacy device loader' within the plugin settings?
                        After that, my dimming slider control was available again for Zigbee dimmer devices.
                        no did not help can only add it with a label or status no controls

                        Comment


                          #42
                          Originally posted by GaryDN View Post

                          no did not help can only add it with a label or status no controls
                          Hi. I can look into this. What is the plugin you used to add the device? Is it an HS4 or HS3 plugin?

                          Would you be able to send a feedback report from the app? You can do it from Menu > Options > Feedback. In te report please add the device ref # or name.

                          Out of curiosity, in the app, does the device show controls when you open its details from the Devices section?

                          Comment


                            #43
                            Originally posted by avargaskun View Post

                            Hi. I can look into this. What is the plugin you used to add the device? Is it an HS4 or HS3 plugin?

                            Would you be able to send a feedback report from the app? You can do it from Menu > Options > Feedback. In te report please add the device ref # or name.

                            Out of curiosity, in the app, does the device show controls when you open its details from the Devices section?
                            HS4 plugin

                            Out of curiosity, in the app, does the device show controls when you open its details from the Devices section? yes there are there

                            just sent the feedback with the device name and ref #, I tried other zigbee devices and same issues. I can control them but cant add the controls to a dashboard. only the labels can be added

                            Comment


                              #44
                              Originally posted by GaryDN View Post

                              HS4 plugin

                              Out of curiosity, in the app, does the device show controls when you open its details from the Devices section? yes there are there

                              just sent the feedback with the device name and ref #, I tried other zigbee devices and same issues. I can control them but cant add the controls to a dashboard. only the labels can be added
                              Hello again. Thanks for sending the report. I think the problem is that 1171 does not define controls, but instead those are defined in the feature (child) device 1174 which is named "On/Off". I've noticed that this naming scheme is common for devices created by native HS4 plugins - I think I will have to change how device names are displayed in HSBuddy accordingly.

                              In the meantime, can you check if there's device named "On/Off"? If you add that device does it show the controls?

                              Comment


                                #45
                                Originally posted by avargaskun View Post

                                Hello again. Thanks for sending the report. I think the problem is that 1171 does not define controls, but instead those are defined in the feature (child) device 1174 which is named "On/Off". I've noticed that this naming scheme is common for devices created by native HS4 plugins - I think I will have to change how device names are displayed in HSBuddy accordingly.

                                In the meantime, can you check if there's device named "On/Off"? If you add that device does it show the controls?
                                yes I can add it by the label, screenshots hope this helps (dosing protection) Click image for larger version

Name:	Screenshot_20221120_143455_HSBuddy.jpg
Views:	99
Size:	46.9 KB
ID:	1576694Click image for larger version

Name:	Screenshot_20221120_143420_HSBuddy.jpg
Views:	94
Size:	53.9 KB
ID:	1576695

                                Comment

                                Working...
                                X