Please login or register.

Login with username, password and session length

Author Topic: Using "Flags" Question  (Read 6932 times)

Q-man

  • Jr. Member
  • **
  • Helpful Post Rating: 0
  • Posts: 11
Using "Flags" Question
« on: January 13, 2007, 08:33:40 PM »

OK ill see if i can do this justice.  I want to use a remote wall switch to toggle on  B8 to turn a macro on and off.  The macro uses a eagle eye 2 for the trigger, than turns on a lamp.  So, i made a dummy module (AM466)  in AHP with smart macro plug-in set to B8.  I have two macros, the first "sets" flag 2 when dummy module b8 is toggled on and the second macro clears selected flags "2" when i toggle b8 off.   The eagle eye 2 macro is set up so that if b10 (the eagle eye code) is triggered and flag 2 is set or on, then turn on B6 (which is the lamp code) then delay 1 minute then turn off. 

A couple of things i can do,  I can turn on the lamp B6 from AHP and from a remote.  AHP does indicate the on off status real time.    Using the "Activity Monitor" i see that B8 is turnend on then B10 is on "when i walk by it" and then it toggles B6 on "the lamp"...but the lamp doesn't turn on, on my desk!  I have downloaded all macros to the 2-way interface module as well. 

I hoping I'm just not using flags exactly right and would appreciate some advice!  Thanks!
Logged

Puck

  • Advanced Member
  • Hero Member
  • ******
  • Helpful Post Rating: 171
  • Posts: 1799
Re: Using "Flags" Question
« Reply #1 on: January 13, 2007, 09:19:32 PM »

I want to use a remote wall switch to toggle on  B8 to turn a macro on and off.  The macro uses a eagle eye 2 for the trigger, than turns on a lamp. 

Is the remote wall switch triggering B8 or the EagleEye motion sensor, or both?

Quote
So, i made a dummy module (AM466)  in AHP with smart macro plug-in set to B8.

A dummy module isn't required if you just want to trigger a macro from a remote or a motion sensor.

Quote
The eagle eye 2 macro is set up so that if b10 (the eagle eye code) is triggered and flag 2 is set or on, then turn on B6 (which is the lamp code) then delay 1 minute then turn off.

Is this the same EagleEye as mentioned above? 

Is this what you have:

B6 Lamp
B8 Remote Wall Switch
B10 EagleEye motion detector

Macro1: Trigger B8 ON
 - Set Flag 2

Macrco2: Trigger B8 OFF
 - Clear Flag 2

Macro3: Trigger B10 ON & Flag 2 ON
 - Turn B6 ON
 - Delay 1 minute
 - Tiurn B6 OFF


Quote
A couple of things i can do,  I can turn on the lamp B6 from AHP and from a remote.  AHP does indicate the on off status real time.    Using the "Activity Monitor" i see that B8 is turnend on then B10 is on "when i walk by it" and then it toggles B6 on "the lamp"...but the lamp doesn't turn on, on my desk!  I have downloaded all macros to the 2-way interface module as well. 

After you turn the remote switch B8 ON, have you checked if the Flag 2 is set (file / reports / status)? And checked that B8 OFF clears it? If that isn't working then try removing the Dummy B8 module and just leave the B8 macros.

You are using the flag correctly, so maybe double check your macros... make sure your Clear & Set flags are correct.
Logged

Q-man

  • Jr. Member
  • **
  • Helpful Post Rating: 0
  • Posts: 11
Re: Using "Flags" Question
« Reply #2 on: January 13, 2007, 10:15:47 PM »

Puck, good thoughts.   

You are correct with you understanding of the macro sequence

Macro1: Trigger B8 ON
 - Set Flag 2

Macrco2: Trigger B8 OFF
 - Clear Flag 2

Macro3: Trigger B10 ON & Flag 2 ON
 - Turn B6 ON
 - Delay 1 minute
 - Tiurn B6 OFF

There is only one Eagle Eye 2 in this set up, triggers the macro to turn on lamp if flag is set to 2.

I just checked the flag status and it does toggle flag 2 of and on.
 I do notice that house code A flag 1 is always set, i haven't set any flags for this, must be the glitch's with flags i read about on the forums.

Ill give it a shot getting rid of the dummy module and see how it works.


Also, I'm new to posting as you might tell, how do i add the quote stuff in purple back ground and insert pics?  Cant get insert image to bring up a browser.
Logged

Puck

  • Advanced Member
  • Hero Member
  • ******
  • Helpful Post Rating: 171
  • Posts: 1799
Re: Using "Flags" Question
« Reply #3 on: January 13, 2007, 10:29:44 PM »

Also, I'm new to posting as you might tell, how do i add the quote stuff in purple back ground and insert pics?  Cant get insert image to bring up a browser.

Q-man: If you want to add a quote from another post, you can press the "Insert Quote" button in the top right corner of the post. When the reply window opens, you can delete the parts you don't want and just keep the stuff you do want in between the "{quote auther....}" at the top and the {/quote} at the bottom. (I'm using different bracket symbols here so this message doesn't choke.)

Inside your message you can also hit the yellow bubble symbol that appears above and cut 'n' paste from another message into it.

Also, take a look at Tuicemen's information thread: The Finer Art of Posting to the Forums

Quote
I just checked the flag status and it does toggle flag 2 of and on.

Then I don't think the dummy module is the issue. Problem has to be somewhere in macro B10.
Logged

Q-man

  • Jr. Member
  • **
  • Helpful Post Rating: 0
  • Posts: 11
Re: Using "Flags" Question
« Reply #4 on: January 13, 2007, 11:18:30 PM »

like to paste a pic of the Active monitor and show you what is happening but i cant paste a 56k size pic in, it says the folder is full!  Man i cant catch a break.
Logged

Puck

  • Advanced Member
  • Hero Member
  • ******
  • Helpful Post Rating: 171
  • Posts: 1799
Re: Using "Flags" Question
« Reply #5 on: January 13, 2007, 11:25:45 PM »

like to paste a pic of the Active monitor and show you what is happening but i cant paste a 56k size pic in, it says the folder is full!  Man i cant catch a break.

I had the same problem a few weeks ago when trying to attach a file (that was within the 128K limit), so now I use a Yahoo! Geocities web account for posting my pics.
Logged

Q-man

  • Jr. Member
  • **
  • Helpful Post Rating: 0
  • Posts: 11
Re: Using "Flags" Question
« Reply #6 on: January 13, 2007, 11:36:44 PM »

Good thought, i just put it into a blog page my wife uses, lol.

http://x10pictures.blogspot.com/

This is the active monitor picture
Logged

Puck

  • Advanced Member
  • Hero Member
  • ******
  • Helpful Post Rating: 171
  • Posts: 1799
Re: Using "Flags" Question
« Reply #7 on: January 14, 2007, 12:13:18 AM »

FYI:

B6 <--- address the module
B ON <--- turn the module on

Your macros and the activity monitor look good and are executing correctly. I know you said you can control the light within AHP, but maybe try moving the module it to another outlet just to see if you can get it to turn on. Maybe try removing the Flag 2 condition from the B10 macro and set your remote to B10 to see if the lamp turns on that way.
Logged

Q-man

  • Jr. Member
  • **
  • Helpful Post Rating: 0
  • Posts: 11
Re: Using "Flags" Question
« Reply #8 on: January 14, 2007, 02:18:13 PM »

Puck,  thanks for the reply, had to catch some shut eye, was 12.30 am my time. 

Anyway, i moved the module B6 with lamp to a different socket that i knew was working with a remote and AHP....no luck, still didn't work per the macro.  Active monitor showed it all toggled properly like it was in the pic yesterday.

I did go in and remove the Flag 2 on statement from the macro B10 and it worked!  But all that means is that either I'm using flags wrong, or my system is not recognizing them like it should. :(   

Below is what did.

Macro3: Trigger B10 ON & Flag 2 ON
- Turn B6 ON
- Delay 1 minute
- Turn B6 OFF

  is now

Macro3: Trigger B10 ON
- Turn B6 ON
- Delay 1 minute
- Turn B6 OFF

I would like to have the option to toggle the macro on an off via a remote, any thoughts on i might do it in lite of the issue of flags I'm having?
Logged

Q-man

  • Jr. Member
  • **
  • Helpful Post Rating: 0
  • Posts: 11
Re: Using "Flags" Question
« Reply #9 on: January 14, 2007, 02:57:26 PM »

Also, i just added back the if statement but changed the B8 on to set flag 4  (not 2) and then set B8 off to clear all flags.  The funny part is it seems know that the macro is tototallygnoring my if ststatementnd always turns on B6 (the lamp).   I dont get it! 
Logged

Puck

  • Advanced Member
  • Hero Member
  • ******
  • Helpful Post Rating: 171
  • Posts: 1799
Re: Using "Flags" Question
« Reply #10 on: January 14, 2007, 03:02:25 PM »

This is strange, 'cause you have everything set right.

Quote
Also, i just added back the if statement but changed the B8 on to set flag 4  (not 2) and then set B8 off to clear all flags.  The funny part is it seems know that the macro is tototallygnoring my if ststatementnd always turns on B6 (the lamp).   I dont get it!

And this is even stranger.  ::)

Since you are not using any ELSE's, try putting a zero second delay at the start of the macro:

Macro3: Trigger B10 ON & Flag 2 ON
- Delay 0 seconds
- Turn B6 ON
- Delay 1 minute
- Turn B6 OFF
Logged

Q-man

  • Jr. Member
  • **
  • Helpful Post Rating: 0
  • Posts: 11
Re: Using "Flags" Question
« Reply #11 on: January 14, 2007, 03:06:56 PM »

another,good thought,  ill do that as soon as i get back from the grocery store, the wife is bitching that im still playing around making here wait...stuff is addicting.  probably about an hour or so. 
Logged

Q-man

  • Jr. Member
  • **
  • Helpful Post Rating: 0
  • Posts: 11
Re: Using "Flags" Question
« Reply #12 on: January 14, 2007, 04:43:34 PM »

I added the timer set to 00:00:00 and no change..but when i changed it to 00:00:01 delay now works!!!!!!!!!!!!! 

Anythoughts on why?

Well that seems to have solved this problem and i kind of understand now how to use flags better--->add a delay, lol.

I have a million questions but don't want to over stay my welcome.  If you have time and don't mind for typing what do you know about Door/window sensor DS10A.  I got it with a bundle pack , i don't have the security package, just the AHP, iwhitness, myhouse and was wondering how to set a house code.  Instruction that came in the box is no help.

Also, i had a camera about 4 years ago, cant find it know, wasnt very impressed with the quality.  Are you using any?  what style?  have you used it through myhouse?  Unlike a million post i have read, i have been able to connect most of the time remotely and would love to view the cameras over internet, but a little scared of wasting to much money if its not worth it.  Just thought i would get your thoughts.

Again, thanks for being the only one to work with me on this and so responsive (quick), you do man!

Logged

Puck

  • Advanced Member
  • Hero Member
  • ******
  • Helpful Post Rating: 171
  • Posts: 1799
Re: Using "Flags" Question
« Reply #13 on: January 14, 2007, 05:04:24 PM »

I added the timer set to 00:00:00 and no change..but when i changed it to 00:00:01 delay now works!!!!!!!!!!!!! 

Anythoughts on why?

Because macros can be strange creatures.  :D
A delay sometimes makes sure the first step of the macro gets executed. But never start with a delay if you are using ELSE's.  ;)


Quote
I have a million questions but don't want to over stay my welcome.  If you have time and don't mind for typing what do you know about Door/window sensor DS10A.  I got it with a bundle pack , i don't have the security package, just the AHP, iwhitness, myhouse and was wondering how to set a house code.  Instruction that came in the box is no help.

This will only work with AHP if you have the OnAlert Plug-in. If you do, take a look through the OnAlert messages.

Quote
Also, i had a camera about 4 years ago, cant find it know, wasnt very impressed with the quality.  Are you using any?  what style?  have you used it through myhouse?  Unlike a million post i have read, i have been able to connect most of the time remotely and would love to view the cameras over internet, but a little scared of wasting to much money if its not worth it.  Just thought i would get your thoughts.

I use X10 cameras, but I don't use iWitness because I use a separate capture card. Take a look throught the Cameras & Camera Software section for information or post a question about it there.

Cheers
Logged

Q-man

  • Jr. Member
  • **
  • Helpful Post Rating: 0
  • Posts: 11
Re: Using "Flags" Question
« Reply #14 on: January 14, 2007, 05:12:59 PM »

Will do, thanks for everything!  Sure will run into one anthor again!  Later.
Logged
 

X10.com | About X10 | X10 Security Systems | Cameras| Package Deals
© Copyright 2014-2016 X10.com All rights reserved.