What are channel_events used for?
vegastech
Posts: 369
It's been a while, so please bear with me: What are channel events used for? I am THINKING that they are used to provide feedback to a particular button based on the execution of that channel event's associated set of code.
0
Comments
Just as when someone or something pushes/releases a button it generates a button event, so it is with a channel. So, if a device's channel turns on or off it generates a channel event.
and example of a way this can be used is.
Power state of a TV turns on channel 255 of a virtual device.
If you tie the power button's feedback on a touch panel to the channel of the virtual device the TP's button feedback will match the power state of the TV.
You can also put a channel event in code to use the channel state.
For example...
a TV lift that brings a TV out of a cabinet when the power is on.
So,
Yeah, you could do that. I have a power timeout module that works exactly that way, but with a virtual device instead of real hardware. (basically it tracks power by sending it power on or off commands. it then sets channel 27 or 28 depending on what it needs to do without repeating commands, and I use a channel_event[] on these.)