Jump to content
C4 Forums | Control4

Programming "OR" condition ComposerPro


deeonline

Recommended Posts

Hi,

I've tried searching this forum and googling on this topic, but no luck. I am wondering if it's possible in ComposerPro 2.8.2 to join two "If" statements with "OR". For example, I want to apply the same set of actions:

1) If home security system is set to Home; OR

2) If home security system is set to Away.

Thank you.

Link to comment
Share on other sites


In your particular example you'd just program that towards:

If security system is armed

This would catch both scenario's anyway.

In general terms, there is no such option, the easiest thing to do here is to create a MACRO, and program what you want against that macro

From there under each possible if statement, execute that macro.

Link to comment
Share on other sites

 

22 minutes ago, Cyknight said:

In your particular example you'd just program that towards:

If security system is armed

This would catch both scenario's anyway.

Thank you. That would work if there was such option. We are testing with Concord4 panel and the only conditional programming options in ComposerPro 2.8.2 are:

1. If Concord4 is in Alarm

2. If Concord4 is Disarmed

3. If Concord4 is Armed Home

4. If Concord4 is Armed Away

Sounds like a macro is one of the possible workarounds. Another option could be setting a global boolean variable "Armed" when the system is armed either Home or Away, and then checking against that variable.

Link to comment
Share on other sites

What driver are you using? Must be the old one.

I'm actually ONLY seeing 'armed' and to do separate options for stay or away would require IF statements on the state etc...

 

And yes, I've got a Concord4. Search for the Superbus2000 driver.

 

 

Link to comment
Share on other sites

10 hours ago, Cyknight said:

What driver are you using? Must be the old one.

I'm actually ONLY seeing 'armed' and to do separate options for stay or away would require IF statements on the state etc...

 

And yes, I've got a Concord4. Search for the Superbus2000 driver.

 

 

I was using GE Interlogix Concord, Device File: securitysystem_232_geconcord.c4i, Proxy File: security.c4i driver up until now. I did a search for "SuperBus2000" and the only match that came up was "SuperBuss 2000 RS-232 Automation Mod" driver. I went ahead and installed it. I do see "Is Armed" option now. And the security interface looks so much better now! Thank you so much @Cyknight. You rock as always!

The only weird thing I've noticed so far is that in System Design I now show two Partitions 6 and no Partition 1. What shows up as "Partition_6" should actually be "Partition 1". But this is a different issue that we'll tackle next.

 

 

Screen Shot 2016-08-31 at 8.49.19 AM.jpg

Link to comment
Share on other sites

Not overly much unless that driver is marked as being replaced within a new driver's code.

Due to the nature of the new proxy, and some of the firmware for the panel recommendations, most updated security drivers will not have that code.

Updated drivers like the new xbox, ps4 etc drivers, new Roku drivers, new DuneHD drivers and so on all do this - but this is based on the new driver itself, not some list the controller creates.

Link to comment
Share on other sites

4 hours ago, deeonline said:

Thank you for the heads-up. I'll see how we can upgrade the current firmware. Everything seems to be working normally so far. The new security panel interface is so much better than what we were looking at so far. :) Thank you @Cyknight

Oh and you can't - Concord panels are not capable of being upgraded.

Like I said, other than some beauty marks, most v4 firmware seems to work ok - it just can't be guaranteed.

Link to comment
Share on other sites

Thank you for the additional info. Would be nice if there was a way to get a list of outdated drivers similar to how npm shows outdated node modules. Anyway, everything is working great right now and the new Superbus2000 driver simplified some programming for us. Appreciate the tip!

Link to comment
Share on other sites

49 minutes ago, deeonline said:

Thank you for the additional info. Would be nice if there was a way to get a list of outdated drivers similar to how npm shows outdated node modules. Anyway, everything is working great right now and the new Superbus2000 driver simplified some programming for us. Appreciate the tip!

There's some functionality introduced there, fairly recently (2.7, 2.8?), but it would take time - and/or dealer effort - for it to start covering older drivers.

In the case of security - this probably wouldn't be possible because it isn't only a new driver - it uses a completely new proxy - making it a lot more complex at best.

Link to comment
Share on other sites

  • 2 weeks later...

@msgreenf Yes, it does. If you prefix your code with '5', then it enters the silent mode. WIth the previous driver, I could send '5' + the security code from the controller in Programming menu to silently disarm the panel. With the new proxy/driver, I don't see that option anymore. Unless, I am not looking at the right place. There is an option to silently arm the panel, but no such option for disarming. Also, it appears there is no longer a way to send individual key presses to the panel with the new driver anymore.

Link to comment
Share on other sites

  • 4 weeks later...
On 8/30/2016 at 8:57 PM, deeonline said:

Hi,

I've tried searching this forum and googling on this topic, but no luck. I am wondering if it's possible in ComposerPro 2.8.2 to join two "If" statements with "OR". For example, I want to apply the same set of actions:

1) If home security system is set to Home; OR

2) If home security system is set to Away.

Thank you.

Generally, just placing 2 IF statements after each other is an equivalent OR function. I usually use the STOP command at the end of the first IF to prevent the possibility of an AND function

Link to comment
Share on other sites

On 10/8/2016 at 10:02 AM, nascent said:

Generally, just placing 2 IF statements after each other is an equivalent OR function. I usually use the STOP command at the end of the first IF to prevent the possibility of an AND function

Excellent idea. A little bit of duplication's still there, but definitely a good workaround. Thank you @nascent

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.