@track_time_change(hour=7, minute=0, second=0)
def wake_up(hass, now):
 if (not TARGET_ID):
  return
 if (device_tracker.is_on(hass) and (not core.is_on(hass, TARGET_ID))):
  _LOGGER.info('People home at 7AM, turning it on')
  core.turn_on(hass, TARGET_ID)

@ track_time_change ( hour = 7 , minute = 0 , second = 0 ) def wake_up ( hass , now ) : if ( not TARGET_ID ) : return if ( device_tracker . is_on ( hass ) and ( not core . is_on ( hass , TARGET_ID ) ) ) : _LOGGER . info ( 'People home at 7AM, turning it on' ) core . turn_on ( hass , TARGET_ID )
turn light on in the morning .