Jump to content
C4 Forums | Control4

Custom Light Driver


Maxx

Recommended Posts

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


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) -> Device

Device State Change -> Protocol Driver -> Proxy Notification

That'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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.