Maxx Posted March 30, 2011 Share Posted March 30, 2011 I try to create a light driver with light proxy but control is from lua code. I want to use the control4 interface thats why I am using light proxy. When I push the light on touch screen driver receives "TOGGLE_PRESET " on binding 5001. I want to toggle the light when I receive this command. I send "SendToProxy(5001, "SET_LEVEL",100)" but nothing happens? Anybody knows how to do that? Link to comment Share on other sites More sharing options...
RyanE Posted March 30, 2011 Share Posted March 30, 2011 Typically, when you *get* something from the proxy, you *send* it to the device, and vice-versa.i.e.:Proxy Command -> Protocol Driver (Lua Code) -> DeviceDevice State Change -> Protocol Driver -> Proxy NotificationThat's the main function of the Protocol Driver, to translate between Control4-specific messages (to / from the Proxy) and the device's Device-specific messages.RyanE Link to comment Share on other sites More sharing options...
Maxx Posted March 30, 2011 Author Share Posted March 30, 2011 The problem is, the light which I am trying to connect has no feedback, and not compatible with the control4 system. Because of that I need to say to the light proxy to update the interface, so I can see the light is on/off. Controller does not know if light is off or on. I need to inform the user, so I need to change the interface. Link to comment Share on other sites More sharing options...
RyanE Posted March 31, 2011 Share Posted March 31, 2011 Sure, you can update the proxy however you want. I was just stating the 'normal case'.RyanE Link to comment Share on other sites More sharing options...
A-Vconcepts Posted March 31, 2011 Share Posted March 31, 2011 Card Access created a light driver that connects to a relay. What lights are you trying to control exactly? Link to comment Share on other sites More sharing options...
Maxx Posted March 31, 2011 Author Share Posted March 31, 2011 Card Access created a light driver that connects to a relay. What lights are you trying to control exactly?Just swith light. I need only on/off case in interface Link to comment Share on other sites More sharing options...
Maxx Posted March 31, 2011 Author Share Posted March 31, 2011 Sure, you can update the proxy however you want. I was just stating the 'normal case'.RyanESo How can I? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.