Announcement

Collapse
No announcement yet.

Script to beep devices?

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

    Script to beep devices?

    I'm going to be putting in a water leak sensor... and I was thinking, what better (and cheaper) way to alert on it than to beep all my insteon devices!

    So, I'm thinking of writing a script that would repeatedly send beep commands to a bunch of devices.

    I'm a software engineer... but I'm not really familiar with the specific homeseer scripting functions. Can someone maybe give an example of what a "beep device" command would look like?

    #2
    there is an event action to do this. i think the insteon cmd is 0x30, 0x00. there is documentation in this forum for sending these to an insteon device via a script
    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
      Excellent. Yeah I am playing with the event action, but I wanted to write a loop instead of having an individual "THEN beep this," "THEN beep that" for every device I want to beep.

      Comment


        #4
        OK so I'm assuming it's this function:

        Public Sub TransmitInsteonCommand(ByVal HC As String, ByVal DC As String, ByVal InsteonCmd1 As Byte, ByVal InsteonCmd2 As Byte)


        What are the parameters? I assume InsteonCmd1 and InsteonCmd2 are the two bytes you just gave me - 0x30, 0x00.

        What are HC and DC?

        Comment


          #5
          that is a legacy call for hs2. use this one for hs3

          Public Sub TransmitInsteonCommand(ByVal Address As String, ByVal InsteonCmd1 As Byte, ByVal InsteonCmd2 As Byte)

          address is the insteon addr in the format of AA.BB.CC. and the cmd1 and cmd2 are the bytes i poosted
          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


            #6
            Is there a way to enumerate the devices that the plugin is aware of?

            Comment


              #7
              you would need to enumerate the hs collection and just check the interface property
              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


                #8
                I like this idea also....
                I want to use Beeps to communicate different states....like the front-of-house motion detector but the beeps are relatively quiet and events that i have used beep then on at a time. I figure a broadcast would be better.

                Is there a way to send a beep to a group or to beep all insteon devices? This is not an option in the event editor.

                Comment


                  #9
                  you would need to send individual beep cmd actions to each device.
                  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