Announcement

Collapse

Contacting HomeSeer This Week

HomeSeer is open and operational this week. All orders are being processed and shipped as usual. However, some staff are working from home. If you need to contact HomeSeer for support or customer service, please use our Email or Chat options. https://homeseer.com/contact-us/
See more
See less

SetStatus

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

  • SetStatus

    I wish to command my Homeseer devices from xAP with the homeseer.command schema.
    I send this xAP message to set my deviced A1 to ON :

    xap-header
    {
    v=12
    hop=1
    uid=FF411200
    class=homeseer.command
    source=nicolas.test.cnicolas
    }
    homeseer.command
    {
    command=SetValue
    data1=A1
    data2=ON
    data3=
    data4=
    }

    But in Homeseer log I have the error :
    18/05/2006 21:45:24~!~xAP Conduit~!~xAP event error Type incompatible

    What is the correct syntax for SetValue ?

    Thank if you can help me.

  • #2
    In the mcsXap homeseer plugin the Homeseer.Command schema mirrors the Homeseer Methods and Properties.

    For the SetDeviceValue it is the following to set the value to 1.

    Command=SetDeviceValue
    Data1=1

    For the SetDeviceStatus to ON it is the following. A number of 2 is used because that is Homeseer/X10 convention for ON status.

    Command=SetDeviceStatus
    Data1=2

    It can also be done with the ExecX10 method which is closer to what you may be expecting

    Command=ExecX10
    Data1=ON

    While these may not apply directly to xAPConduit, it may give you some ideas to try.

    Comment


    • #3
      OK, thank for your help. After search the correct syntax is ::
      xap-header
      {
      v=12
      hop=1
      uid=FF411200
      class=homeseer.command
      source=nicolas.test.cnicolas
      }
      homeseer.command
      {
      command=ExecX10
      data1=A1
      data2=ON
      data3=0
      data4=0
      }

      Thanks again

      Comment

      Working...
      X