Jump to content

Parity

c4Forums Member
  • Content count

    7
  • Joined

  • Last visited

About Parity

  • Rank
    New Member

Recent Profile Visitors

367 profile views
  1. Light Switch Driver

    Thanks Alan. You're a star!
  2. Light Switch Driver

    do you know how the RELAY works to update the UI on the devices? I have tried the following: C4:SendToProxy(2, "OPEN", {}, "NOTIFY") C4:SendToProxy(2, "CLOSE", {}, "NOTIFY")
  3. Questions about Driverworks

    Not sure if documentation has changed around this, however, this does not seem to work for me. I have a RELAY connection on binding 2. This is connected to say a FAN or RADIANT FLOOR. When in the FAN is switched on, the following is received: PRX_CMD.CLOSE received on Binding 2 The relay is closed on the device and the following is executed C4:SendToProxy(2, "CLOSED", {}, "NOTIFY") Nothing changes on the UI or the status date/time. Similarly if C4:SendToProxy(2, "OPEN", {}, "NOTIFY") is executed. If I invert the relay, the UI does change. Please assist.
  4. Questions about Driverworks

    Not sure if documentation has changed around this, however, this does not seem to work for me. I have a RELAY connection on binding 2. This is connected to say a FAN or RADIANT FLOOR. When in the FAN is switched on, the following is received: PRX_CMD.CLOSE received on Binding 2 The relay is closed on the device and the following is executed
  5. DriverWorks BUTTON_LINK

    Thanks @annex⁴ much appreciated. Works like a charm.
  6. Can someone help with DRIVERWORKS / LUA / SDK assistance. I am writing a driver which has a BUTTON_LINK connection. The idea is that on a specific event, it will "CLICK" the button. This could be linked to a light or an AV device such as a Play/Pause link on an AV device. I am able to send very specific proxy commands such as PLAY or PAUSE or STOP if its an AV device. For example: C4:SendToProxy(2, "PLAY", {} , "COMMAND") But if it is bound to a light then it needs commands such as ON or OFF. C4:SendToProxy(2, "ON", {} , "COMMAND") I was expecting the Director to understand the binding to be able to do this. According to the SDK documenattion the following should work but doesn't: C4:SendToProxy(2, "CLICK_COUNT", {COUNT=1} , "COMMAND")
  7. I have created a proxy driver to control 4 relays. 5 connections: Connection 1 for RS232; Connection 2, 3, 4, 5 for Light (V2) devices. Everything is working well including scenes, etc. The only thing is the UI updating on the various IOS devices. According to Proxy and Protocol Guide 2.9.0 Lighting (V2) protocol Notifications the following should be used to notify the light on binding 2 is OFF or ON: C4:SendToProxy(2,"LIGHT_LEVEL",0,"NOTIFY") C4:SendToProxy(2,"LIGHT_LEVEL",100,"NOTIFY") Neither changes the state of the lights on the UI or in Composer. I have tried various combinations such as local tParams = {} tParams["LEVEL"] = 0 tParams["STATE"] = "off" C4:SendToProxy(2,"LIGHT_LEVEL",0,"NOTIFY") C4:SendToProxy(2,"LIGHT_LEVEL","0","NOTIFY") C4:SendToProxy(2,"LIGHT_LEVEL",tParams,"NOTIFY") C4:SendToProxy(2,"LIGHT_LEVEL", {LEVEL=0}, "NOTIFY") C4:SendToProxy(2,"LIGHT_LEVEL_CHANGED",tParams,"NOTIFY") C4:SendToProxy(2, "LIGHT_LEVEL_CHANGED", {LEVEL=0}, "NOTIFY") C4:SendToProxy(2, "LIGHT_LEVEL_CHANGED", 0 , "NOTIFY")
×