PC Access Question

jamesbrew

Member
Anybody know how I would get around programming a button to turn audio "All Off" on a timer? On PC Access you can set lighting on timer, but not audio.
 
Thanks
 
Do you mean you want something to play for a period of time and then turn off all zones?
Or do you mean you want all zones to turn off at a set time of day?
 
Basically, I like to listen to music or the radio at night when reading but sometimes I nod off, so I was looking for a way to create a "user button" to turn off all audio after a set amount of time.
 
Thanks
 
Just have the button start a flag timer.
When the flag times out and turns off, use that as the trigger to send the all audio zones off command.
 
Thanks for the reply.
 
I'm not familiar with Flags. If I create a flag, say...395 Audio Timer, How do I incorporate that flag to switch all audio off after 30 minutes?
 
Thank you very much.
 
I've been trying a few different scenarios but the timer part doesn't seem to work.
 
For example:
1. When user button "audio sleep"
2. Then flag 'X' on for 10 seconds
3. When flag 'X' off, then all audio off
 
but it just switches all audio off. I can see in the status, that the timer is counting down, but it just switches all audio off immediately.
 
Got it sorted, thanks.
 
It's probably not the right way to do it but...
 
Two separate commands.
 
Command 1
1. When user button "audio sleep"
2. Then flag 'X' on for 30 minutes
 
Command 2
1. When flag 'X' off
2. Then all audio zones off.
 
Thanks for your help.
 
That how you have to do it, in two blocks.
The block is always triggered by an event (or events).
Conditions are then checked (if they are programmed in).
Then the actions take place.
 
So running the button is the first trigger event, the action is to start the timer.
 
When the timer runs out it can act as a trigger, initiating another action or series of actions.
 
Flags are one of the most powerful programming tools.
They can act as on/off switches, status indicators, counters counting up and/or down and timers.
 
This is one area where the docs are actually pretty good.
The HAI/Leviton knowledge base has a lot more information and some tips/tricks for using flags.
 
Back
Top