Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Programming
 PowerHome Messageboard : PowerHome Programming
Subject Topic: NOOB Formula Help!! Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
BeachBum
Super User
Super User
Avatar

Joined: April 11 2007
Location: United States
Online Status: Offline
Posts: 1880
Posted: April 14 2007 at 09:30 | IP Logged Quote BeachBum

Trying to get my feet wet with formulas but when I type in a formula nothing happens even though the Event Log records it. It doesn’t matter whether I type it on the toolbar or in a macro. One example is ph_x10btn(“O”,1,2,0) to turn on O-1. Another example is when I try to backup the database nothing happens. ph_backupdb("c:\powerhome\ph.db",1) The Event Log records it. This must be a real simple oversight on my part. What am I doing wrong?   Thks….

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

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: April 14 2007 at 10:12 | IP Logged Quote TonyNo

Seems strange. Did you set up your controller(s)?

The format for ph_x10btn is

ph_x10btn( id, cmd, lvl)

so try ph_x10btn( "O1", 2, 0).
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: April 14 2007 at 10:38 | IP Logged Quote BeachBum

Thanks for the quick response Tony. Yes I have setup my Powerlinc V2 USB controller. Triggered and timed events work fine. I tried what you suggested with the same results. What is interesting is the Event Log records “Macro TEST executed.” But controller does not blink. I have even reinstalled but have not rebuilt the database.

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

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: April 14 2007 at 11:52 | IP Logged Quote TonyNo

Hmm. Let's try a full, raw command...

ph_x10( controller_id, "0", 1, 0) + ph_x10( controller_id, "0", 102, 0)
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: April 14 2007 at 12:38 | IP Logged Quote BeachBum

Tony, I ran it from a macro with the same results and also from the command line ( toolbar ). Here is the Event Log from the latter “Macro PH_X10( USB CONTROLLER_ID, "0", 1, 0) + PH_X10( USB CONTROLLER_ID, "0", 102, 0) executed.”
On another note I installed Powerhome on a different computer and did not use the same database again with the same results. One little caveat is the program does not like to coexist with the latest Quickbooks Pro. I have to end process QBDBMgrN.exe. The other system uses QB but as client and does not need the QBDBmgrN.


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

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: April 14 2007 at 15:07 | IP Logged Quote TonyNo

You do have O1 defined in X10 Units, correct?
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: April 14 2007 at 18:41 | IP Logged Quote BeachBum

I hope as one would think since it works with triggered events and macros. I have a bunch of old x10 devices that work fine when triggered. I appreciate your indulgence with this.

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

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: April 14 2007 at 19:12 | IP Logged Quote TonyNo

So, these triggers and macros send out this or other X10 commands correctly?
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: April 15 2007 at 10:52 | IP Logged Quote BeachBum

To answer your last question Yes.. But last night I had a catastrophic failure. I have 32 X10 units driven by 29 macros which some are triggered by timed events or other X10 inputs. Last night the sunset routine failed to light any lights after successfully executing 1 of 11 macros in the routine. The failure was repeatable. Also when this occurs I can not turn on or off devices from the Device List under Device Status. I’m starting to believe I may have a hardware failure with the PowerLinc V2 Controller. The only way out is to exit Powerhome and restart again. Reinitialize doesn’t do it. Fortunately my SmartLinc still functions.

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

Joined: April 11 2007
Location: United States
Online Status: Offline
Posts: 1880
Posted: May 25 2007 at 11:07 | IP Logged Quote BeachBum

Quick update.. After receiving a replacement PLC everything works fine. The problem I had with formulas was self inflected. I was using the H/C values instead of the string that pointed to them.

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

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