Announcement

Collapse
No announcement yet.

HS3 Scripting - CAPI - Set Device to same status as an other device

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

  • HS3 Scripting - CAPI - Set Device to same status as an other device

    Hi All,

    I don't seem to be getting very far for what i thought would be a simple task.

    Setting a device to be the same value as an other. A Radiator Heating set point to be the same as a VSTAT value.

    If the value of Device with Ref 300 does not equal the value of device with Ref 230, then set value of the device with Ref 300 to the same as that as the device with Ref 230.

    I understand CAPI needs to be used so that the command is sent over the Z-wave network to device.



  • #2
    Something like this:

    Code:
    hs.CAPIControlHandler(hs.CAPIGetSingleControl(targetDev, false, CStr(hs.DeviceValue(sourceDev)), false, true))
    HS 3.0.0.532: 1963 Devices 1141 Events
    Z-Wave 3.0.1.261: 122 Nodes on one Z-Net

    Comment


    • #3
      Originally posted by sparkman View Post
      Something like this:

      Code:
      hs.CAPIControlHandler(hs.CAPIGetSingleControl(targetDev, false, CStr(hs.DeviceValue(sourceDev)), false, true))
      Thanks.

      Works for the setting the value. I will give the IF statement a try tomorrow :-)

      Comment

      Working...
      X