Jump to content
C4 Forums | Control4

Setting Date Ranges for Announcement Agent


Mark LaBelle

Recommended Posts

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


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

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

Yes - obviously on push of doorbell... right?

Link to comment
Share on other sites

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

 

post-134943-0-80930200-1388424929_thumb.

Link to comment
Share on other sites

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 4

Set each scheduler event to repeat yearly.

Link to comment
Share on other sites

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

  • 4 weeks later...
  • 1 month later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.