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

Joined: December 18 2005
Location: United States
Online Status: Offline
Posts: 106
Posted: January 26 2007 at 09:56 | IP Logged Quote guerrand

I rigged up a door sensor using a wireless motion detector. It's working pretty well except I am trying to get it to flash a light continuously if the door its on is left open more than ten minutes. Everything works except for the flashing cycle for the light.

JUMP if( ph_getx10stat("DOOR") = 1,999, - 3 )

the -3 would send it back to the start of the loop. The light should keep flashing until the door is closed properly.

When I test it it goes through the first run of the cycle ok but when it gets to the jump line it seems to just stop.

I tried to make sure my syntax is all correct (and made sure the - had breathing room)

What did I do wrong? (cuz I know I always do something wrong!)


Also, how can I get the ph status page to update when I use a palm pad or other rf device to turn lights on or off. (I tried doing an echo but that just caused chaos)

Edited by guerrand - January 26 2007 at 10:29


__________________
VuMe
Back to Top View guerrand's Profile Search for other posts by guerrand Visit guerrand's Homepage
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: January 26 2007 at 13:33 | IP Logged Quote TonyNo

Assuming the start of the loop is three lines before that one, it should be fine.

xxx
xxx
xxx
JUMP if( ph_getx10stat("DOOR") = 1,999, - 3 )
xxx
xxx


Status Page Update: ph_devicerefreshstat( )
Back to Top View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 
guerrand
Senior Member
Senior Member
Avatar

Joined: December 18 2005
Location: United States
Online Status: Offline
Posts: 106
Posted: January 26 2007 at 14:08 | IP Logged Quote guerrand

well, for reasons unknown it won't jump. I can't explain why. lol

Just for kicks here's the full lineup for the macro.

x10 light off
delay 3000
x10 light on
(this line is as formula, immediate) JUMP if( ph_getx10stat("FREEZERDOOR") = 1,999, - 3 )

I should have described the second issue a little better.
I want ph to recognize when I turn a light on or off externally of the program itself. when I use a palm pad remote to adjust a light I see the the mr26a is receiving the rf signal but ph doesn't update the status of the light to match the current condition.
The command given just refreshes the listing. It doesn't enter external rf commands into the system.

__________________
VuMe
Back to Top View guerrand's Profile Search for other posts by guerrand Visit guerrand's Homepage
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: January 26 2007 at 17:39 | IP Logged Quote dhoward

Guerrand,

1st suggestion...change the Delay 3000 to a Wait 3. This won't fix the problem, but makes PowerHome more efficient. During a Delay, PowerHome is unable to process any other commands...a Wait doesnt have this limitation. Delays are good for very small waiting. If you've got to wait longer than a second, then a Wait command is better.

If I read your message correct though, your last macro line is a "Formula" command of type Immediate and you've typed "JUMP if( ph_getx10stat("FREEZERDOOR") = 1,999, - 3 )" in the Send Keys field. If so, this is the problem. Change the macro line command from "Formula" to "Jump" and take JUMP out of the formula (send keys) column so that just the IF statement is left.

HTH,

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

Joined: December 18 2005
Location: United States
Online Status: Offline
Posts: 106
Posted: January 26 2007 at 18:12 | IP Logged Quote guerrand

That took care of it. Works perfectly now. :D

Once again I have to say, great job on this. I tried out homeseer for a couple days but came right back the the PH!

Any ideas on the second problem? Is it even possible for ph to recognize and log an action done with a rf remote and not done via ph?

__________________
VuMe
Back to Top View guerrand's Profile Search for other posts by guerrand Visit guerrand's Homepage
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: January 26 2007 at 23:37 | IP Logged Quote dhoward

Guerrand,

Glad to hear it's working now.

Concerning the second problem...should be an easy fix. PowerHome has an option to update the X10 status on received RF from the MR26A. Just open the PowerHome Explorer and navigate to Setup|Controllers and click on the Settings button for the MR26A. Make sure that the "Update X-10 Status" box is checked. If it wasnt checked and you checked it, you need to either restart or reinitialize in order for the changes to take effect.

You can also take care of the updates manually if you prefer (hence the checkbox). Just create a trigger on "Incoming X10 RF" on the X10 devices whose status you want to monitor or update and the trigger will fire anytime you send the command from the palm pad.

Hope this helps,

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

Joined: December 18 2005
Location: United States
Online Status: Offline
Posts: 106
Posted: January 27 2007 at 01:13 | IP Logged Quote guerrand

For some reason things don't like to work the way they're supposed to. The "Update X-10 Status" box has always been checked. Its never updated based on commands received tho. Guess I'm gonna be making some triggers. lol

__________________
VuMe
Back to Top View guerrand's Profile Search for other posts by guerrand Visit guerrand's Homepage
 
guerrand
Senior Member
Senior Member
Avatar

Joined: December 18 2005
Location: United States
Online Status: Offline
Posts: 106
Posted: January 28 2007 at 11:07 | IP Logged Quote guerrand

Well, it's working mostly once I made the 18 triggers. lol I doesn't recognize dim/bright actions but I could make another 12 to handle that.

If anyone has any ideas why the "Udate X-10 Status" option might be acting up please pipe in! I'd be much happier if I could fix whatever is wrong so I can trim my triggers back down.

In leu of that, folders in the triggers area would be nice to organize all these. :D

__________________
VuMe
Back to Top View guerrand's Profile Search for other posts by guerrand Visit guerrand's Homepage
 
guerrand
Senior Member
Senior Member
Avatar

Joined: December 18 2005
Location: United States
Online Status: Offline
Posts: 106
Posted: January 30 2007 at 20:58 | IP Logged Quote guerrand

Anyone?

__________________
VuMe
Back to Top View guerrand's Profile Search for other posts by guerrand Visit guerrand's Homepage
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: January 30 2007 at 22:53 | IP Logged Quote TonyNo

I don't have an MR26A so I can't help that much. Give Dave a couple more days.
Back to Top View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 
guerrand
Senior Member
Senior Member
Avatar

Joined: December 18 2005
Location: United States
Online Status: Offline
Posts: 106
Posted: January 30 2007 at 23:05 | IP Logged Quote guerrand

I hope we can find out why it might not be working correctly. I'm building quite the list of triggers. lol

It might end up being a moot point though. I have 2414U coming in tomorrow. Gonna start converting over to Insteon. (which will prolly mean a bunch of new problems to figure out. lol)

__________________
VuMe
Back to Top View guerrand's Profile Search for other posts by guerrand Visit guerrand's Homepage
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: January 30 2007 at 23:30 | IP Logged Quote TonyNo

I had the same thing happen before. I created a ton of triggers before I found out that the W800 could be set to echo out to the power line.
Back to Top View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 
guerrand
Senior Member
Senior Member
Avatar

Joined: December 18 2005
Location: United States
Online Status: Offline
Posts: 106
Posted: January 31 2007 at 00:11 | IP Logged Quote guerrand

Well, atm I don't have a direct powerline interface for ph. Just rf to individual x10 receivers. And I tried doing echo on it, it kinda works, the actions are recognized.... but it freaks out by repeating all rf commands over and over... I end up having to shut down ph to stop the madness. lol

__________________
VuMe
Back to Top View guerrand's Profile Search for other posts by guerrand Visit guerrand's Homepage
 
guerrand
Senior Member
Senior Member
Avatar

Joined: December 18 2005
Location: United States
Online Status: Offline
Posts: 106
Posted: January 31 2007 at 12:40 | IP Logged Quote guerrand

*daces*

The 2414U echoed did the trick! Now I can clean up my triggers!

__________________
VuMe
Back to Top View guerrand's Profile Search for other posts by guerrand Visit guerrand'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