tmbrown97
Senior Member
So, this was kinda fun... I used Halloween as my motivator to finally get around to hooking up the Elk124 so I could do a custom doorbell sound and custom door-opening/closing sounds...
It worked pretty well... Seems I'm the only fool who bought the computer interface - everyone else is using the onboard mic and are happy with it. The computer interface is overpriced, and unless I turn the volume on my PC down to where I'd normally barely hear it, it's totally over-driven. Plus, I wasn't in the mood to deal with the software - and in fact, was sending the sounds from my Mac, so I did the manual recording method (using the recording module, but holding the record button manually rather than using the software) - so much less convoluted.
Anyway - pretty straight-forward - I followed BSR's suggestion of just disabling the current doorbell's ability to make noise but let it still fire so it'll trigger the Elk930 doorbell detector... Set the zone to fast loop and set it to trigger the appropriate output for 1 second. All simple stuff.
While working with my wife to pick sounds for it to play on door opening, she liked two of them, and asked if I could make it alternate - so each time the door is opened, it would alternate between the two sounds. Never touched Counters, but seems simple in concept - so I set up a rule so that it would check for door open and counter set to 0, then it'd play the sound and set the counter to 1. And another one vice-versa... HOWEVER - because of how the elk handles rules, it would keep firing off both rules - so it'd play both sounds in a row. Next time, same thing - again and again. I tried reversing the order of the rules - no luck... so I figured out that instead of setting the counter during the firing of the sound, I'd set the counter when the sound/output turned off... that solved my issues.
Below is the code:
[codebox]
19 WHENEVER Doorbell (Zn 32) BECOMES NOT SECURE
THEN TURN Custom Sound 6 (Out 9) ON FOR 1 second
20 WHENEVER Front Entry (Zn 1) BECOMES NOT SECURE
AND Doorbell Num (Counter 1) IS EQUAL TO 1
AND Output 199 STATE IS OFF
THEN TURN Custom Sound 7 (Out 8) ON FOR 1
21 WHENEVER Front Entry (Zn 1) BECOMES NOT SECURE
AND Doorbell Num (Counter 1) IS EQUAL TO 0
AND Output 199 STATE IS OFF
THEN TURN Custom Sound 8 (Out 7) ON FOR 1
22 WHENEVER Custom Sound 7 (Out 8) STATE IS TURNED OFF
THEN SET Doorbell Num (Counter 1) TO 0
23 WHENEVER Custom Sound 8 (Out 7) STATE IS TURNED OFF
THEN SET Doorbell Num (Counter 1) TO 1[/codebox]
*Output 199 is my output for the quiet mode - from yesterday's post. That way it doesn't play cackling goblins as I leave for work in the morning.
If this stuff is too basic, I'll quit posting... but it never occurred to me to alternate between two sounds, so I thought that was kinda cool - and the issue with the rules firing successively was slightly annoying, so I figured I'd share my experience to get other peoples' hamsters running...
It worked pretty well... Seems I'm the only fool who bought the computer interface - everyone else is using the onboard mic and are happy with it. The computer interface is overpriced, and unless I turn the volume on my PC down to where I'd normally barely hear it, it's totally over-driven. Plus, I wasn't in the mood to deal with the software - and in fact, was sending the sounds from my Mac, so I did the manual recording method (using the recording module, but holding the record button manually rather than using the software) - so much less convoluted.
Anyway - pretty straight-forward - I followed BSR's suggestion of just disabling the current doorbell's ability to make noise but let it still fire so it'll trigger the Elk930 doorbell detector... Set the zone to fast loop and set it to trigger the appropriate output for 1 second. All simple stuff.
While working with my wife to pick sounds for it to play on door opening, she liked two of them, and asked if I could make it alternate - so each time the door is opened, it would alternate between the two sounds. Never touched Counters, but seems simple in concept - so I set up a rule so that it would check for door open and counter set to 0, then it'd play the sound and set the counter to 1. And another one vice-versa... HOWEVER - because of how the elk handles rules, it would keep firing off both rules - so it'd play both sounds in a row. Next time, same thing - again and again. I tried reversing the order of the rules - no luck... so I figured out that instead of setting the counter during the firing of the sound, I'd set the counter when the sound/output turned off... that solved my issues.
Below is the code:
[codebox]
19 WHENEVER Doorbell (Zn 32) BECOMES NOT SECURE
THEN TURN Custom Sound 6 (Out 9) ON FOR 1 second
20 WHENEVER Front Entry (Zn 1) BECOMES NOT SECURE
AND Doorbell Num (Counter 1) IS EQUAL TO 1
AND Output 199 STATE IS OFF
THEN TURN Custom Sound 7 (Out 8) ON FOR 1
21 WHENEVER Front Entry (Zn 1) BECOMES NOT SECURE
AND Doorbell Num (Counter 1) IS EQUAL TO 0
AND Output 199 STATE IS OFF
THEN TURN Custom Sound 8 (Out 7) ON FOR 1
22 WHENEVER Custom Sound 7 (Out 8) STATE IS TURNED OFF
THEN SET Doorbell Num (Counter 1) TO 0
23 WHENEVER Custom Sound 8 (Out 7) STATE IS TURNED OFF
THEN SET Doorbell Num (Counter 1) TO 1[/codebox]
*Output 199 is my output for the quiet mode - from yesterday's post. That way it doesn't play cackling goblins as I leave for work in the morning.
If this stuff is too basic, I'll quit posting... but it never occurred to me to alternate between two sounds, so I thought that was kinda cool - and the issue with the rules firing successively was slightly annoying, so I figured I'd share my experience to get other peoples' hamsters running...