Announcement

Collapse
No announcement yet.

RaspberryIO - Beta Testing

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

  • #46
    Disable plugin before update

    Probably need to add to installation instructions that the plugin should be disabled before updating (at least on Windows), otherwise get the error:
    "Install/Update of package Raspberry IO failed"

    Comment


    • #47
      Question - does it support NanoPi? I suspect unlikely?

      Comment


      • #48
        Originally posted by alexbk66 View Post
        Question - does it support NanoPi? I suspect unlikely?
        yeah I don't think it would work.

        Comment


        • #49
          Hello,
          I just updated my plugin from 30013 to 30014. I have my PI set up with a relay board and was working well but wanted to test the latest feature in 14, monitoring the output if changed by another program. I have the plugin set to load at boot time. I noticed that now when the Pi boots and initializes the plugin, all of the 8 outputs I am using turn on. I can turn them back off in HS3. This was not the case with 13. What logs should I provide for this beta test?

          Thanks

          Comment


          • #50
            Originally posted by Marty_B View Post
            Hello,
            I just updated my plugin from 30013 to 30014. I have my PI set up with a relay board and was working well but wanted to test the latest feature in 14, monitoring the output if changed by another program. I have the plugin set to load at boot time. I noticed that now when the Pi boots and initializes the plugin, all of the 8 outputs I am using turn on. I can turn them back off in HS3. This was not the case with 13. What logs should I provide for this beta test?

            Thanks
            does it happen also when you restart the plugin or only when you reboot the RPi?
            Set the log level to Debug, then restart the plugin (or reboot the RPi) then post your logs.

            Comment


            • #51
              Hi Spud,
              It only does it when the plugin auto starts at boot time. It does not do it if I restart the plugin. Below are the logs as requested.
              Thanks for your help.
              Dec-07 11:17:55 AM Z-Wave Device: Basement Playroom Luminance Set to 0 (%)
              Dec-07 11:17:43 AM Z-Wave Device: MainLevel MasterBedroom Temperature Set to 68.8 (F)
              Dec-07 11:16:55 AM Z-Wave Device: Basement Playroom Temperature Set to 65.3 (F)
              Dec-07 11:16:22 AM Z-Wave Device: MainLevel Hallway Fan State Set to Fan State 0
              Dec-07 11:16:22 AM Z-Wave Device: MainLevel Hallway Temperature Set to 70 (F)
              Dec-07 11:16:16 AM RaspberryIO DEBUG Setting name to Spare Out GPIO 26 K1 for Pin26
              Dec-07 11:16:16 AM RaspberryIO DEBUG Setting pulse duration to 1000ms for Pin26
              Dec-07 11:16:16 AM RaspberryIO DEBUG Pin26 value changed to On
              Dec-07 11:16:16 AM RaspberryIO DEBUG Setting Reversed flag to True for Pin26
              Dec-07 11:16:16 AM RaspberryIO DEBUG Setting direction to Output for Pin26
              Dec-07 11:16:16 AM RaspberryIO DEBUG Setting name to Gate Open Out GPIO13 K2 for Pin13
              Dec-07 11:16:16 AM RaspberryIO DEBUG Setting pulse duration to 1000ms for Pin13
              Dec-07 11:16:16 AM RaspberryIO DEBUG Pin13 value changed to On
              Dec-07 11:16:16 AM RaspberryIO DEBUG Setting Reversed flag to True for Pin13
              Dec-07 11:16:16 AM RaspberryIO DEBUG Setting direction to Output for Pin13
              Dec-07 11:16:16 AM RaspberryIO DEBUG Setting name to Gate Single Button Out GPIO6 K3 for Pin6
              Dec-07 11:16:16 AM RaspberryIO DEBUG Setting pulse duration to 1000ms for Pin6
              Dec-07 11:16:16 AM RaspberryIO DEBUG Pin6 value changed to On
              Dec-07 11:16:16 AM RaspberryIO DEBUG Setting Reversed flag to True for Pin6
              Dec-07 11:16:16 AM RaspberryIO DEBUG Setting direction to Output for Pin6
              Dec-07 11:16:16 AM RaspberryIO DEBUG Setting name to Gate Reset Out GPIO5 K4 for Pin5
              Dec-07 11:16:16 AM RaspberryIO DEBUG Setting pulse duration to 1000ms for Pin5
              Dec-07 11:16:16 AM RaspberryIO DEBUG Pin5 value changed to On
              Dec-07 11:16:16 AM RaspberryIO DEBUG Setting Reversed flag to True for Pin5
              Dec-07 11:16:16 AM RaspberryIO DEBUG Setting direction to Output for Pin5
              Dec-07 11:16:16 AM RaspberryIO DEBUG Setting name to Gate Stop Out GPIO22 K5 for Pin22
              Dec-07 11:16:16 AM RaspberryIO DEBUG Setting pulse duration to 1000ms for Pin22
              Dec-07 11:16:16 AM RaspberryIO DEBUG Pin22 value changed to On
              Dec-07 11:16:16 AM RaspberryIO DEBUG Setting Reversed flag to True for Pin22
              Dec-07 11:16:16 AM RaspberryIO DEBUG Setting direction to Output for Pin22
              Dec-07 11:16:16 AM RaspberryIO DEBUG Setting name to Gate Light1 Out GPIO27 K6 for Pin27
              Dec-07 11:16:16 AM RaspberryIO DEBUG Setting pulse duration to 1000ms for Pin27
              Dec-07 11:16:16 AM RaspberryIO DEBUG Pin27 value changed to On
              Dec-07 11:16:16 AM RaspberryIO DEBUG Setting Reversed flag to True for Pin27
              Dec-07 11:16:16 AM RaspberryIO DEBUG Setting direction to Output for Pin27
              Dec-07 11:16:16 AM RaspberryIO DEBUG Setting name to Gate Light2 Out GPIO17 K7 for Pin17
              Dec-07 11:16:16 AM RaspberryIO DEBUG Setting pulse duration to 1000ms for Pin17
              Dec-07 11:16:16 AM RaspberryIO DEBUG Pin17 value changed to On
              Dec-07 11:16:16 AM RaspberryIO DEBUG Setting Reversed flag to True for Pin17
              Dec-07 11:16:16 AM RaspberryIO DEBUG Setting direction to Output for Pin17
              Dec-07 11:16:16 AM RaspberryIO DEBUG Setting name to Low V Lights Out GPIO 4 K8 for Pin4
              Dec-07 11:16:16 AM RaspberryIO DEBUG Setting pulse duration to 1000ms for Pin4
              Dec-07 11:16:16 AM RaspberryIO DEBUG Pin4 value changed to On
              Dec-07 11:16:16 AM RaspberryIO DEBUG Setting Reversed flag to True for Pin4
              Dec-07 11:16:16 AM RaspberryIO DEBUG Setting direction to Output for Pin4
              Dec-07 11:16:14 AM RaspberryIO INFO Serial number: 00000000282a94c0
              Dec-07 11:16:14 AM RaspberryIO INFO Firmware rev10494163, board model B3Plus (Raspberry Pi 3 Model B+)
              Dec-07 11:16:14 AM RaspberryIO INFO Raspberry Pi running on Bcm2709 processor
              Dec-07 11:16:09 AM Starting Plug-In Plugin RaspberryIO started successfully in 512 milliseconds
              Dec-07 11:16:09 AM RaspberryIO INFO RaspberryIO version 3.0.0.14
              Dec-07 11:16:08 AM Starting Plug-In Initializing plugin RaspberryIO ...
              Dec-07 11:16:08 AM Info Plugin RaspberryIO with instance homeseerpi has connected. IP:192.168.11.104:33414
              Dec-07 11:15:55 AM Z-Wave Device: Basement Playroom Motion sensor Set to NOTIFICATION for type Home Security, Event: No Motion
              Dec-07 11:15:32 AM Info Plugin RaspberryIO with instance: homeseerpi has disconnected
              Dec-07 11:15:22 AM Info Plugin RaspberryIO with instance: homeseerpi has disconnected
              Dec-07 11:15:11 AM Z-Wave Device: MainLevel MasterBedroom Luminance Set to 166 (Lux)

              Comment


              • #52
                What happens is that on boot the RPi initializes those GPIO as low, since you are using the reversed flag, low means ON.
                It was working on previous version because before 3.0.0.14, the plugin initialized the GPIO at startup with the value of the corresponding HS3 device. I removed that behavior because it does not make much sense: if the plugin is not running and something else (another program) changes the GPIO, then restarting the plugin would result on the GPIO changing value.

                Here are some possible solutions for you:
                (1) Configure your relay board so that you don't have to use the reversed flag:
                (2) Add a script that would be run when the RPi boots, and that sets those GPIO to High
                (3) Wait for me to add a setting in the plugin to tell what to do with the GPIO when the plugin starts.

                Comment


                • #53
                  I prefer option 3. I assume you will have this done in the next day or two? (Kidding ) I was actually going to ask for this as a feature request. In the mean time I will look into option 2. Thanks again for your help.

                  Comment


                  • #54
                    Originally posted by Marty_B View Post
                    I prefer option 3. I assume you will have this done in the next day or two? (Kidding ) I was actually going to ask for this as a feature request. In the mean time I will look into option 2. Thanks again for your help.
                    Please try version 3.0.0.15 available in the Beta section of the updater. This version has an "Init Value" parameter for output pins. Setting it to "From Device" or "Off" should fix your issue.

                    Comment


                    • #55
                      Perfect. I will try it tonight when I get home. Thanks a bunch.

                      Comment


                      • #56
                        Seems to be working on the machine but no rasberryIO remote on the windows machine under manage plugins just remote plugin

                        Comment


                        • #57
                          Originally posted by Tj in Bristol View Post
                          Seems to be working on the machine but no rasberryIO remote on the windows machine under manage plugins just remote plugin
                          that's ok it is only supposed to appear in the "remote plugins" section of the "manage plugins" page.

                          Comment


                          • #58
                            I only see 3.0.0.14 in the beta area of the updater.

                            Nevermind, I figured it out.
                            Last edited by Marty_B; December 15th, 2018, 08:10 PM. Reason: I am stupid.

                            Comment


                            • #59
                              Hi Spud, This seems to work as described. Thanks for the quick response.

                              Comment


                              • #60
                                the
                                Originally posted by spud View Post
                                Instructions to run the plugin remotely are now available in the User Guide
                                @spud, while working on my own plugin, I found that to display the plugin name in remote section you need to call
                                Code:
                                Callback.RegisterConfigLink(wpd);
                                You can set link to "http://192.168.0.14/raspberryioconfig?instance=RasPi"

                                Click image for larger version  Name:	Capture.PNG Views:	1 Size:	46.7 KB ID:	1274755

                                Interesting though why for my plugin there's "Disconnect" button? And for yours - "N/A"?

                                Comment

                                Working...
                                X