Announcement

Collapse
No announcement yet.

Discussion for GamePort+ Plugin Version 2.7.0......New!

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

    #31
    I'm not certain if there is a design intent or this is just how it has evolved, but my understanding is as follows:

    An Input type plugin can be an IO type or an X10 type. IO types deal in DeviceValues and X10 types deal in ON/OFF/DIM/... commands/status.

    An X10 device uses the X10Event callback which will set the DeviceStatus and not geneate a SETIO, but can generate a ReceiveX10 event callback(&H1) as well as a State Change event callback (&H4).

    An X10 device, as an output, responds to the ExecX10 command. This generates a SETIO which the plugin used to output the command. TransmitX10 (&H16) and perhaps a State Change event callback (&H4) will be produced. Note that the TransmitX10 event and the SETIO calls are not generated when a SetDeviceStatus are used, hence no output is produced on a SetDeviceStatus.

    An IO device informs HS of an input change with the ValueChange callback. This will let HS change the deviceValue without producing a SETIO call back to the plugins. I forget if the State Change (&H4) event may be geneated.

    An IO devcice, as an output, responds to a SetDeviceValue command. This will generate a SETIO call to which the plugin will service by output of the value. Same memory lapse on the State Change (&H4) event.

    Since the SETIO call is made for both X10 and IO device output commands to a plugin, it is up to the plugin to decipher if it is going to respond to the command (ON/OFF etc) or to the value/brightness parameters. I'm fuzzy on a good decode strategy for the general case since I've seen a variety of combinations occur.

    From a GUI control perspective, if there are only two states it is best viewed as a device that can respond to ON and OFF commands. If it has more than two states then it needs to be controlled as enumerated values which shows up 2 levels lower in the GUI control interface. Just a human-factor difference. From the web view all buttons are at the same level. Only the labeling changes.

    With all this being said, I think what is desired is button inputs to look like ON/OFF commands for which the state is maintained as DeviceStatus. For joystick inputs these are analog and maintained as DeviceValue.

    The button state should be able to be communicated to HS via the X10Event. This will change the status, generate a Callback for the button press (&H1), and a callback for the state change (&H4).

    The joystick update should be done via the ValueChange callback.


    Now that I have gone through this description I can see that the ExecX10 for a button input will work, but conveys the wrong information since it will produce an X10Tansmit event (&H10). The use of the X10Event is most closely aligned with event notification associated with the change of an external input. Don't be confused with the "X10" part of these commands since they apply to any signal that behaves according to ON/OFF type status criteria.


    Of course the above is my view of how the system should function in a predictable manner. There are various combination of commands and callbacks that can be used to achieve any pluign-specific control action. With a variety of plugin authors I'm certain a hodgepodge of techniques are being used.

    Comment


      #32
      I posted the first public beta of my new software:

      http://www.cocoontech.com/index.php?showtopic=228

      ---
      Do you cocoon?
      http://www.CocoonTech.com
      HSPRO 2.4 (ESXi 4.1) | my.Alert NEW | my.Trigger | HSTouch | ACRF2 | UltraM1G | BLWeather | BLLan | Rover
      (aka xplosiv)
      Do You Cocoon? Home Automation News, Tutorials, Reviews, Forums & Chat

      Comment


        #33
        How do I set this up. Do I need to delete the old script? Is there any docs for it?
        Kirk

        http://cleverhouseautomation.ca
        http://southcoastwebsitedesign.ca

        Comment


          #34
          you have to disable the current gameport plugin, then just run this exe, it isn't a HS plugin. Everything else should make sense.

          ---
          Do you cocoon?
          http://www.CocoonTech.com
          HSPRO 2.4 (ESXi 4.1) | my.Alert NEW | my.Trigger | HSTouch | ACRF2 | UltraM1G | BLWeather | BLLan | Rover
          (aka xplosiv)
          Do You Cocoon? Home Automation News, Tutorials, Reviews, Forums & Chat

          Comment


            #35
            Dan you did a great job on this.

            I started to install the new version. I disabled my old gameport plugin.

            I am wondering when the new application asks for the command to be executed when the device turns off, can I put a homeseer command there like hs.speak. or do I have to creat an event in homeseer for this?

            Also in the hs versio of this script I could not do anything with the last 4 devices of the ganeport, I was only using numbers 1-4 of each gameport. With the new app can I use all eight?

            sory for the load of questions but...well you know how it is.
            Kirk

            http://cleverhouseautomation.ca
            http://southcoastwebsitedesign.ca

            Comment


              #36
              I guess I should have worded this better, the command entry boxes allows you to execute an actual application (such as Girder or hsc.exe if you want to control homeseer), so it can run without Homeseer in case you are running it on a different machine. I do have on my to do list to allow one to pick which HS command to execute instead of just an ON / OFF, I guess you beat me to it

              The program should pick up all your interfaces, no matter how many you have, I tested this and had no problems. If you could show me a screenshot or send me the ini file (PM it to me on cocoontech if you want to) and I will take a look at it. Thanks for helping me test this.

              ---
              Do you cocoon?
              http://www.CocoonTech.com
              HSPRO 2.4 (ESXi 4.1) | my.Alert NEW | my.Trigger | HSTouch | ACRF2 | UltraM1G | BLWeather | BLLan | Rover
              (aka xplosiv)
              Do You Cocoon? Home Automation News, Tutorials, Reviews, Forums & Chat

              Comment


                #37
                What do you want a csreen shot of? The app seems to be updating my HS devices ok if that is what you are asking.

                I guess I should still uses events from hs for announcing when doors and windows have been opened then.

                So far so good. I think that my motherboard is doing funny things with my gameports. I get my log filled with actions from the gameport. It shows never ending open and close commands recieved from an external interface. I had this happening before witht he old gameport plugin as well.

                If I go to the gameport setup in my settings, it seems that the status of the joystick for port two jumps between connected and not connected. Bad port I think.
                Kirk

                http://cleverhouseautomation.ca
                http://southcoastwebsitedesign.ca

                Comment


                  #38
                  Did you check/enable "Update on status change only" ? If you enable that, it will only report when there is an actual change, if it's not enabled, it will flood your Homeseer with a lot of data. For now you have to use Homeseer to announce events, but this will be changing very soon (or you can record the TTS to a wav file and have it play the wav file using the command box).

                  ---
                  Do you cocoon?
                  http://www.CocoonTech.com
                  HSPRO 2.4 (ESXi 4.1) | my.Alert NEW | my.Trigger | HSTouch | ACRF2 | UltraM1G | BLWeather | BLLan | Rover
                  (aka xplosiv)
                  Do You Cocoon? Home Automation News, Tutorials, Reviews, Forums & Chat

                  Comment


                    #39
                    Hey Dan,

                    I installed anew motherboard and processor and now I am having problems with the new app.

                    I get the following errorand the app will not start:

                    Runtime error2147467259 80004005)
                    Automation Error
                    unspecified error

                    any ideas?
                    Kirk

                    http://cleverhouseautomation.ca
                    http://southcoastwebsitedesign.ca

                    Comment


                      #40
                      do you have homeseer installed? sounds like a COM error

                      ---
                      Do you cocoon?
                      http://www.CocoonTech.com
                      HSPRO 2.4 (ESXi 4.1) | my.Alert NEW | my.Trigger | HSTouch | ACRF2 | UltraM1G | BLWeather | BLLan | Rover
                      (aka xplosiv)
                      Do You Cocoon? Home Automation News, Tutorials, Reviews, Forums & Chat

                      Comment


                        #41
                        Yes I have Homeseer installed.
                        Kirk

                        http://cleverhouseautomation.ca
                        http://southcoastwebsitedesign.ca

                        Comment


                          #42
                          All references to that exact error message point to some sort of database/sql problem, which the program doesn't use, I will have to do some more research this weekend when I have some time. You said this worked for you before? What changed?

                          ---
                          Do you cocoon?
                          http://www.CocoonTech.com
                          HSPRO 2.4 (ESXi 4.1) | my.Alert NEW | my.Trigger | HSTouch | ACRF2 | UltraM1G | BLWeather | BLLan | Rover
                          (aka xplosiv)
                          Do You Cocoon? Home Automation News, Tutorials, Reviews, Forums & Chat

                          Comment


                            #43
                            I just finished changing motherboards and processors.
                            Kirk

                            http://cleverhouseautomation.ca
                            http://southcoastwebsitedesign.ca

                            Comment


                              #44
                              I still cannot get the app to work. Did you come accross anything?
                              Kirk

                              http://cleverhouseautomation.ca
                              http://southcoastwebsitedesign.ca

                              Comment


                                #45
                                I hate it when I post twice. Oh well I will just edit this one to say nothing I guess.467714
                                Kirk

                                http://cleverhouseautomation.ca
                                http://southcoastwebsitedesign.ca

                                Comment

                                Working...
                                X