Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Programming
 PowerHome Messageboard : PowerHome Programming
Subject Topic: Macro Syntax Errors Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
k2zs
Senior Member
Senior Member
Avatar

Joined: October 22 2009
Location: United States
Online Status: Offline
Posts: 113
Posted: October 24 2009 at 19:13 | IP Logged Quote k2zs

I am working with a PowerHome2 installation that is an upgrade from PowerHome v1.xx ? I find Macro Syntax Errors when ever a macro is executed. In the event log I see that after every line. In the old version I was told to issue a "Wait" command after every line and I am wondering if the wait command is no longer required or supported in PowerHome2.

__________________
Scott, K2ZS
Home Automation Ideas
Back to Top View k2zs's Profile Search for other posts by k2zs Visit k2zs's Homepage
 
BeachBum
Super User
Super User
Avatar

Joined: April 11 2007
Location: United States
Online Status: Offline
Posts: 1880
Posted: October 24 2009 at 20:10 | IP Logged Quote BeachBum

2 issues.. 1 I don’t know why you where told about a wait command after every line. 1st I would get rid of that and secondly there is a known problem with syntax error messages being generated. Just go to Setup – Logs and uncheck Formula Error.

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

Joined: October 22 2009
Location: United States
Online Status: Offline
Posts: 113
Posted: October 25 2009 at 08:44 | IP Logged Quote k2zs

Thanks Pete,

In some of the macros the wait is used for timing. One macro fires when the garage door remote is used:
10 ; Insteon ; garage lights ; fast on
20 ; wait    ;     & nbsp;         ;           ; ; 10
30 ; Insteon ; Mud Room Lights; fast on   ;
40 ; wait    ;     & nbsp;         ;           ; ; 20
50 ; Insteon ; Hall lights   ; fast on   ;
60 ; wait    ;     & nbsp;         ;           ; ; 300
70 ; Insteon ; garage lights ; off       ;
80 ; wait    ;     & nbsp;         ;           ; ; 120
90 ; Insteon ; Mud Room Lights; off       ;

I have deselected the "Formula Error" check box in Setup - Logs but it still logged the macro errors when it ran the "perimeter lighting off" macro this morning. I did a re-initiate and will wait for the next macro to fire to see if it logs the formula errors again.

__________________
Scott, K2ZS
Home Automation Ideas
Back to Top View k2zs's Profile Search for other posts by k2zs Visit k2zs's Homepage
 
BeachBum
Super User
Super User
Avatar

Joined: April 11 2007
Location: United States
Online Status: Offline
Posts: 1880
Posted: October 25 2009 at 10:50 | IP Logged Quote BeachBum

Yes, you do have to re-init when you make a change to Setup. What I do for a long wait is create a Timed Event to occur rather than leaving a macro queued up. I don’t know if internally that is beneficial or not but rather an old programming habit. The syntax error seems to pop up with Insteon commands and not all of them.

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

Joined: October 22 2009
Location: United States
Online Status: Offline
Posts: 113
Posted: October 25 2009 at 14:21 | IP Logged Quote k2zs

Thanks, that did the trick

__________________
Scott, K2ZS
Home Automation Ideas
Back to Top View k2zs's Profile Search for other posts by k2zs Visit k2zs's Homepage
 
k2zs
Senior Member
Senior Member
Avatar

Joined: October 22 2009
Location: United States
Online Status: Offline
Posts: 113
Posted: October 25 2009 at 16:06 | IP Logged Quote k2zs

Curious,

Would it be best practice to "Download Full" whenever making changes to links? If so should it be cleared first? How about re-initiate.. should that be done as well? I found some broken links today after clearing all link problems and verifying them yesterday. I had done a full download yesterday prior to completing all my link corrections. Just wondering if the broken link today was due to old data in the plm or a device.

__________________
Scott, K2ZS
Home Automation Ideas
Back to Top View k2zs's Profile Search for other posts by k2zs Visit k2zs's Homepage
 
BeachBum
Super User
Super User
Avatar

Joined: April 11 2007
Location: United States
Online Status: Offline
Posts: 1880
Posted: October 25 2009 at 17:43 | IP Logged Quote BeachBum

The only time I do a download to the PLM is when I do a hard reset because of a hung PLM. I doubt the broken link was because of the download. Maybe Lee can shed some light on it.

__________________
Pete - X10 Oldie
Back to Top View BeachBum's Profile Search for other posts by BeachBum
 
grif091
Super User
Super User


Joined: March 26 2008
Location: United States
Online Status: Offline
Posts: 1357
Posted: October 26 2009 at 14:07 | IP Logged Quote grif091

You do not need to do a PH Reinit when links are added/deleted/changed.   PowerHome keeps track of link record locations so in theory it is not necessary to do a full device link database replace when doing link record maintenance. Updating a single link record is obviously faster than rewriting perhaps dozens of link records. I don't rewrite the entire device link database unless I have had to reset the device or find the device link database is in question for some reason. This is one of those items you get to decide what works best in your environment.

__________________
Lee G
Back to Top View grif091's Profile Search for other posts by grif091
 

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