Jump to content
C4 Forums | Control4

Custom Light Driver


Maxx

Recommended Posts

Posted

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?


Posted

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

Posted

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.

Posted
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

Posted
Sure, you can update the proxy however you want. I was just stating the 'normal case'.

RyanE

So How can I?

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.