Announcement

Collapse
No announcement yet.

How Do I Trigger Manual Polling of Devices?

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

    How Do I Trigger Manual Polling of Devices?

    Mark, I want to be able to poll Insteon devices for status through either a script or an event on demand the same way you can select "Poll Devices For Status" icon in the GUI. Will this poll which KPL Buttons (not load) are ON as well?

    How can this be done?
    ---------------------------------------------------
    Jean-Marie G. Vaneskahian
    jean@vaneskahian.com
    ---------------------------------------------------

    #2
    Your best bet is the standard hs polldevice method.

    here is the hs3 protocol for a vb.net script

    Public Function PollDevice(ByVal dvref As Integer) As IPlugInAPI.PollResultInfo Implements HomeSeerAPI.IPlugInAPI.PollDevice

    it's a little different for hs2

    Public Function PollDevice(ByVal ref As Integer, ByVal housecode As String, ByVal devicecode As String) As String
    Mark

    HS3 Pro 3.0.0.534
    Hardware: Insteon Serial PLM | AD2USB for Vista Alarm | HAI Omnistat2 | 1-Wire HA7E | RFXrec433 | Dahua Cameras | LiftMaster Internet Gateway
    Plugins: Insteon (mine) | Vista Alarm (mine) | Omnistat 3 (by Kirby) | Ultra1Wire3 | RFXCOM | NetCAM | MyQ | BLRadar | BLDenon | Jon00 Charting
    Platform: HP h8-1360t, Windows Server 2012 R2, i7-3.4GHz, 16GB memory

    Comment


      #3
      Mark,

      I am running HS3, would you do me the small favor of showing me the PollDevice method in use in an example script in vb.net (I assume 1 or 2 lines of code once you have the device reference)?

      I do not understand the class IPlugInAPI.PollResultInfo Implements HomeSeerAPI.IPlugInAPI.PollDevice

      Say an Insteon 8 button KPL had a device reference of 230, would a call to the PollDevice method on device ref 230 return anything or just simply populate the current and proper value and status of the 8 buttons on the KPL device in HomeSeer?
      ---------------------------------------------------
      Jean-Marie G. Vaneskahian
      jean@vaneskahian.com
      ---------------------------------------------------

      Comment


        #4
        check out this thread. is discusses polling, specifically post #4

        don't worry about the "Implements HomeSeerAPI.IPlugInAPI.PollDevice"

        your return class is IPlugInAPI.PollResultInfo
        Mark

        HS3 Pro 3.0.0.534
        Hardware: Insteon Serial PLM | AD2USB for Vista Alarm | HAI Omnistat2 | 1-Wire HA7E | RFXrec433 | Dahua Cameras | LiftMaster Internet Gateway
        Plugins: Insteon (mine) | Vista Alarm (mine) | Omnistat 3 (by Kirby) | Ultra1Wire3 | RFXCOM | NetCAM | MyQ | BLRadar | BLDenon | Jon00 Charting
        Platform: HP h8-1360t, Windows Server 2012 R2, i7-3.4GHz, 16GB memory

        Comment


          #5
          There was no link I saw, what thread?
          ---------------------------------------------------
          Jean-Marie G. Vaneskahian
          jean@vaneskahian.com
          ---------------------------------------------------

          Comment


            #6
            http://board.homeseer.com/showthread.php?t=172150
            Mark

            HS3 Pro 3.0.0.534
            Hardware: Insteon Serial PLM | AD2USB for Vista Alarm | HAI Omnistat2 | 1-Wire HA7E | RFXrec433 | Dahua Cameras | LiftMaster Internet Gateway
            Plugins: Insteon (mine) | Vista Alarm (mine) | Omnistat 3 (by Kirby) | Ultra1Wire3 | RFXCOM | NetCAM | MyQ | BLRadar | BLDenon | Jon00 Charting
            Platform: HP h8-1360t, Windows Server 2012 R2, i7-3.4GHz, 16GB memory

            Comment

            Working...
            X