Jump to content
C4 Forums | Control4

danjonwig

c4Forums Member
  • Posts

    2
  • Joined

  • Last visited

danjonwig's Achievements

  1. Thank you kindly. This is a clever way to reduce and centralize the code given the limitations, I'll take you up on it; thanks! Not meaning to speak ill of Control 4, I'm genuinely impressed by what they've been able to create for folks *without* requiring programming. But it would be kind of nice if they'd also let us peek under the hood if we're comfortable doing it. Thank you for taking the time to answer; wonderful to have this community available as folks are learning!
  2. I'm just getting-in to using Composer HE to do some customization. Some very cool stuff! The use of visual programming makes it accessible, which is nice, but is there a way to get 'under the hood' a bit more? e.g., here's what I want to do: 1. I have a security system which, when in 'stay' mode, will trip whenever someone opens a door, window, or trips a glass-break 2. When one of those events happens, we get 60 seconds to enter the code to keep the alarm from going off 3. Those 60 seconds are known only to those who are close enough to the security system's native keypad; which is hidden in the basement next to my server rack (i.e. we can't hear any of the noises it makes) 4. Last night, I wrote-up a function where if anyone opens a door or window on the first floor, which has a big open floor plan, all the lights on the floor start to flash on & off (all LED so no biggie on the electrical load). This is great, and my wife was actually pleased with one of my programs (for the first time! :). But now, I want to do the same thing on the other floors. However, those floors have actual rooms with doors (e.g. bedrooms, sitting room, home theatre, etc). So here's my scenario: my kids are all asleep, and I open a window late at night forgetting about the alarm (duh). I would like the lights to flash in *that* room, not everywhere in the house, and save the embracement of waking everyone up with the alarm. If I was writing this in a programming language, I would create a function that I would call on opening of every security sensors. The function would take the parameter of which room invoked the call, check if the alarm is armed, then start to blink for *that room*. So far as I can tell, there is no way to write a generic function where I just pass it a variable (the room where the sensor is). Instead, I have to basically write the same program, over and over again, for every room, changing the name of the sensor and lighting scenes manually. Is there any way to write generic functions that take parameters in C4 Composer?
×
×
  • Create New...

Important Information

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