| ECS-L Home Automation and Security Archives |
| Subject: From: Date: | I must be missing something obvious Mark Sekelsky Sun, 13 Jun 1999 11:14:54 -0500 |
I am sure that I am missing something obvious here that hopefully somebody else can catch. My receiver has some weird IR signal (both Dan at Dancraft and Craig at Home Vision gave up on it) that when sent by ECS is only "seen" about 80% of the time. I turn the receiver "on" via an appliance type item (Receiver: On (A4) ). I have a relay in the back of the receiver (powered outlet) that goes to a digital input c item (Receiver: Powertest). When somebody turns the receiver on/off I have ECS set a true/false item (Receiver: Flag) as appropriate and start a timer (6"). ECS will send the IR signal every 6" is the state of Receiver: ON (A4), Receiver:Powertest and Receiver: Flag are in disagreement. I also start a two minute timer whenever the state of Receiver: On (A4) changes to on or off. The reason for this is that if for some reason ECS has not been able to turn the receiver on/off within 2 minutes I want to know about it (ex. the IR emitter has fallen off). Herein lies my problem. I have "remmed out" the lines for that announcement because the announcement is made even if everything is fine. In fact sometimes the announcement is made almost immediately. When I first created this event Receiver:Powertest was a Powerflash module NOT the digital-input-c item. That setup worked fine, but this one has been screwy ever since I changed the item type. Anybody have any idea what I am missing here? Mark S | BEGINIF Receiver: delay on Is Now 0 | If Receiver: Flag Is True | And Receiver:Powertest Is High | Then ECS: Event call Set Receiver Part II | Then Receiver: delay on Set 6 | ENDIF | ;If after a delay of 8" the FLAG is FALSE but powertest is ON | ;resend the signal to turn OFF. | | BEGINIF Receiver: delay off Is Now 0 | If Receiver: Flag Is False | And Receiver:Powertest Is Low | Then IR Signal Set 0 | Then Receiver: delay off Set 6 | ENDIF | | ;When the receiver is first turned "on" set the flag to TRUE | ;Start the delay timer and then call the event to send the signal. | | If Receiver (A4) Is Now On | Then Receiver: Flag Set True | Then ECS: Event call Set Receiver Part II | Then Receiver: delay on Set 6 | | | ;When the receiver is first turned "off" set the flag to FALSE. | ;Start the delay timer and then call the event to send the signal. | | If Receiver (A4) Is Now Off | Then Receiver: Flag Set False | Then IR Signal Set 0 | Then Receiver: delay off Set 6 | | | ;Speak a warning if "stuck" trying to turn the receiver | ;on or off after 2 minutes. | | If Receiver (A4) Is Now On | And Receiver:Powertest Is High | Then Timer: Powertest Set 2 | | If Receiver (A4) Is On | And Receiver:Powertest Is High | And Timer: Powertest Is Now 0 | ;Then MSG: Attention!! Set Play->Sp | ;Then MSG: Attention!! Set Play->Sp | ;Then MSG: Powertest Set Speak->VC | Then Timer: Powertest Set 2 | | If Receiver (A4) Is On | And Receiver:Powertest Is Low | And Timer: Powertest Is GT 0 | Then Timer: Powertest Set 0 | | ;If The receiver is turned on at the switch. Shut it off | | If Receiver:Powertest Is Low | And Receiver: Flag Is False | And Receiver: delay off Is 0 | And Receiver: delay on Is 0 | Then Receiver: delay off Set 6 | | ;If The receiver is turned off at the switch. Turn it on. | | If Receiver:Powertest Is High | And Receiver: Flag Is True | And Receiver (A4) Is On | And Receiver: delay off Is 0 | And Receiver: delay on Is 0 | Then Receiver: delay on Set 6