Announcement

Collapse
No announcement yet.

How Do I Trigger Manual Polling of Devices?

Collapse
This topic is closed.
X
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 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
      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 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


          #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 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