Jump to content

How to turn on Scene at specific time via IR?


Scottmichaelj

Recommended Posts

OK So I am having on of "those days" and can't seem to figure this out. Sorry in advance for the lame question, but how do I turn a scene on at a specific time when I hit a IR action? What I am trying to do is set my TV to turn on like an alarm only when I hit a "wake" button on my remote at night. Some days I won't need to wake up at the scheduled time so I don't want to schedule it everyday. I know how to create the scene, etc I just can't figure out the programming of this. So at night when I hit "Wake" button on my remote, I want my IR Linc to turn on my DirecTV and TV at 6:15am in the morning to wake me up.

Link to comment

I don't have all these devices to confirm the logic, but perhaps a program folder with the conditions:

 

if time is from 800p 
until 0700 next day
and
ir command is recieved
then
run the programs in this folder

 

in this folder, put a program such as

 

if time is 0630
then 
turn the TV on

 

Perhaps this logic will give you some ideas.

Link to comment

I would use an integer variable to store the IR button press (call it irVariable).

 

So the first program just sets the irVariable to 1 on keypress.

 

The second program, which has conditions to execute IF 6:15am AND irVariable = 1.

This program would turn on the TV and then set irVariable to 0.

 

You could also have the first program toggle irVariable on keypress. That way you could enable/disable the "alarm".

You could even have your bedroom light blink on enable/disable as an indicator of current alarm status.

Link to comment

I would use a similar approach as the above, with a couple of minor changes.

 

1) Have your "i.Alarm_is_Set" variable use 1/-1 as its on/off values. (I use "i." to specify an integer variable). This makes it simple to issue a "$i.Alarm_is_Set *= -1" which will flip back and forth between the off and on state.

 

2) Using the above, you can now have your IR command just run that 1 line program and you have your ability to use the key to flip back and forth between the states. If you want to do more than that, such as the suggestion to have the lamp in your bedroom blink to confirm which state you are in, change the variable to be a state variable. Add a program (or programs) that trigger on the value change to perform the actions you want.

 

3) Using the variable also makes it easy to do things like start the coffee machine up 15 min before your alarm is set to go off, or turn on the instant hot-water appliance to be ready for your shower. :wink:

Link to comment

Archived

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


×
×
  • Create New...