Mark LaBelle Posted December 28, 2013 Share Posted December 28, 2013 I've been fiddling with this for a little bit, but I thought I would ask the community for the Best Practice on this process. I want to have an Announcement set for my doorbell (Axxess Doorbell) for specific date ranges. So for 11/25 - 12/25 (every year) I would like it to play a Christmas Tune, from 12/26 - 1/1 (every year) I would like to play Auld Lang Syne, for our Burthday's play Happy Birthday, etc... I have the doorbell set up with the announcement, but now I want to add the date ranges. Is there an easy way to set the date range on the announcement? I tried Scheduler and then using a timer, but that didn't work. Any thoughts on best practices? Thanks,Mark Link to comment Share on other sites More sharing options...
ILoveC4 Posted December 28, 2013 Share Posted December 28, 2013 You can set date range in the programming. You just setup all the announcements, and then put conditionals based on date ranges. Sent from my Droid MAXX via Tapatalk. Link to comment Share on other sites More sharing options...
Mark LaBelle Posted December 29, 2013 Author Share Posted December 29, 2013 Got it - didn't know those were there. So, since I am not a programmer.... will this work? ? If Month = July ? If day of the month is between 1 and 6 Execute Announcement 'July 4th Doorbell' Break ? If Month = October ? If day of the month is between 15 and 31 Execute Announcement 'Halloween Doorbell' Break I was trying to think of a simpler way of doing this versus setting a - if date is between - and then setting it up for each year. Thanks in advance. Mark Link to comment Share on other sites More sharing options...
Mark LaBelle Posted December 30, 2013 Author Share Posted December 30, 2013 bump Link to comment Share on other sites More sharing options...
TexasBill Posted December 30, 2013 Share Posted December 30, 2013 Got it - didn't know those were there. So, since I am not a programmer.... will this work? ? If Month = July ? If day of the month is between 1 and 6 Execute Announcement 'July 4th Doorbell' Break ? If Month = October ? If day of the month is between 15 and 31 Execute Announcement 'Halloween Doorbell' Break I was trying to think of a simpler way of doing this versus setting a - if date is between - and then setting it up for each year. Thanks in advance. MarkYes - obviously on push of doorbell... right? Link to comment Share on other sites More sharing options...
Mark LaBelle Posted December 30, 2013 Author Share Posted December 30, 2013 This just isn't working for me - is there something wrong with the code? It doesn't do anything... All the doorbell's wav's are there and if I slide in a Execute Doorbell, it plays the normal chime, but if the date is now the 30th, it won't play the New Year's one. I attached a screenshot of the code below. Any reason why this wouldn't work? Thanks in advance, Mark Link to comment Share on other sites More sharing options...
RAV Posted December 30, 2013 Share Posted December 30, 2013 Create a number varibale, lets call it doortone When button pressed if doortone =1 then play announcement santa, if =2 then play announcement audlang, if =3 then play happybirthday, if =4 play doorbell In scheduler, on 11-25 set doortone to 1, on 12-26 set doortone to 2, on 1/1 set door tone to 4, on each birthday set to 3, on the day after each birthday set to 4Set each scheduler event to repeat yearly. Link to comment Share on other sites More sharing options...
Mark LaBelle Posted December 30, 2013 Author Share Posted December 30, 2013 Great - got it to work. THANKS! For a non programmer, I'm quite amazed... Now, next step - I know how to mute the activities in a room (pause TV, Flash Lights, etc.), but is there a best practice to this? Should I just list all the Rooms in order like this and then put all the ? if Doorbell Variable = below it or is there a better way? ? If Office Room is On Send command Mute on to Office Delay 5 Seconds Send command Mute off to Office etc., etc. for each room in the house and flash lights in theater and then.... ? if Variables-Doorbell is equal to 1 Execute Announcement 'Christmas Doorbell'? if Variable-Doorbell is equal to 2 Execute Announcement 'New Years Doorbell" Is there any Nesting that is optimal or an order? Thanks, Mark Link to comment Share on other sites More sharing options...
MxPriest Posted January 25, 2014 Share Posted January 25, 2014 Hi Mark Can you post a screen shot of your working script Sent from my iPad using Tapatalk Link to comment Share on other sites More sharing options...
Mark LaBelle Posted February 26, 2014 Author Share Posted February 26, 2014 Sure can, I'll post when I get home later this week. Sent from my SAMSUNG-SM-N900A using Tapatalk Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.