Announcement

Collapse
No announcement yet.

RegisterStatusChangeCB

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

    RegisterStatusChangeCB

    3/7/2013 5:19:04 PM Insteon Received ]1 (Office Light On) Go ON
    3/7/2013 5:19:04 PM statusCallBack.vb House Code: ] Device Code 1 Status: 2 Reference # 9377 Device Value: 0
    3/7/2013 5:19:04 PM statusCallBack.vb House Code: ] Device Code 1 Status: 2 Reference # 9377 Device Value: 100

    This is what I get for a Z-wave device
    3/9/2013 10:26:55 AM Device Update Device: Family room Book shelf Status set to ON
    3/9/2013 10:26:55 AM statusCallBack.vb House Code: Q Device Code 32 Status: 2 Reference # 739 Device Value: 100


    How can I get the Insteon plug in to raise the event only once?
    Thanks,
    Mats

    #2
    what does your declaration for the hs.RegisterStatusChangeCB look like?

    are you registering for status & value changes? how about try it for just value changes using the following EV_TYPE_VALUE_CHANGE

    aso, could you post a detailed log from the plugin showing the plugin log msgs as well as yours.
    Mark

    HS3 Pro 4.2.19.5
    Hardware: Insteon Serial PLM | AD2USB for Vista Alarm | HAI Omnistat2 | 1-Wire HA7E | RFXrec433 | Dahua Cameras | LiftMaster Internet Gateway | Tuya Smart Plugs
    Plugins: Insteon (mine) | Vista Alarm (mine) | Omnistat 3 | Ultra1Wire3 | RFXCOM | HS MyQ | BLRadar | BLDenon | Tuya | Jon00 Charting | Jon00 Links
    Platform: Windows Server 2022 Standard, i5-12600K/3.7GHz/10 core, 16GB RAM, 500GB SSD

    Comment


      #3
      take a look at how I did it:
      http://forums.homeseer.com/showthread.php?t=145834

      --Dan
      Tasker, to a person who does Homeautomation...is like walking up to a Crack Treatment facility with a truck full of 3lb bags of crack. Then for each person that walks in and out smack them in the face with an open bag.

      Comment


        #4
        Originally posted by mnsandler View Post
        what does your declaration for the hs.RegisterStatusChangeCB look like?

        are you registering for status & value changes? how about try it for just value changes using the following EV_TYPE_VALUE_CHANGE

        aso, could you post a detailed log from the plugin showing the plugin log msgs as well as yours.
        I have this in my startup.txt:
        Code:
         
         hs.RegisterStatusChangeCB "statusCallBack.vb","checkStatus"
        and my statusCallback.vb looks like this (just for testing at the moment):

        Code:
         
        Dim Public ID As String = "statusCallBack.vb" 
        Sub checkStatus(ByVal aParm as Object) 
         dim stat, hc, dc, hdc,refID, sName as String 
        dim dv
        dim svalue
        dim sAction
         
        '--------------------------------------------------------------- 
        'PLACE THIS STATEMENT IN YOUR STARTUP SCRIPT 
         ' hs.RegisterStatusChangeCB "statusCallBack.vb","checkStatus" 
        '--------------------------------------------------------------- 
         hc = aParm(0) 
         dc = aParm(1) 
         stat = aParm(2) 
         refID = aParm(3) 
         hdc = hc & dc 
         
          svalue = hs.DeviceValue(hdc)
          hs.writelog(ID,"House Code: " & hc & " Device Code " & dc & " Status: " & stat & " Reference # " & refID & " Device Value: " & svalue) 
         
         End Sub
        How do I get the plugin logs?

        thanks
        Mats

        Comment


          #5
          "plugin logs"?

          do you mean you want to get the status changes from the insteon plugin?

          or something else?
          Mark

          HS3 Pro 4.2.19.5
          Hardware: Insteon Serial PLM | AD2USB for Vista Alarm | HAI Omnistat2 | 1-Wire HA7E | RFXrec433 | Dahua Cameras | LiftMaster Internet Gateway | Tuya Smart Plugs
          Plugins: Insteon (mine) | Vista Alarm (mine) | Omnistat 3 | Ultra1Wire3 | RFXCOM | HS MyQ | BLRadar | BLDenon | Tuya | Jon00 Charting | Jon00 Links
          Platform: Windows Server 2022 Standard, i5-12600K/3.7GHz/10 core, 16GB RAM, 500GB SSD

          Comment


            #6
            Hi Mark,

            No, I was actually refering to the logfiles you asked for earlier:

            could you post a detailed log from the plugin showing the plugin log msgs as well as yours
            thanks
            mats

            Comment


              #7
              well i don't need them now, but for reference:

              the plugin writes to the standard hs log found in \homeseer\logs

              the detail is based on the config setting

              pluing error reports are written to "homeseer\config\insteon error report.log" files
              Mark

              HS3 Pro 4.2.19.5
              Hardware: Insteon Serial PLM | AD2USB for Vista Alarm | HAI Omnistat2 | 1-Wire HA7E | RFXrec433 | Dahua Cameras | LiftMaster Internet Gateway | Tuya Smart Plugs
              Plugins: Insteon (mine) | Vista Alarm (mine) | Omnistat 3 | Ultra1Wire3 | RFXCOM | HS MyQ | BLRadar | BLDenon | Tuya | Jon00 Charting | Jon00 Links
              Platform: Windows Server 2022 Standard, i5-12600K/3.7GHz/10 core, 16GB RAM, 500GB SSD

              Comment

              Working...
              X