Jump to content

Anouncement or wake up with motion

Featured Replies

Posted

Just a thought. I would like to program an announcement to trigger on a certain day but only once once the motion triggers in a room.

For example. On Thanksgiving morning, I would like to remind my daughter to be sure to be ready to leave the house by 1:00 pm, However, I do not want to set a time for the announcement to start, I want to trigger it on Thanksgiving morning when motion is triggered in her room. This way I know she is already awake when the announcement triggers.

Suggestions for this over grown child

Matt

Set a boolean variable to toggle true when motion is sensed.

Set a number variable to one.

When the boolean variable changes, if it's true, if number variable is >0, execute announcement.

When announcement executes, reduce number variable by 1.

  • Author
Set a boolean variable to toggle true when motion is sensed.

Set a number variable to one.

When the boolean variable changes, if it's true, if number variable is >0, execute announcement.

When announcement executes, reduce number variable by 1.

Thank you I will give it a try!

Set something to increment that variable up. Maybe a keypad double or triple tap somewhere.

The way I told you to set it up, it will only fire if that variable is greater than one, and then it will drop the variable by one. Once variable hits zero, no more announcement.

Edited by ILoveC4

  • Author
Set something to increment that variable up. Maybe a keypad double or triple tap somewhere.

The way I told you to set it up, it will only fire if that variable is greater than one, and then it will drop the variable by one. Once variable hits zero, no more announcement.

I will try it tomorrow. I have not done anything with variables yet. It should be interesting. Thanks

Archived

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

Important Information

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