Add schedules to work within Modes

When I am at Home (home mode) I want a schedule that turns a camera on between 10:30pm and 7am but when I am away (away mode) I want that camera to be on all the time.