X10 Community Forum

🖥️ActiveHome Pro => Plug-ins => Smart Macros => Topic started by: RJMiller on September 27, 2006, 01:21:49 PM

Title: Smart Macro doesn't appear to work
Post by: RJMiller on September 27, 2006, 01:21:49 PM
Hi, I have smartmacros and onalert.  I have created a very simple macro that sends an email if a ms16a goes on AFTER 10am.  Doesn't ever send the email.  If I remove the macro condition... then sends the email.

Any ideas?

  RJ
Title: Re: Smart Macro doesn't appear to work
Post by: Tuicemen on September 27, 2006, 03:36:06 PM
Conditions and especially Else's can become tricky! I'm not sure what your using as your if after 10am  or if ms16a comes on. or both ? ???
MS16A address should be the trigger,the condition should be if it is after 10am. ;) :D
Title: Re: Smart Macro doesn't appear to work
Post by: RJMiller on September 27, 2006, 03:55:39 PM
This doesn't look like my screen... what version are you using?  Maybe I have an old one.  I don't like the way you have to request a download.  Seems like they could secure it efectively just with the registration key.

  RJ
Title: Re: Smart Macro doesn't appear to work
Post by: Tuicemen on September 27, 2006, 04:06:25 PM
ah! I have the older version no OnAlert Ill move your post to the OnAlert section! Then your more apt to get the correct info!
Title: Re: Smart Macro doesn't appear to work
Post by: RJMiller on September 27, 2006, 04:11:48 PM
Ok, I see what is different... I had "hide condition" on.  Here is a picture of my macro.

Title: Re: Smart Macro doesn't appear to work
Post by: Tuicemen on September 27, 2006, 04:26:34 PM
Try the time range condition "if time is between 10am and 5pm"  ;)
Title: Re: Smart Macro doesn't appear to work
Post by: RJMiller on September 27, 2006, 04:32:02 PM
Already did... doesn't work... also just plain old "after 10am" doesn't work.

  RJ
Title: Re: Smart Macro doesn't appear to work
Post by: Tuicemen on September 27, 2006, 04:41:40 PM
But you can send with out conditions right? ???
I always thought you needed the Myhouse Online Plugin to send e-mails ??? perhaps it is different for OnAlert
Perhaps Charles Sullivan   can shed some light on this as he runs OnAlert ;) :)
Title: Re: Smart Macro doesn't appear to work
Post by: Charles Sullivan on September 27, 2006, 06:30:29 PM
But you can send with out conditions right? ???
I always thought you needed the Myhouse Online Plugin to send e-mails ??? perhaps it is different for OnAlert
Perhaps Charles Sullivan   can shed some light on this as he runs OnAlert ;) :)

I have only the SmartMacro and OnAlert plug-ins; no others.   The Send Email action does NOT appear in the Advanced Functions menu.  My understanding is that the MyHouseOnline plug-in is required for this action.

(The "Windows Command" action is available with what I have installed and it would probably be possible to send an email with some external email program.)
Title: Re: Smart Macro doesn't appear to work
Post by: Tuicemen on September 27, 2006, 07:13:17 PM

I have only the SmartMacro and OnAlert plug-ins; no others.   The Send Email action does NOT appear in the Advanced Functions menu.  My understanding is that the MyHouseOnline plug-in is required for this action.
(The "Windows Command" action is available with what I have installed and it would probably be possible to send an email with some external email program.)
hum then  RJMiller must have the Myhouse Online plugin else there is a bug which is alowing him to create the macro!
if this is the case you can get the tird party addon X10dispatcher (http://www.x10dispatcher.com) which will send an e-mail/or msn message when a x10 event occurs!
Ahp doesn't need to be running if you use it but  you still need you CM15A connected to the PC it to be turned on and the program (ahp or dispatcher) to be running! ;)
Title: Re: Smart Macro doesn't appear to work
Post by: RJMiller on September 28, 2006, 12:55:41 PM
Yes, I have MyHouse plugin and it works just fine without conditions.

Also, if I make an 'else' clause with email send as it's action it ALWAYS executes.

  RJ
Title: Re: Smart Macro doesn't appear to work
Post by: Tuicemen on September 29, 2006, 05:15:39 PM
RJMiller read this "E-mail Bug found!"  (http://www.x10community.com/forums/index.php?topic=9951.msg59530#msg59530)  it might explain the problem!
Title: Re: Smart Macro doesn't appear to work
Post by: RJMiller on October 02, 2006, 01:14:18 PM
I think you are getting too tied up with the email.  The email send ISN'T the problem.  It is just what I am using to test the macro with.  I have put an appliance module out there and I ALSO don't have it activate.

The macro DOES FIRE.  I can see it fire from the motion detector but the CONDITION never succeeds.  I believe this is a problem with SmartMacros.  Related to what I don't know since I have never had a SmartMacro work I am only taking it on faith that it does :^).  Yes, I am sure it does for everybody else but not for me.

Here is an image of the macro as it stands... activates a powerhorn.  I can FORCE an activation by pushing the "run macro" button and the powerhow makes a nasty noise... just like the email got sent.

Title: Re: Smart Macro doesn't appear to work
Post by: Tuicemen on October 02, 2006, 01:55:03 PM
Ok I just installed ON Alert  and as with most updates the transceived house codes get set to none! ::) ???
This maybe your problem as you say you have yet to have a SmartMacro work correctly.
Go to hardware configuration and click specific under transceived house codes check off the codes you wish to transceive, then check update interface!
Be sure to click the arrows at the botton right of the AHP screen!
;)
Since the problem seems to be with Smartmacros I'll move  it to that section! ;) :)
I know your running On Alert,Smartmacros  & MyHouse Online   are you running iWitness as well?
This may be a bug if Iwitness isn't installed with the others, as well someone else with the exact plugins runing as you may be able to shed more light on it! ::) ;)
Title: Re: Smart Macro doesn't appear to work
Post by: delibaker on October 02, 2006, 01:59:11 PM
Just a suggestion, delete the macro, empty the deleted modules bin, shut down AHP and recreate the macro from scratch.  Also check the system date and time in AHP to make sure it is synced with your PC.  This has helped me in the past with corrupted macros and a slow system clock.  A side note conditionals are skipped when you press the RUN MACRO button. Hope this helps!
Title: Re: Smart Macro doesn't appear to work
Post by: RJMiller on October 02, 2006, 04:03:03 PM
Not running iWitness.  The transceived codes are A, B, C.  The monitored house code is C.

By the way... same macro WITHOUT any conditions works properly... even from a security item... for instance the following macro works quite well

Is there any way to remove a plugin?  That would be a test without OnAlert.  Course OnAlert runs the store's security system.

  RJ
Title: Re: Smart Macro doesn't appear to work
Post by: Tuicemen on October 04, 2006, 10:17:14 AM
RJMiller: There is a post I think it is in the AHP general section (from the old forum) about removing plugins I can't remember if a easy way was mentioned ??? ::) ;)
In the mean time here's something to try:[li]Create a  Phantom (dummy) module say m1
[/li]
[li]Create a macro which turns "ON" M1 have your sensor trigger it
[/li]
[li]edit your problem macros to have the M1 "ON" trigger
[/li]
[/list]

I noticed one of my more complexted macros set to run this way and it runs with out any problems as long as the batteries are good in the sensor! ::)
I've just converted it to use a security sensor  without the use of a Phantom module so will see if I start to have the same problems. ::) ;)
If I start to have problems I'll add the Phantom trigger back!
;) :D
Title: Re: Smart Macro doesn't appear to work
Post by: Tuicemen on October 04, 2006, 11:11:26 AM
Update:
WOW that didn't take long!
Scenario:
Started having problems right away!  >:( ::) ???So I reverted back to the Phantom module as the trigger!
But still had problems  but only with certain conditions  ::) so I removed them and tried to and others some it wouldn't alow. ::) so I tried to re add the ones I'd deleted NO GO ::) ??? Then I noticed run from Pc was checked. So I set it to store in interface and re added the conditions saved to the interface and every thing works. So far! ::) ;) :D
Findings:
Certain Macros Must be run from the interface!
In order to do this with Security modules you "MUST"  use Phantom modules! ;) :D
Title: Re: Smart Macro doesn't appear to work
Post by: RJMiller on October 04, 2006, 02:20:41 PM
Can you send an image of one of your phantom modules?  Not sure I understand what you are talking about.  Thanks.

  RJ
Title: the way to create a phantom module
Post by: Tuicemen on October 04, 2006, 11:04:29 PM
The way to create a phantom module [/b] 
This is the way I do it:[li]Create a room called Phantom or dummy modules
[/li]
[li]In this room create  Phantom modules. It's best if they are appliance modules as you don't want a all lights on triggering them
[/li]
[li]Give them addresses [/li]
[li]You can name they what ever you like but remember
you don't actualy have these modules they do nothing except act as triggers
[/li]
[/list][/b]
I have a room of these for which I can turn on/off my important flags it also alows me to see the status of my flags quickly, there are some others!
Also see my post  Using Phantom/dummy/ghost/virtual modules  (Read 1229 times)   (http://www.x10community.com/forums/index.php?topic=8807.0)