Monday, February 11, 2008

xPL HALi App Available for Download

So I've decided to release my xPL HALi application that I mentioned here. You can get it here. I only implemented portions of HAL I use (no X10, no DMC, no alarm panels, etc.) Just the basics. Don't know what xPL is? Read this and visit the xPL Forums. You'll need to install .NET 2 and .NET 3.5

It issues xpl-trig sensor.basic commands in response to the following events:

  • Listening state changed
    sensor.basic
    {
      device=listen
      type=mic
      current=1
    }
    This message is sent when HAL is listening via microphone. Type will change if VR is via handset.

  • Macro Executed
    sensor.basic
    {
      device=macro
      current=macroname
    }
    Execute 'macroname' macro.

  • New Voice Mail
    sensor.basic
    {
      device=newvmail
      current=1
    }

  • Phone Hook Changed
    cid.meteor
    {
      CallType=outgoing
      CCS=initiated
    }
    Outgoing call started.

  • Phone Ringing
    cid.meteor
    {
      CallType=incoming
      CCS=ring
    }
    Incoming call.

  • Sensor State Changed
    sensor.basic
    {
      device=sensorname
      type=flag
      current=1
    }
    Flag 'sensorname' set to 1. Type can be flag, counter, variable or timer.

  • Speech Notify
    sensor.basic
    {
      device=VR
      current="phrase recognized"
    }
    Recognize the listed phrase via VR.


    The app responds to control.basic xpl-cmnd messages allowing some control of HAL devices:

  • Setting a Flag
    control.basic
    {
      device=sensorname
      type=flag
      current=1
    }
    Set a flag to 1.

  • Setting a Variable
    control.basic
    {
      device=sensorname
      type=variable
      current=1
    }
    Set a variable to 1

  • Setting a Timer
    control.basic
    {
      device=sensorname
      type=timer
      current=60
    }
    Set timer to 60 seconds.

  • Increment a Counter
    control.basic
    {
      device=sensorname
      type=counter
      current=+1
    }

  • Decrement a Counter
    control.basic
    {
      device=sensorname
      type=counter
      current=-1
    }

  • Set a Counter
    control.basic
    {
      device=sensorname
      type=counter
      current=20
    }


  • No comments:

    Post a Comment