Announcement

Collapse
No announcement yet.

Jon00 Device Grouping Utility (web page) for Homeseer 3 & Homeseer 4

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

    Originally posted by MattL0 View Post
    Yes, this is not you, this a compilation bug on Mono for aspx pages.

    A workaround can be found here on post #3 : https://forums.homeseer.com/forum/ho...ge-compilation

    But here are the steps:

    1. SSH into your Linux box , with a program like putty.

    2. Enter this command :
    Code:
    sudo rm /usr/bin/vbnc
    3. Then enter this
    Code:
     sudo nano /usr/bin/vbnc
    4. paste this code :

    Code:
    #!/bin/bash
    for x; do
    if [[ $x = '/tmp'* ]]; then
    sed -i '1{/#Externa/d}' $x
    fi
    done
    exec /usr/bin/mono --debug $MONO_OPTIONS /usr/lib/mono/4.5/vbnc.exe "$@"
    5. press ctrl+o to save it then enter.

    6. try to get into http://172.16.1.87:80//Jon00Grouping.aspx again
    Thanks for the tip. I went and just went into my system and did it through xterm.
    However this is what I ended up with when I tried to get back into the utilty.

    Attached Files

    Comment


      Maybe doing this command would help :
      Code:
      chmod +x /usr/bin/vbnc
      if that does not work i don’t know

      Comment


        Originally posted by MattL0 View Post
        Maybe doing this command would help :
        Code:
        chmod +x /usr/bin/vbnc
        if that does not work i don’t know
        Yeah it did not work ended up saying chmod: changing permissions of '/usr/bin/vbnc/': Operation not permitted

        Comment


          zwolfpack Sorry again,

          my linux knowledge is limited. Do you have an idea ?

          Comment


            Maybe... one thing to try would be to add your homeseer user to a group.

            and then add root and homeseer user to that group.

            I think it would be necessary to redo your permission Of the xbnc file to work with the root:group .

            Not sure about this , but you’ll surely get a better answer soon

            Comment


              Originally posted by jdkluck View Post

              Yeah it did not work ended up saying chmod: changing permissions of '/usr/bin/vbnc/': Operation not permitted
              That with all the above quoted below, worked perfectly!


              Originally posted by MattL0 View Post

              Yes, this is not you, this a compilation bug on Mono for aspx pages.

              A workaround can be found here on post #3 : https://forums.homeseer.com/forum/ho...ge-compilation

              But here are the steps:

              1. SSH into your Linux box , with a program like putty.

              2. Enter this command : Code:

              sudo rm /usr/bin/vbnc
              3. Then enter this Code:

              sudo nano /usr/bin/vbnc
              4. paste this code :
              Code:

              #!/bin/bash for x; do if [[ $x = '/tmp'* ]]; then sed -i '1{/#Externa/d}' $x fi done exec /usr/bin/mono --debug $MONO_OPTIONS /usr/lib/mono/4.5/vbnc.exe "$@"
              5. press ctrl+o to save it then enter.

              6. try to get into http://172.16.1.87:80//Jon00Grouping.aspx again

              Comment


                Every time I have to restart Homeseer, my device groupings revert back to the way that they were. Is this normal? Is there something that I'm doing wrong?

                Comment


                  Are you trying to change the groupings of plugins?
                  Jon

                  Comment


                    They are not associated to Plugins, exactly. Not sure if the ZWave Plugin counts. They are zWave switches. When it resets, they show as Standalone.

                    Comment


                      Yes, z-wave devices will be managed by Homeseer so they may very well get reset.



                      Jon

                      Comment


                        I'm assuming that there's no way to make it not happen?

                        Comment


                          Unfortunately that is a no.
                          Jon

                          Comment


                            Fair enough, Thanks Jon. It's really more of an annoyance than anything, I mainly just wanted to make sure it wasn't something that I wasn't doing right.

                            Comment


                              jon00 I am hoping you can help...

                              I have tried everything here to get your utility working and I am stuck at the script error others have.

                              I really just need to change a single device. I coped a device that was associated with a plugin, I really was looking to save myself some time not replicating the huge status graphics values.

                              The copied device is still associated with the plugin. I just want it stand-alone so I can manually set the values with an event.

                              Click image for larger version

Name:	Screen Shot 2020-05-20 at 12.15.12 PM.jpg
Views:	245
Size:	99.9 KB
ID:	1387161

                              My real questions are: Will your script allow me to do this, if I ever get it working?
                              Is there a simple command/script I can run just to clear out the associations with he old plug-in so I can remove the status-only setting?
                              I have been searching and working on this for hours (really nullifies my original goal )

                              thanks!

                              Scott

                              Comment


                                The utility will only allow you to change the relationship status; nothing else.

                                If you want to change other parameters, you need to look at scripting and look at the device class: http://help.homeseer.com/help/HS3/st...s_deviceclass1

                                Here is a quick example to get you going:

                                Code:
                                  Sub Main(ByVal Parm As Object)
                                
                                        Dim dv As Scheduler.Classes.DeviceClass = Nothing
                                
                                        dv = hs.GetDeviceByRef(857)
                                        dv.Address(hs) = ""
                                        dv.Interface(hs) = ""
                                        dv.Device_Type_String(hs) = ""
                                        dv.MISC_Set(hs, &H100)
                                        dv.Status_Support(hs) = False
                                
                                    End Sub
                                What issues are you having with running my utility? I assume running on Linux with a page error?
                                Jon

                                Comment

                                Working...
                                X