Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Bug Reports
 PowerHome Messageboard : PowerHome Bug Reports
Subject Topic: macro type in Trigger and Macro Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
cmhardwick
Senior Member
Senior Member
Avatar

Joined: July 08 2006
Location: United States
Online Status: Offline
Posts: 290
Posted: March 20 2009 at 21:25 | IP Logged Quote cmhardwick

since upgrading to 2.1b, I've had to change any triggers that execute a macro from the Macro type of trigger to a raw formula then use ph_macro("macro") or they aren't actually executing properly. I also had to modify GadgetGuy's thermostat scripts to do the same thing when it called the "getstat" macro, which calls other macros.

Edited by cmhardwick - March 20 2009 at 21:26


__________________
Cicero, Enjoying automation!
Back to Top View cmhardwick's Profile Search for other posts by cmhardwick Visit cmhardwick's Homepage
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: March 20 2009 at 22:09 | IP Logged Quote TonyNo

Hmm. Maybe I am seeing this, too. My Welcome Home macro is a bit off... But not others.

Edited by TonyNo - March 20 2009 at 22:10
Back to Top View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 
BeachBum
Super User
Super User
Avatar

Joined: April 11 2007
Location: United States
Online Status: Offline
Posts: 1880
Posted: March 20 2009 at 23:21 | IP Logged Quote BeachBum

That’s interesting I didn’t run into that.

__________________
Pete - X10 Oldie
Back to Top View BeachBum's Profile Search for other posts by BeachBum
 
cmhardwick
Senior Member
Senior Member
Avatar

Joined: July 08 2006
Location: United States
Online Status: Offline
Posts: 290
Posted: March 21 2009 at 14:07 | IP Logged Quote cmhardwick

after more investigation, I think i'm seeing it more when used within macros. I think my triggers may have been ok, but i'm not sure. Haven't fully tested everything.

__________________
Cicero, Enjoying automation!
Back to Top View cmhardwick's Profile Search for other posts by cmhardwick Visit cmhardwick's Homepage
 
BeachBum
Super User
Super User
Avatar

Joined: April 11 2007
Location: United States
Online Status: Offline
Posts: 1880
Posted: March 21 2009 at 14:38 | IP Logged Quote BeachBum

I had problems within a macro using local variables. Specifically Tony’s getweather stop working. It may have been coincidence but the data would no longer fit into the size of the variable after I went to V2.1b. I had to change the locals to system variables.   

__________________
Pete - X10 Oldie
Back to Top View BeachBum's Profile Search for other posts by BeachBum
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: March 21 2009 at 22:48 | IP Logged Quote dhoward

Cicero,

I just checked this out and was able to successfully fire macros from a trigger using a "Macro" action type.

I also didnt have a problem from within Macros. Have you done any further testing to isolate the problem that you're seeing?

Im suspecting instead of a bug, something amiss during the upgrade process and perhaps the data is not what is expected.

Let me know,

Dave.
Back to Top View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
cmhardwick
Senior Member
Senior Member
Avatar

Joined: July 08 2006
Location: United States
Online Status: Offline
Posts: 290
Posted: March 21 2009 at 23:01 | IP Logged Quote cmhardwick

where i saw this was implementing GadgetGuy's thermstat macros. i had to chnge the last line of the setstat which uses the macro function to call the getstat macro, which in turn calls 3 other ,macros.

this would call the getstat macro, but the macros within that one would not execute. using the ph_macro allowed them all to work.

what i suspected as being the same issue in the triggers was solved by loading the full database to the plm.

__________________
Cicero, Enjoying automation!
Back to Top View cmhardwick's Profile Search for other posts by cmhardwick Visit cmhardwick's Homepage
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum