Articles | Forums | About | Contact | X10.com
November 22, 2009, 11:01:57 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: We want to know how you use your X10 system! Share your story in the Product Review Board.
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: heyu timed function without pc connected  (Read 416 times)
glb7272
Full Member
***

Helpful Post Rating: 0
Posts: 31


« on: October 30, 2009, 09:08:46 PM »

Well I finally installed heyu, should have done it a long time ago. Bear with me I am about 4 hours into this adventure and most everything works and makes sense in my small brain. So It was all going great and then as usual  I felt a strong urge to over complicate things.

I found this script (thanks Charles Sullivan).
lamp_timer.sh    2007-10-17 (revised)
When launched by the Heyu Engine by an On signal to a module, this BASH script starts a countdown timer which will turn Off the module after the number of minutes specified. Subsequent On signals while the module is still in the On state will reset the countdown to its originally specified time. An Off signal cancels the countdown. See the header in the script for usage information. [Note: The user-configurable timers introduced with Heyu 2.0beta.10 provide a more flexible alternative to using this script.]

My question is can the cm11a do the same thing from its memory?  I want to use my hardwired alarm tied to a hacked MC460 to activate a light from a motion sensor or door sensor.

I tried this as a way to trigger the second macro from the first but i don't think it will ever work because it is not a trigger from an outside source like a remote tied to a receiver. What am I missing? or is it even possible? Can 2 cm11a's bounce the signal between each other  to make it work?
macro  a2on  0  on  a1,2
macro  b5off  1  off  a1   
trigger  a3 on  a2on
trigger   a2 on b5off

monitor output
10/31 00:40:08  rcvt addr unit       3 : hu A3  (_no_alias_)
10/31 00:40:08  rcvt func           On : hc A
10/31 00:40:08  Trigger executed macro : a2on, address 0x3f2
10/31 00:40:08  sndt addr unit       1 : hu A1  (_no_alias_)
10/31 00:40:08  sndt addr unit       2 : hu A2  (_no_alias_)
10/31 00:40:08  sndt func           On : hc A

Thanks


Logged
Charles Sullivan
Expert Advisor
Hero Member
*

Helpful Post Rating: 87
Posts: 1401


WWW
« Reply #1 on: October 31, 2009, 06:19:21 AM »

Well I finally installed heyu, should have done it a long time ago. Bear with me I am about 4 hours into this adventure and most everything works and makes sense in my small brain. So It was all going great and then as usual  I felt a strong urge to over complicate things.

I found this script (thanks Charles Sullivan).
lamp_timer.sh    2007-10-17 (revised)
When launched by the Heyu Engine by an On signal to a module, this BASH script starts a countdown timer which will turn Off the module after the number of minutes specified. Subsequent On signals while the module is still in the On state will reset the countdown to its originally specified time. An Off signal cancels the countdown. See the header in the script for usage information. [Note: The user-configurable timers introduced with Heyu 2.0beta.10 provide a more flexible alternative to using this script.]

My question is can the cm11a do the same thing from its memory?  I want to use my hardwired alarm tied to a hacked MC460 to activate a light from a motion sensor or door sensor.

No.  While you can program a delayed turn off in the CM11A memory, you will always get the Off signal at the end of the delay.  The script (or using a Heyu timer) defers the Off signal so long as it continues receiving On signals at intervals less than the delay interval.  So for example if you have a light triggered by motion from a motion detector, the script will keep the light On so long as motion continues to be detected.

Quote

I tried this as a way to trigger the second macro from the first but i don't think it will ever work because it is not a trigger from an outside source like a remote tied to a receiver. What am I missing? or is it even possible? Can 2 cm11a's bounce the signal between each other  to make it work?
macro  a2on  0  on  a1,2
macro  b5off  1  off  a1   
trigger  a3 on  a2on
trigger   a2 on b5off

monitor output
10/31 00:40:08  rcvt addr unit       3 : hu A3  (_no_alias_)
10/31 00:40:08  rcvt func           On : hc A
10/31 00:40:08  Trigger executed macro : a2on, address 0x3f2
10/31 00:40:08  sndt addr unit       1 : hu A1  (_no_alias_)
10/31 00:40:08  sndt addr unit       2 : hu A2  (_no_alias_)
10/31 00:40:08  sndt func           On : hc A

Thanks


While trigger signals can be bounced back and forth between two CM11As, you still have the problem that once a delayed macro is triggered, there's no way for another signal to cancel it.

Logged

Yesterday it worked.
Today it doesn't work.
X10 on Windows is like that.

HEYU - X10 Automation for Linux, Unix, and Mac OS X     http://www.heyu.org
glb7272
Full Member
***

Helpful Post Rating: 0
Posts: 31


« Reply #2 on: October 31, 2009, 08:45:40 AM »

That makes sense now.
Thanks for the reply and your efforts with heyu.

Logged
Pages: [1]
  Print  
 
Jump to:  

X10.com | About X10 | Careers at X10 | Privacy Policy | Affiliate Program
X10 Sentinel | ActiveHomePro.com | X10VideoSender.com | iPartyMini.com | X10Wiredhome.com
X10WirelessHome.com | Google Video Remote Control | Google Pack Remote Control
X10 Contractor Program | X10 Security Systems | X10 Mini Timer
© Copyright 2006 X10.com All rights reserved.
Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!